Daithi_N
Enthusiast
Enthusiast

Unassigned Users on Desktops

Jump to solution

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

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

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

Daithi_N
Enthusiast
Enthusiast

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

0 Kudos