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

system variables in terminal sessions

Status
Not open for further replies.

rroomm

Technical User
Sep 13, 2011
1
PL
Hi
We use an application that uses a computername variable to personalize some settings.

variable %computername% is responsible to match name of barcode printer. When we try to use it ina terminal server 2003 enviroment, all sessions on all terminals has the same %computername% value. It's a terminal server name of course.

I tried to force in script to change computername to value taken from clientname variable. It works but only for users with admins rights.

Is there any other way to change computername variable as a client name ?
 
not sure if it's a good idea to have the computername variable changed from the server to a client, but you can try change the system environment variables in control panel to read COMPUTERNAME=%CLIENTNAME% (as the clientname variable is used to identify the TS session hostname)
Is there any reason why you can't map the CLIENTNAME variable to the printer instead?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top