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

adding a system variable path over a network

Status
Not open for further replies.

jundalabee

IS-IT--Management
Nov 19, 2003
35
A new software package we are implementing needs a path, (eg c:/temp) to be placed in the "variable value" field via control panel, system, advanced, environmental variables, then by clicking on path, edit in the system variables box.

The path needs to be placed on all the computers in our domain.

Can this be done with VBS scripts or with active directory. Any ideas would be valuable. If to be done with VBS the code would be great.

Thanks,
Tim, (Adelaide Australia).
 
You can do something exotic to alter the registry on a bunch of machines, or use the setx command in a batch file. In your case, I suppose you could put the setx command on a shared mapped drive. Then edit your login script, make a call to it after the mapping to the shared drive is executed.

i.e.

net use g: \\server\data
g:\setx -m apppath=c:\temp

It should stick after a reboot, so ask your users to reboot, or just wait a couple days, and see how it goes.

I'd setup a test server/workstation first, run it, make sure it works, then have the workstation relogin and see what happens the second time the command is executed, and you'll know what happens if you leave the command in the login script for more than one login.

Setx is from the resource kit, or here...


Matt J.

P.S. Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top