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

set user variables in terminal session

Status
Not open for further replies.

grobbu

Programmer
Jun 25, 2002
40
BE
Hello all,

i've got a standard server 2008 with a terminal server in hyperv. Everything works fine.

The Problem:
We are using (a terrible) software solution. this software requires that every machien has his own 'machine' variable with an unique nr.
In current situation there's a system variable on every machine with an unique value. This doesn't work in terminal because all users would have the same machine nr..
No problem i thougt..just use user variable..and now the problem. When I log in as a normal user an I wanna change the user variables I have to give admin user/pass to change. After doing this and creating a user variable i saw it was created for the user 'admin'...

I could give all my users admin rights but that solution I don't like :)
Anyone a solution for this problem?
Hope I explained it clear.

tx in advance!
grobb
 
You could create a logon script to change or set the variable. The first link shows how to create variables using VBScript. The second link provides information about the set command which can be scripted to set environment variables.

- Hey, Scripting Guy! How Can I Create an Environment Variable Using a Script?


- Set





Joey
CCNA, MCSA 2003, MCP, A+, Network+, Wireless#
 
Hello sry for the late respons. The scriptin didn't work for me because the users need admin rights...

The 'solution' i finally had to use was to make each user administrator. Then make a user variable and make them normal users again.
Not a nice solution but it worked.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top