# Set variable

The **Set variable** step sets the specified task sequence variable to the value provided.  These variables can then be used in subsequent task sequence steps, conditions, etc.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2Fd6P0gSOxj5bouwzCrE1n%2Fimage.png?alt=media&#x26;token=16c11ca4-fd63-4a5d-90dd-1e61619108e6" alt=""><figcaption></figcaption></figure>

Variables can also be defined via [Run PowerShell script](https://documentation.2pintsoftware.com/deployr/reference/step-definitions/run-powershell-script) steps.
