windows server 2008 r2 environmental variables

Hello,

We have a terminal server that employess logins to use one specific software.  The software requires each individual user to have their own environmental variable value (the actual variable will be the same).  I don't want to have to do it on each individual username manually.  I know i can create a batch file and set environamental variable via setx.  My question is, how would i get setx to set  same variable but different value for each individual user via cmd/batch.  This way I can just add it to gpo and have it run when they login
iamaidiotAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

William MillerIT SpecialistCommented:
When you say a different value, is it a specific value the software requires or does it simply need to be different from User A to B to C?
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
How does it have to be different? Is it a sequence of numbers?  Or could it just be another name for %username%?

One thought, batch script with a list of the variables and users in a text file.  You can open the text file, find the user name and set the variable to the value next to the user name.
0
iamaidiotAuthor Commented:
Hey Willian/Lee

variable name will be the same, the variable value can be anything random preferebly combination of lettersandnumbers as long as it is unite from user A to B to C.

Variable Name SSI_BASE (always the same)
Variable Value  abcd1234 (needs to be unique for each user, but can be random combination of letter/number)
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
So why not just make it the username?  SET SSI_BASE=%username% - it will always be unique to the user.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
iamaidiotAuthor Commented:
Hey Lee,

Thank you that is what I went with, I also added milliseconds in front just to make sure it will be even more unique like this  setx SSI_Base %time:~-2%%username%.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.