Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script for disconnect users

Status
Not open for further replies.

dkelvin

MIS
Joined
Jun 11, 2008
Messages
1
Location
US
Hi everyone,
I am trying to create a Powershell script that would log disconnected user from their Terminal Service session.
From TS, I can do a "query user" and get list of currently connected users. it is just a matter putting everything into an xls format and assign a variable to each cell. if the user is disconnected, then log off that user.
Can some one please help? thanks in advance for your help,

Andy
 
Why not just set a disconnected session to end after 2 days in AD?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top