VM Advanced settings with PowerCLI

Applying VM advanced settings manually on each individual VM’s can be tedious task and need to Power down the VM to perform the activity. With the help of PowerCLI the task has been very much simplified with the help of cmdlet called New-AdvancedSetting

I use the below script to to add the additional settings to the VM advanced settings

$vms = Get-VM

foreach ($vm in $vms) {

New-AdvancedSetting -Entity $vm -Name isolation.tools.diskWiper.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.diskShrink.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.unity.push.update.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.ghi.launchmenu.change -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.ghi.autologon.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.hgfsServerSet.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.memSchedFakeSampleStats.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.getCreds.disable -Value TRUE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name isolation.tools.setGUIOptions.enable -Value FALSE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name vmci0.unrestricted -Value FALSE -Confirm:$false
New-AdvancedSetting -Entity $vm -Name guest.command.enabled -Value FALSE -Confirm:$false

}

Enjoy 🙂

Share

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com