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?
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?