VMware Cloud Community
fborges555
Enthusiast
Enthusiast
Jump to solution

Get VDI off maintenance mode

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

Reply
0 Kudos
2 Solutions

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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


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

View solution in original post

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Does the following help

Get-HVMachineSummary -PoolName MyPool |
Select @{N='Desktop';E={$_.Base.Name}}


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

View solution in original post

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership
Jump to solution

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


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

Reply
0 Kudos
fborges555
Enthusiast
Enthusiast
Jump to solution

L.

 

Thanks a bunch as always, this is from HV.Helper module correct?

 

Thanks again

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Correct


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

Reply
0 Kudos
fborges555
Enthusiast
Enthusiast
Jump to solution

L.

 

On the same path, how do I go and get all the VM names on an specific pool using hv.helper

 

Thanks

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Does the following help

Get-HVMachineSummary -PoolName MyPool |
Select @{N='Desktop';E={$_.Base.Name}}


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

Reply
0 Kudos
Magneet
Hot Shot
Hot Shot
Jump to solution

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/

Reply
0 Kudos