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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal Server Session ID

Status
Not open for further replies.

jamesjames1

Technical User
Jun 18, 2004
81
GB
I am running Windows 2000 terminal servers and an experiencing printer problems.

Is there a way to get the terminal server session ID for a windows 2000 server machine. I have found how to do a server 2003 query but this doesn't work on 2000 servers. I also used from cmd query session but, if I can help it, want to avoid parsing a text file....

Any help would be great


Thanks
james
 
Would the session name work instead?
Code:
Set wshShell = WScript.CreateObject("WScript.Shell")
strSessionName = WshShell.ExpandEnvironmentStrings("%SESSIONNAME%")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top