Link to home
Start Free TrialLog in
Avatar of markpalinux
markpalinuxFlag for United States of America

asked on

Terminal Services vbscript to enumerate sessions?

I am looking for a vbscript / wsh / wmi script to enumerate RDP and ICA sessions - terminal services connections to a Windows 2003 based Citrix  Metaframe server.

If I open up Terminal Services Manager, I get to see the username, session number and if the session is active or disconnected.

I am looking to gather the same info via vbscript or wmi?

Thanks,
Mark
Avatar of RobSampson
RobSampson
Flag of Australia image

Hi, I think the Win32_SessionResource or Win32_SessionProcess classes will help you here....I'll have a look at it soon.

Regards,

Rob.
ASKER CERTIFIED SOLUTION
Avatar of thegordo
thegordo
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent - makes it a better script - Thanks Rob!

Think this should now do the trick!
Avatar of markpalinux

ASKER


Guys,

Thanks, hope I split the points ok.

Mark
No problem with me.  Thanks.

Regards,

Rob.