Sometimes, you just need to output VMM baseline updates to file. When comparing patches for instance.
Fill variable with updates from selected baseline.
$<variable name>=Get-SCBaseline -Name "<baseline name>"
Example:
$Baseline=Get-SCBaseline -Name "Security Updates"
Output selected information from the variable to file.
$Baseline.Updates | Select-Object -Property <Object[]> | Out-File <filepath>
Example:
$Baseline.Updates | Select-Object kbarticle | Out-File c:\output\SecurityUpdates.txt
For clearity add name to Select-Object.
$Baseline.Updates | Select-Object kbarticle, name | Out-File c:\output\SecurityUpdates.txt
$Baseline.Updates | Select-Object -Property <Object[]> | Out-File <filepath>
Example:
$Baseline.Updates | Select-Object kbarticle | Out-File c:\output\SecurityUpdates.txt
For clearity add name to Select-Object.
$Baseline.Updates | Select-Object kbarticle, name | Out-File c:\output\SecurityUpdates.txt
No comments:
Post a Comment