Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows 2000 / Terminal Services / March 2006

Tip: Looking for answers? Try searching our database.

Sensing Log-on computername programmatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Goins - 24 Mar 2006 16:15 GMT
Is there a way to read the computer name that a user uses to log onto
Win2003 Terminal Server? I would like to give different rights based on the
computer name. Is this possible?

Thanks,

Jay Goins
Vera Noest [MVP] - 24 Mar 2006 16:28 GMT
From http://ts.veranoest.net/ts_faq.htm

Q. How can I retrieve the client IP number?

A. You can retrieve the client IPnumber and computername with the
WTSQuerySessionInformation function, or the client computername with
the environment variable %CLIENTNAME%.

Recommended reading:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/termserv/termserv/wtsquerysessioninformation.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/termserv/termserv/terminal_services_programming_guidelines.asp
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting:  http://ts.veranoest.net
SQL troubleshooting: http://sql.veranoest.net
*----------- Please reply in newsgroup -------------*

"John Goins" <no-email@no-email.comm> wrote on 24 mar 2006:

> Is there a way to read the computer name that a user uses to log
> onto Win2003 Terminal Server? I would like to give different
[quoted text clipped - 3 lines]
>
> Jay Goins
John Goins - 24 Mar 2006 17:08 GMT
Thank you, Vera!

Jay Goins

> From http://ts.veranoest.net/ts_faq.htm
>
[quoted text clipped - 27 lines]
>>
>> Jay Goins
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.