Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Powershell Script for RDP sessions.

$
0
0

So I have a very specific need for a powershell script using Microsofts "quser" command to list the current RDP sessions of 5 different servers.  I need it to evaluate all 5 servers, then give me a report of any user(s) logged into more than one system and when those logs occurred.   If there are built in Powershell commands to do the same thing I'm game for learning them, but I've not found what I need in any of the PS scripts I've found doing "Powershell/RDP" searches on the internet.

 

This script is very very close to what I need   http://gallery.technet.microsoft.com/scriptcenter/PowerShell-script-to-Find-d2ba4252 however it shows me every RDP session logged into each box and the "qwinsta" does not appear to be able to list Login Time or Idle Time.  If "qwinsta" could be replaced with "quser" and then the report it generates only reports on duplicate logins I'd totally be set..  


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images