Hi!
I have ESXI 5.1 and Power CLI 5.1 Release 1 installed on my Virtual Center with around 100 vms.
Have been going thru various hardening guides and wanted to change my VMs vmx files with the below settings
isolation.device.connectable.disable,TRUE
isolation.monitor.control.disable,TRUE
isolation.tools.diskShrink.disable,TRUE
isolation.tools.diskWiper.disable,TRUE
log.keepOld,10
log.rotateSize,100000
RemoteDisplay.maxConnections,2
tools.guestlib.enableHostInfo,FALSE
tools.setInfo.sizeLimit,1048576
I know there are couple of articles here which talk about importing a function “Get-VMAdvancedConfiguration” and executing to achive this.
But Iam not that experienced on how to import and execute it.
Is there a way to accomplish this without importing any scripts/functions, like using a one liner commands or something?
I am very new to PowerCLI, so. appreciate some help on this.
Many thanks
Hugo