Forum Discussion

Geraldo's avatar
Geraldo
Copper Contributor
Apr 30, 2022
Solved

Audit CMBaselineDeployment EvaluationSchedule

Hi guys, does anyone have a method to display the Baseline deployment "EvaluationSchedule" in a readable format or list? Like the "Get-CMPackageDeployment -Name "Deployment Test" | Select-Object Pa...
  • Geraldo's avatar
    Geraldo
    May 03, 2022

    Found another Function for a little bit more comfortable conversion...

    https://www.powershellgallery.com/packages/PSCCMClient/0.2.2/Content/Public%5CConvertFrom-CCMSchedule.ps1 

    ...with additional rows.

    Function ConvertFrom-CCMSchedule {
    ...# insert from https://www.powershellgallery.com/packages/PSCCMClient/0.2.2/Content/Public%5CConvertFrom-CCMSchedule.ps1
    }
    
    $Baselines = Get-WmiObject -class SMS_BaselineAssignment -namespace "root\SMS\site_$sitecode" 
    
    Foreach ($Baseline in $Baselines) {
            [pscustomobject]@{
                Baseline = $Baseline.AssignmentName
    			EvaluationSchedule = ConvertFrom-CCMSchedule -ScheduleString $Baseline.EvaluationSchedule 
            }
        }


     

    Regards, G.

     

Resources