Direct Inward Dialing: +1 408 916 9892
The Get-RDUserSession cmdlet retrieves user sessions in a Remote Desktop deployment or in a collection. Get-RDUserSession takes two parameters. '-Collection name' and 'Connection Broker'. The 'Collection Name' defines the array that contains names of the remote desktop collection where the user sessions reside. The 'Connection broker' defines the server that was used to deploy the remote desktop.
The following is a comparison that shows how you can obtain a list of remote user sessions with PowerShell and ADAudit Plus. The ADAudit Plus console gives you an easy way to access remote desktop activity. You can also employ the powerful search and filter options to find a specific event in the report.
Get-RDUserSession -ConnectionBroker "rdcb.xyz.com" -CollectionName @("Session Collection","Virtual Desktop Collection")
Why ADAudit Plus is the better solution for you?