Original Message:
Sent: Sep 20, 2024 03:24 PM
From: Fborges555
Subject: Power Policy on Horizon VDI
Your recommendation was on point a few tweaks and we are happy and working
-key Set-HVPool -Key 'desktopSettings.logoffSettings.powerPolicy' -Value 'TAKE_NO_POWER_ACTION' thanks a bunch chief
u d mn
Original Message:
Sent: Sep 20, 2024 02:42 PM
From: Fborges555
Subject: Power Policy on Horizon VDI
Thanks a bunch boss, appreciated
Original Message:
Sent: Sep 20, 2024 02:29 PM
From: LucD
Subject: Power Policy on Horizon VDI
I have no clue, it is based on online examples and blog posts.
Your guess is as good as mine.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 20, 2024 01:53 PM
From: Fborges555
Subject: Power Policy on Horizon VDI
where do i get documentation to learn where to get this key like you come up with, how did you know how to even start with the
desktopSettings
Original Message:
Sent: Sep 20, 2024 01:46 PM
From: LucD
Subject: Power Policy on Horizon VDI
Like I said earlier, I can't test.
The Key seems to be incorrect.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 20, 2024 01:31 PM
From: Fborges555
Subject: Power Policy on Horizon VDI
I did chief but I git the following which is more than I can understand:
Set-HVPool -Key 'desktopSettings.sessionSettings.powerPolicy' -Value 'NO_ACTION'
Updating the Pool: LunarPod
Exception calling "Desktop_Update" with "3" argument(s): "ExceptionType : VMware.Hv.InvalidArgument
ErrorMessage : Invalid member name.
ParameterName : desktopSettings.sessionSettings.powerPolicy"
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:6524 char:8
+ $desktop_helper.Desktop_Update($services,$item,$updates)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
any though would be appreciated
Original Message:
Sent: Sep 19, 2024 12:31 PM
From: LucD
Subject: Power Policy on Horizon VDI
Did you try with
Get-HVPool -PoolName <poolName> | Set-HVPool -Key 'desktopSettings.sessionSettings.powerPolicy' -Value 'NO_ACTION'
I currently have no View environment in my lab to test, so the casing of the Key or the string for Value could be off.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 19, 2024 10:01 AM
From: Fborges555
Subject: Power Policy on Horizon VDI
HI gurus
can I get help modifying the power policy on a Horizon pool from power off to no action using powercli?
is this even possible
Thanks a bunch