Tuesday, January 5, 2016

Listing all Dedicated Virtual desktops and Assigned users


I used Powershell command to get the list of all Dedicated Desktops and Assigned users. 

Get-BrokerDesktop  -MaxRecordCount 10000 | where{$_.desktopkind -like "private"} | Select-Object HostedMachineName ,  @{Name='AssociatedUserFullNames';Expression={$_.AssociatedUserFullNames -join '; '}} ,CatalogName ,DesktopKind , DesktopGroupName | Export-Csv listofdedicateddesktopswithassignedusers.csv

2 comments:

  1. could you please help me on un-assigning/assigning bulk users from vms

    ReplyDelete