Quantcast
Channel: VMware Communities : All Content - VMware View
Viewing all articles
Browse latest Browse all 9103

View Power CLI to get disconnected session information filtered by duration

$
0
0

Hello,

 

Please help me to find a powercli command to find disconnected session filtered by duration. For example we need to find all disconnected sessions for a duration more than 24 Hrs.

 

I am using the below command to get the list of disconnected session.

 

Get-RemoteSession -state disconnected.

 

I tried the below command to get the list of disconnected session more than 2 days, but it displays all disconnected sessions for more than 2 days, 2 hrs, 22 hrs

 

Get-RemoteSession -state disconnected | Where-Object {$_.Duration -gt '2 00 00 00'} | ft DNSName, Duration.

 

Thanks in advance,

Rajesh


Viewing all articles
Browse latest Browse all 9103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>