Automation

 View Only
  • 1.  Get VDI off maintenance mode

    Posted Apr 02, 2021 02:49 AM

    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



  • 2.  RE: Get VDI off maintenance mode
    Best Answer

    Posted Apr 02, 2021 05:21 AM

    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


  • 3.  RE: Get VDI off maintenance mode

    Posted Apr 02, 2021 11:11 AM

    L.

     

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

     

    Thanks again



  • 4.  RE: Get VDI off maintenance mode

    Posted Apr 02, 2021 12:18 PM

    Correct



  • 5.  RE: Get VDI off maintenance mode

    Posted Apr 03, 2021 07:26 PM

    L.

     

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

     

    Thanks



  • 6.  RE: Get VDI off maintenance mode
    Best Answer

    Posted Apr 03, 2021 08:11 PM

    Does the following help

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


  • 7.  RE: Get VDI off maintenance mode

    Posted Apr 07, 2021 08:27 AM

    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/