Admin Tip #52 : Change environment variables using SETX.EXE

Hits: Failed to execute CGI : Win32 Error Code = 3


The resource kit has a utility, SETX.EXE, that allow you to change environment variables from the commandline. Good for automation.

Usage:

setx daluser wayne

Related:


Must have for NT advanced users



Tim Hill's text on command line scripting is outstanding. If you have an extensive background, writing bat files, forget it. Otherwise, get it.



Windows scripting host is a different animal entirely to batchfile-like scripts. Much more powerful. Native scripting language for NT2000 but available for NT4. Start studying now. Includes builtin support for vbscript & jscript with addins available for perl and other scripting languages. Extraordinary powerful and subsequently it can be very complex.



lots of good examples