Solved

Terminal Services

Posted on 2002-05-02
4
172 Views
Last Modified: 2010-04-13
How can I detect from within my program (VB) if it runs in Terminal Server session or directly in win2k?
Thank you.
0
Comment
Question by:zachar
  • 2
4 Comments
 
LVL 4

Expert Comment

by:EricWestbo
ID: 6986149
are you asking whether or not your system is a Terminal Services client?

if so, easiest way to check is visually.  if your PC is a thin client machine (very, very small CPU box), then you are most probably running as a TS client, as you don't have a harddrive.

if you have a standard PC, but need to log into a TS session before you can run your app, then you are also a TS client & the app is on the server.

if you have a standard PC & are running the app right from your desktop, you are not operating in a TS session.


hope this helps!

/ew
0
 
LVL 1

Author Comment

by:zachar
ID: 6986194
I have to check if my system is Terminal client, but to do it automatically, form code - not visually. Probably this parameter stored anywhere in the registry or system variable - I just want to know where exactly.

 b.t.w - if you want to use "visual" way, just press start button - at the left side you will see "Windows 2000 Terminal" and not "Windows 2000 Server"
0
 
LVL 1

Accepted Solution

by:
igore earned 50 total points
ID: 7004252
Check the environment variable SESSIONNAME.  If you are in a Terminal Session it will return the session ID, if you are logged on to the console it will return 'Console'.  If you are logged on to a workstation (Other than Windows XP) it will be empty.
0
 
LVL 1

Author Comment

by:zachar
ID: 7004255
Thanks a lot!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now