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

Is it possible to query Extra sessions on a terminal server

Status
Not open for further replies.

bert99au

Technical User
Jun 20, 2010
1
AU
Hello All,

I have 3 extra sessions running on a windows 2003 server.
1 is running in RDP session 1
1 is running in RDP session 2
1 is running via a scheduled task in the "background" (no windows desktop sessions were on when the task started).

When I query (using vbscript) for system sessions I only get the session that is running in the same RDP session as the vbscript script.

Am I doing something wrong or is this not supported by Extra? (I'm running version 8.0).

Code:
   Set System = CreateObject("EXTRA.System")	' Gets the system object
   SessionCount = System.Sessions.Count
   WScript.Echo "System sessions are: " + CStr(SessionCount)
   
   For i = 1 to SessionCount
      WScript.Echo "     Session is: " + System.Sessions.Item(i).Name
   Next

thanks in advance :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top