VMware Cloud Community
fborges555
Enthusiast
Enthusiast

remote desktop power policy

Hi gurus

I have a bunch of View pool in which I want to change the remote power policy from turn off to always ON , but the get-pool cmdlet does not work on 6.5, can any one here let me know the script to accomplish this.

Thanks

0 Kudos
1 Reply
LucD
Leadership
Leadership

Did you try with the VMware.Hv.Helper module?

You can use Set-HVPool, and you probably need to use the desktopSettings.logoffSettings.powerPolicy setting.

Note that the case for the Key is important

Something like this

Set-HVPool -PoolName $name -Key 'desktopSettings.logoffSettings.powerPolicy' -Value 'ALWAYS_POWERED_ON'


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos