# Task Sequence variables

This is a reference guide for the task sequence variables that are supported by DeployR. These can be used in the task sequence for step definitions, conditions, and other related tasks. Task sequence variables that start with an underscore ("\_") are read only variables and cannot be set.

To see examples of how to create Task Sequence Variables and leverage them with PowerShell, see the PowerShell Modules section, Scripting for OSD

Below you will see several variables that are created in a few methods, either by DeployR Gather Script which is called before the start of the Task Sequence, we've added example values in the description field for those, or the DeployR TS itself, as it builds DeployR environment information. Other variables outside of those two processes can be used to toggle settings or task sequence behavior, such as PEERING or FINISHACTION. &#x20;

### Task Sequence Variable List

<table><thead><tr><th width="251.800048828125">Variable</th><th width="322.400146484375">Description</th><th>Options</th></tr></thead><tbody><tr><td>_DEPLOYRLOGS</td><td>DeployR log location<br>Example Value: X:\_2P\logs</td><td>Set by DeployR</td></tr><tr><td>_SEQUENCESTATE</td><td>Current task sequence state<br>Example Value: {"f4b57e76-184a-47c4-8631-eae8cf7f4f8d":"Success","ba87d732-5df3-44c2-a98b-258123f62370":"InProgress"}</td><td>Set by DeployR</td></tr><tr><td>_SMSTSLOGPATH</td><td>X:\Windows\TEMP</td><td>Set by DeployR</td></tr><tr><td>_TSIDENTIFIER</td><td>6f40f996-8db5-49f3-b8ca-8671ea9edf5a</td><td>Set by DeployR</td></tr><tr><td>_UIPORT</td><td>7283</td><td>Set by DeployR</td></tr><tr><td>_UISOCKET</td><td>X:\_2P\state\ui.socket</td><td>Set by DeployR</td></tr><tr><td>_VARIABLEPORT</td><td>7282</td><td>Set by DeployR</td></tr><tr><td>_VARIABLESOCKET</td><td>X:\_2P\state\variables.socket</td><td>Set by DeployR</td></tr><tr><td>ANONYMOUS</td><td>TRUE</td><td>Set by DeployR</td></tr><tr><td>ARCHITECTURE</td><td>x64</td><td>Set by DeployR Gather</td></tr><tr><td>ASSETTAG</td><td>4102-7492-9856-5816-5097-6344-26</td><td>Set by DeployR Gather</td></tr><tr><td>BASEBOARDPRODUCT</td><td>Virtual Machine</td><td>Set by DeployR Gather</td></tr><tr><td>CHASSIS</td><td>Desktop</td><td>Set by DeployR Gather</td></tr><tr><td>CSPVERSION</td><td>Hyper-V UEFI Release v4.1</td><td>Set by DeployR Gather</td></tr><tr><td>CUSTOM</td><td>TRUE</td><td></td></tr><tr><td>DEBUG</td><td>TRUE</td><td>Set by BootStrap Config</td></tr><tr><td>DEFAULTGATEWAY001</td><td>192.168.10.1</td><td>Set by DeployR Gather</td></tr><tr><td>DEPLOYRCONTENT</td><td>X:\_2P\content</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRHOST</td><td>https://deployr.corp.viamonstra.com:7281</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRROOT</td><td>X:\_2P</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRSTATE</td><td>X:\_2P\state</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRTASKSEQUENCEID</td><td>00000002-0000-0000-0000-000000000001</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRTASKSEQUENCEVERSIONID</td><td>8fd68264-2d37-4000-55ab-08dca0511f05</td><td>Set by DeployR</td></tr><tr><td>DEPLOYRTASKSEQUENCEVERSIONNO</td><td>1</td><td>Set by DeployR</td></tr><tr><td>FINISHACTION</td><td>Tell the Task Sequence what to do after the TS finishes - Default is NOT Set, and does nothing.</td><td>reboot, shutdown, logoff, reseal</td></tr><tr><td>GATHERLOCALONLY</td><td>TRUE</td><td></td></tr><tr><td>INLINE</td><td>TRUE</td><td>Set by DeployR Step</td></tr><tr><td>IPADDRESS001</td><td>192.168.10.137</td><td>Set by DeployR Gather</td></tr><tr><td>IPADDRESS002</td><td>fe80::ef31:32ca:d547:ca8a</td><td>Set by DeployR Gather</td></tr><tr><td>ISDESKTOP</td><td>TRUE</td><td>Set by DeployR Gather</td></tr><tr><td>ISLAPTOP</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISSERVER</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISSERVERCOREOS</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISSERVEROS</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISSFF</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISTABLET</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>ISUEFI</td><td>TRUE</td><td>Set by DeployR Gather</td></tr><tr><td>ISVM</td><td>TRUE</td><td>Set by DeployR Gather</td></tr><tr><td>MACADDRESS001</td><td>00:15:5D:A6:3A:64</td><td>Set by DeployR Gather</td></tr><tr><td>MAKE</td><td>Microsoft Corporation</td><td>Set by DeployR Gather</td></tr><tr><td>MAKEALIAS</td><td>Microsoft</td><td>Set by DeployR Gather</td></tr><tr><td>MANUFACTURER</td><td>Microsoft Corporation</td><td>Set by DeployR Gather</td></tr><tr><td>MEMORY</td><td>4095</td><td>Set by DeployR Gather</td></tr><tr><td>MODEL</td><td>Virtual Machine</td><td>Set by DeployR Gather</td></tr><tr><td>MODELALIAS</td><td>Virtual Machine</td><td>Set by DeployR Gather</td></tr><tr><td>OSCURRENTBUILD</td><td>26100</td><td>Set by DeployR Gather</td></tr><tr><td>OSCURRENTVERSION</td><td>10.0.26100</td><td>Set by DeployR Gather</td></tr><tr><td>OSSKU</td><td>Ultimate Edition</td><td>Set by DeployR Gather</td></tr><tr><td>OSVERSION</td><td>WinPE</td><td>Set by DeployR Gather</td></tr><tr><td>PEERING</td><td>Enable or Disable BranchCache P2P during Task Sequence. Default = TRUE</td><td>TRUE/FALSE</td></tr><tr><td>PROCESSORSPEED</td><td>1608</td><td>Set by DeployR Gather</td></tr><tr><td>PRODUCT</td><td>Virtual Machine</td><td>Set by DeployR Gather</td></tr><tr><td>PSMODULEPATH</td><td>X:\Program Files\PowerShell\Modules;x:\program files\powershell\7\Modules;X:\Program Files\WindowsPowerShell\Modules;X:\Windows\system32\WindowsPowerShell\v1.0\Modules;X:\Program Files\PowerShell\;X:\Program Files\PowerShell\7\;X:\Windows\system32\config\systemprofile\Documents\PowerShell\Modules\</td><td>Set by DeployR</td></tr><tr><td>SCRIPT</td><td> </td><td>Set by DeployR Step</td></tr><tr><td>SERIALNUMBER</td><td>4102-7492-9856-5816-5097-6344-26</td><td>Set by DeployR Gather</td></tr><tr><td>SETUPMODE</td><td>UEFI</td><td>Set by DeployR Gather</td></tr><tr><td>SUPPORTSSLAT</td><td>FALSE</td><td>Set by DeployR Gather</td></tr><tr><td>SYSTEMALIAS</td><td>Hyper-V UEFI Release v4.1</td><td>Set by DeployR Gather</td></tr><tr><td>SYSTEMSKU</td><td>None</td><td>Set by DeployR Gather</td></tr><tr><td>TSID</td><td>The ID (GUID) of the task sequence to be executed.  An example:<br>00000002-0000-0000-0000-000000000001</td><td>Set by DeployR</td></tr><tr><td>UUID</td><td>B4F64D47-CA2D-4030-AB3F-400E256419B1</td><td>Set by DeployR</td></tr></tbody></table>

### From running Task Sequence

To view the current task sequence variables, you can launch PowerShell using the menu in the DeployR progress UI, then running a command to output them to the console.  The Menu is available by clicking on the 2 parallel lines, which resembles an equals sign (=), just past the "Close" button.

```powershell
Get-ChildItem -Path tsenv:
```

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FYdotW2aAa30hvmERHg44%2Fimage.png?alt=media&#x26;token=47ca2499-fb20-49cd-a320-36f9b09a3fd0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FUlEvubijvbXV5GQIrWNh%2Fimage.png?alt=media&#x26;token=40ad0db3-976c-498b-a6f3-e64d9572d36a" alt=""><figcaption></figcaption></figure>
