My former colleague and virtualization friend Harold Schoofs has send me a real cool PowerShell script for automating the reporting part of the vSphere VUM baseline compliancy. The Baseline-Compliancy.Ps1 PowerShell script can be used to check the compliancy of all ESX Hosts registered on a VMware vCenter server and match up to any baseline. It will generate 3 kinds of output Files:
1) One file with all hosts and their compliancy state
2) One file with all attached baselines found
3) One file for every attached baseline found with its content
You can get you copy of Harold’s script here: Baseline-Compliancy.ps1 If you have any questions or suggestions for improvements just send your Tweets to @Hharold.
Saturday, March 27. 2010
PowerCLI Baseline-Compliancy Check
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Thanks for posting, Eric!
If I got any update on this one, I will keep you informed.
Cheers,
Harold
#1
Harold
(Homepage)
on
2010-03-29 08:55
(Reply)
Seems to be a nice script, but do not work for me:
The term 'Get-Compliance' is not recognized as the name
the spelling of the name, or if a path was included, ve
At C:\Scripts\Baseline-Compliancy.ps1:70 char:60
+ $Compliancy = Get-Vmhost $Esxhost | Get-Comp
+ CategoryInfo : ObjectNotFound: (Get-Comp
+ FullyQualifiedErrorId : CommandNotFoundException
#2
phimic
on
2010-04-29 15:49
(Reply)
Hi phimic,
did you install the PowerCLI cmdlets for vCenter Update Manager first ? http://bit.ly/azQ3A6
You need to install PowerCLI 4 update 1 before you install the Update Manager cmdlets.
Regards,
Harold
#2.1
Anonymous
on
2010-05-08 18:15
(Reply)

