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

Get client worksation name the TS application was started from 1

Status
Not open for further replies.

CP60

Programmer
Oct 16, 2008
145
0
0
DE
If I install an application on a machine, I can get the Computer name using GetComputerName function (or using the ComputerName Environment variable).

If this application is installed on a terminal server and started from the client, how do I reliably get the same exact client ComputerName?


Thank you!
 
Thank you.

Notes:

- Using WTS_INFO_CLASS.WTSClientName
- Returns an empty string if not running on a RD/TS Session
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top