Require IdleTime also

Sep 16, 2014 at 8:05 AM
That powershell module is awesome but IdleTime is mission. If I add verbs with Get-TSSession IdleTime is add into the report but Server name got miss.

I'm looking output like below

Server SessionID State IPAddress ClientName WindowStationName UserName IdleTime

localhost 1 Active Console NIKHIL

Can someone help me about this?
Sep 16, 2014 at 8:57 AM
IdleTime is not displayed by default but it is a part of the resultant object(s).
You can add it with Select-Object:

Get-TSSession | Select-Object Server,SessionID,State,IPAddress,ClientName,WindowStationName,UserName,IdleTime
Sep 16, 2014 at 2:48 PM
If I run this command server name is showing "Cassia.Impl.TerminalServer". That is not actual server name.

Sep 16, 2014 at 2:59 PM
Sep 16, 2014 at 3:05 PM
Thanks. It's working