> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetEnvironmentVariable

> Create or update a project environment variable with the SetEnvironmentVariable command in ABBYY FlexiCapture FCAdminTools, setting its value and type.

You can use an environment variable to specify a general setting for a project. You can use the `SetEnvironmentVariable` command to create such an environment variable. If an environment variable with the name you specify already exists, the command will change its value and description; otherwise, a new environment variable will be created.

<Note>
  You cannot change the type of an existing environment variable. If you specify a different type for an existing environment variable, the command will return an error.
</Note>

## Parameters

| Parameter      | Type     | Description                                                                                                                                                                                                                                                                   |
| :------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/Project`     | Optional | Specifies a project. You can specify the full path to a local project, the path to a project on a server, or the name of a project on a server (the `/Server` parameter must be specified). If no project is specified, the command processes all the projects on the server. |
| `/Name`        | Optional | Environment variable name.                                                                                                                                                                                                                                                    |
| `/Value`       | Optional | Environment variable value. If it is not set, it is processed as an empty line.                                                                                                                                                                                               |
| `/Type`        | Optional | Environment variable type. Possible values are `String` and `ADOConnectionString`. By default, this parameter is set to `String`.                                                                                                                                             |
| `/Description` | Optional | Environment variable description.                                                                                                                                                                                                                                             |
| `/Server`      | Optional | Server address.                                                                                                                                                                                                                                                               |
| `/Tenant`      | Optional | Tenant name.                                                                                                                                                                                                                                                                  |
| `/U`           | Optional | User name. If no user name is specified, Windows authentication is used.                                                                                                                                                                                                      |
| `/P`           | Optional | Password.                                                                                                                                                                                                                                                                     |
| `/Cert`        | Optional | Certificate thumbprint used for mutual SSL authentication. This key is used to pass an encoded certificate hash for a server with Mutual SSL installed as a string.                                                                                                           |

## Example of use

* `SetEnvironmentVariable /Project="D:\Banking_eng" /Name="ImportPath" /Value="D:\123"` – For a local project.
* `SetEnvironmentVariable /Project="https://localhost/1" /Name="ImportPath" /Value="D:\123"` – For a project on a server.
