TSEnv2 command-line switches
TSEnv2 is an executable that can be used primarily to set or change task sequence environment variables, including "readonly" variables, those starting with an underscore, which cannot be changed with ConfigMgr's tsenv.exe tool. It also has other related functions, some of which can be performed by the NomadPackageLocator tool, refer to NomadPackageLocator.exe command-line switches for details.
TSEnv2 is installed as part of Nomad and is available with the Nomad OSD tools, so it can be included in WinPE images allowing Nomad to be used in OS Deployments, refer to Installing Nomad Branch Tools for details.
The command-line format is:
TSEnv2.exe [switch]
Where switch
is one of the switches in the table below.
Note
There is no '-
' or '/
' before the switch.
Switch | Description |
---|---|
| Write a binary dump of the TS variables to a file. If no file name is given, the default is |
| Test whether the specified variable exists and has a non-empty value. If so, the return code is |
| Get the name of the specified variable and output it in the form. The return code is |
| Like NoteIf the resulting data is not valid text and cannot be written as such, |
| Like NoteIf the resulting data is not valid text and cannot be written as such, |
| Outputs every variable in the form |
| Like |
| Like |
| Creates or changes the named variable using the specified value. Values up to 2954 characters are supported. If the value contains embedded whitespace or quote characters, enclose the entire NoteTask sequence variables that start with an underscore (" |