# How do I modify the system PATH in Windows 2003/Windows 2008 using a script?

How do I modify the system PATH environment variable using script (or even a registry setting) so that when Windows boots it's already configured?

-

My google-fu was lacking earlier. The way to do this is using the SETX tool:

``````SETX NEWVAR %systemroot%\system32\inetsrv /M
SETX PATH %PATH%;%NEWVAR% /M
``````
-