Hi all
I'm ok at knocking up scripts to run a function but so great when it comes to a reporting type script...!!
So TBH I'm really unsure how to start here, any input really appreciated.
I need to report on all VMs in a vCenter report out their Name and if they are powered on or off then report against a set of predefined parameters within the VM hardening guide and how those values are currently set.
e.g
VM.disable-hgfs
VM.disable-independent-nonpersistent
VM.disable-non-essential-3D-features
VM.disable-unexposed-features-autologon
VM.disable-unexposed-features-memsfss
Then dump it all out to a nicely tabulated .csv file for readability purposes(if that makes any sense...)
Once i know how they are set i can reverse engineer the script to apply the agreed hardening policy.
Happy for some PS guru out there to steer me off if at all possible.
Kr
Paul