Reply to Message

View discussion in a popup

Replying to:
jrodsguitar
Enthusiast
Enthusiast

I think one way to do this is to:

  1. Clone existing VM to new VM
  2. Remove / Delete original VM from Horizon
  3. Remove Horizon Agent from new cloned VM.

Since you  are already using automation, you could probably incorporate some of the code from my remove-HVMachine function to accomplish step 2.

So ironically you will end up deleting VM. At least the original Smiley Happy

https://get-cj.com/2018/04/07/delete-vmware-horizon-machine-using-powercli-horizon-api/

It's very straight forward to use:

remove-HVMachine -cred $cred -viewserver $viewserver -machine $machine

Blog: https://powershell.house/
Reply
0 Kudos