View | Unassign User PowerCLI
If you dont want to unassign all users by hand simply provide this script a .csv file with desktop names and it will do it for you.
$filepath = "desktops.csv"
import-csv $filepath -Header Desktop | Foreach-object {
remove-userownership -machine_id (Get-DesktopVM -name $_.Desktop).machine_id
}
Comments
No comments yet.
Comment on GitHub →
Comments are GitHub Discussions: you need a GitHub account, and what you write there is public on GitHub. New comments show up here within a few minutes.