envmod Utility for modifying environment variables. Unlike system setx.exe - it is portable and has no length restrictions for value. Usage Set user variable: envmod.exe /u <name> <value> Set system variable: envmod.exe /s <name> <value>