Hi gurus
I would like to get a set of VDI off maintenance mode using PSCLI, has anyone done this lately, use CLI to get VDI off Maintenance mode.
Thanks a bunch
Isn't that done with the Set-HVMachine and the Maintenance parameter?
$machine = Get-HVMachine -MachineName 'MyStation' Set-HVMachine -Machine $machine -Maintenance EXIT_MAINTENANCE_MODE
L.
Thanks a bunch as always, this is from HV.Helper module correct?
Thanks again
Correct
On the same path, how do I go and get all the VM names on an specific pool using hv.helper
Thanks
Does the following help
Get-HVMachineSummary -PoolName MyPool | Select @{N='Desktop';E={$_.Base.Name}}
you can like Luc said use the helper or do it with the api's directly
https://www.retouw.nl/2018/12/15/setting-maintenance-mode-for-linked-clones-using-apis/