# Variables

Variables allow for the global definition of variables that are available within scripts. You can also import secrets that are also available within scripts or as run as credentials.&#x20;

{% hint style="info" %}
Variables are stored in the `variables.ps1` configuration file.
{% endhint %}

## Creating a Variable&#x20;

To create a variable, navigate to the Automation / Variables page. Click Add Variable to define a new variable.&#x20;

Standard variables are just name \ value pairs of strings. They will be added to your scripts before they are run.&#x20;

!['](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-M6jyKo5f8JfGbhoQmb5%2F-M6k1AMllUz2dGUbC7K0%2Fimage.png?alt=media\&token=370dfb82-49a0-4597-a70b-5457d2d18b73)

## Creating a Secret Variable

{% hint style="warning" %}
Secret management is currently only supported on Windows.&#x20;
{% endhint %}

Secret variables are stored within the selected vault. The value of those variables are never stored within Universal. To define a new secret variable, click Add Variable on the variables page and select the Secret tab.&#x20;

{% hint style="warning" %}
Values for secrets are stored within the current user's Windows Credential Manager instance. If you change users (such as running as a service account), the account will not have access to the previous user's secrets and you will need to add those secrets again.
{% endhint %}

From this dialog, you'll be able to define string and PSCredentials in the specified vault.&#x20;

![](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-M6jyKo5f8JfGbhoQmb5%2F-M6k1XcSDRFDIRPPanJH%2Fimage.png?alt=media\&token=74f7cc8d-7c33-45f6-a925-d6f9a7516d74)

## Importing Secret Variables

You can also import pre-existing secrets as variables into Universal. The variable values are not imported but will be looked up during execution. Click the Import Secret button to import secrets.&#x20;

## Related Cmdlets

* [New-UAVariable](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/Universal/New-UAVariable.md)
* [Get-UAVariable](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/Universal/Get-UAVariable.md)
* [Remove-UAVariable](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/Universal/Remove-UAVariable.md)
* [Set-UAVariable](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/Universal/Set-UAVariable.md)
