I am trying to check some settings before I run hardening scripts to lockdown a VCSA.
At this time I am unable to run an automated a check to see if an Advancedsettings exist. I can clearly see the setting does not exist using a GUI.
My goal is to run an automated check for the Advancedsettings and if that setting does not exist "i.e. I have to add it", out-put to a report/log/htm that the settings does not exit.
Get-VM | Get-AdvancedSetting -Name sva.present
If sva.present does not exit I want to be notified it does not exist.
Thank in advanced.