---
locale: "en"
updated_at: "2026-07-30T14:24:30.936Z"
canonical: "https://www.isdecisions.com/en/userlock/docs/guides/installation/advanced/install-userlock-silently"
---

# Install UserLock silently

Command-line and PowerShell steps for installing, configuring, or uninstalling UserLock.

## Install UserLock silently

1. Download the UserLock setup package to a local folder (for example, `C:\Temp\`).
2. Open a 64-bit Command Prompt with the "run as administrator" option.
3. Run the following command to install the standard configuration (see the section below if you wish to use a different configuration). There must be no space between `/v` and `/qn`:

```bash
UserLock_Setup.exe /s /v/qn /vADDLOCAL=Service,PrivilegeElevation,Modules,MFAIIS,Proxy,WebConsole,ClientTools,Console,PowerShell,Help
```

### Configuration examples

- **Minimum recommended configuration**:
`Service,PrivilegeElevation,PowerShell`
- **Standard configuration** (equivalent to a GUI installation on Windows Server):
`Service,PrivilegeElevation,Modules,MFAIIS,Proxy,WebConsole,ClientTools,Console,PowerShell,Help`
- If the [ADDLOCAL](https://learn.microsoft.com/en-us/windows/win32/msi/addlocal) property is not used, only `Console` and `PowerShell` are installed.

To include additional modules such as UserLockSSO or the developer documentation, contact IS Decisions Support.

### Installing to a custom location

Add the following to the end of the command:

```bash
/v"INSTALLDIR=\"C:\temp\""
```

## Configure the server silently

Once the server is installed, its configuration can also be applied silently using a PowerShell script.

1. Download the configuration script: [Set-UserLockConfiguration.zip](https://cdn.isdecisions.com/Download/userlock/Set-UserLockConfiguration.zip)
2. Extract the ZIP contents to a folder, for example `C:\Temp\`.
3. Run PowerShell (32-bit) as Administrator ("%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe"):
4. Import the module and run the script:

```powershell
Import-Module "${env:ProgramFiles(x86)}\ISDecisions\UserLock\Modules\UserLockPowerShell\UserLockPowerShell.psd1"
cd C:\Temp\
& '.\Set-UserLockConfiguration.ps1' -AdminAccount 'UserLockSvc' -AdminDomain 'VCORP' -AdminPassword 'YourPassword'
```

> **Note**
>
> The `Import-Module` command loads UserLock cmdlets (such as `Get-UserLockServerConfiguration`, used by the script) even right after installation.

### Additional parameters

- **Custom Protected Zone**:

```powershell
& '.\Set-UserLockConfiguration.ps1' -AdminAccount 'UserLockSvc' -AdminDomain 'VCORP' -AdminPassword 'YourPassword' -Zone 'OU=MyOU,DC=MyDomain,DC=intra'
```

- **Backup server setup**:

```powershell
& '.\Set-UserLockConfiguration.ps1' -IsBackupServer -PrimaryServerName 'DC1' -AdminDomain 'VCORP' -AdminAccount 'UserLockSvc' -AdminPassword 'YourPassword'
```

## Verify the installation

Once the **UserLock service** is running:

1. Open the UserLock administration console.
2. Connect to the server.
3. Verify the configuration and license status.

## Uninstall UserLock silently

1. Open a 64-bit Command Prompt with the "run as administrator" option.
2. Run:

```bash
"%ProgramFiles(x86)%\ISDecisions\UserLock\CheckBeforeUninstall.exe" "{C05318E5-6161-4E5B-A385-3CAD49C835CF}"
```

## **Related pages**

- [Install UserLock in a Windows Server Core](/userlock/docs/guides/installation/advanced/install-userlock-in-a-windows-server-core)
