VMware Horizon Community
Daithi_N
Enthusiast
Enthusiast
Jump to solution

Unassigned Users on Desktops

Hi, I'm looking at putting vDesk into Maintenace Mode and Unassigned the User who is currently assigned to them.

Currently using the following to Set the Machine into Maintenace

Set-HVMachine -MachineName $virtualMachine -Maintenance:ENTER_MAINTENANCE_MODE

But unable to figure out how to Assigned the user I did try

Set-HVMachine -MachineName $virtualMachine -User $null but didn't work

Tags (1)
1 Solution

Accepted Solutions
vBritinUSA
Hot Shot
Hot Shot
Jump to solution

Try this blog, looks like someone done the hard work already

https://www.retouw.nl/powercli/remove-desktop-assignment/

Please mark helpful or correct if my answer resolved your issue.

View solution in original post

2 Replies
vBritinUSA
Hot Shot
Hot Shot
Jump to solution

Try this blog, looks like someone done the hard work already

https://www.retouw.nl/powercli/remove-desktop-assignment/

Please mark helpful or correct if my answer resolved your issue.
Daithi_N
Enthusiast
Enthusiast
Jump to solution

Thanks, That really helped, save me trying to wrap my head around the API.

0 Kudos