GiantEnemyAnt Posted August 11, 2009 Posted August 11, 2009 hello, there is any scrip to add "user Variables for %USERPROFILE%" ? i need to run it on at least 50 students computers (xp32) any help its welcome.
kmount Posted August 11, 2009 Posted August 11, 2009 Sorry, can you elaborate a bit, I can't make out the intention from your post. Are you trying to set the userprofile environment variable to point somewhere, or are you trying to make a new environment variable? Are you in an AD network?
GiantEnemyAnt Posted August 11, 2009 Author Posted August 11, 2009 Sorry, can you elaborate a bit, I can't make out the intention from your post. Are you trying to set the userprofile environment variable to point somewhere, or are you trying to make a new environment variable? Are you in an AD network? i am trying to make a new environment variable just as illustrated
maniac Posted August 11, 2009 Posted August 11, 2009 Those custom variables are held in the registry [HKEY_CURRENT_USER\Environment] You could write a VB script which will add them at logon, or use REGEDIT in silent mode to import a .REG file with the necessary additions in. Mike. 1
kmount Posted August 11, 2009 Posted August 11, 2009 As maniac said, you could script this quite easily in a login script something along the lines of: SET CLASSTMP=W:\TEMP 1
maniac Posted August 11, 2009 Posted August 11, 2009 As maniac said, you could script this quite easily in a login script something along the lines of: SET CLASSTMP=W:\TEMP Didn't know about that command, even easier than the method I was suggesting!
kmount Posted August 11, 2009 Posted August 11, 2009 Didn't know about that command, even easier than the method I was suggesting! It's quite handy for quick stuff like that. If you use set without any arguments/parameters it'll helpfully show you all of the current environment variables. 1
somabc Posted August 11, 2009 Posted August 11, 2009 You can use the setx command to permanently change environment variables
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now