Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246801

Re: View User Sessions - Report

$
0
0

Try something like this, it will start from the displayname of a pool

 

$poolName="My VDI Pool"

$poolId=Get-Pool-DisplayName$poolName|Select-ExpandPropertypool_id
Get-RemoteSession-Pool_id$poolId-State"CONNECTED"|
Select@{N="Desktop";E={$_.DNSName.Split('.')[0]}},Username,State,Duration|
Export-Csv
C:\view-report.csv-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 246801

Trending Articles