General discussion
March 13, 2006 at 09:34 AM
edlockett

Environment Variable

by edlockett . Updated 20 years, 5 months ago

Need to set a system environment variable on 20 workstations. The value of the variable is the same in each case. Does anyone know of a way I can set this without having to log on locally at each workstation?
I have tried using the following technique:
Copy a batch file to c$\windows on the target machine.
Use psexec to execute this batch file
the batch file contains the command
‘set variable_name=value’
Although psexec reports that the batch file exited on the target machine with error code 0 the variable is not available on the target machine.
Any help with this would be most appreciated. I would be interested to hear of other possible methods for accomlishing this. There must be a way to do this successfully!
Thanks in advance.

This discussion is locked

All Comments