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

alter the PATH environmental variable on a remote machine

Status
Not open for further replies.

sumgirl

IS-IT--Management
Mar 19, 2003
55
US
Hello. I sometimes need to correct an incorrect PATH environmental variable on a remote machine. It would be nice if I could do this with a script, is it possible and can someone demonstrate if so? The scenario is like this, the path is set to:

Path=C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WbemX;C:\Program Files\Support Tools\;

and I need to ONLY change "C:\WINDOWS;C:\WINDOWS\System32\WbemX;" so that it correctly specifies "C:\WINDOWS;C:\WINDOWS\System32\Wbem;"

Is that possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top