Install UserLock silently
Install, configure, and uninstall UserLock without a graphical interface using command-line and PowerShell. This is useful for automated deployments or environments without a desktop UI.
Download the UserLock setup package to a local folder (for example,
C:\Temp\).Open a 64-bit Command Prompt with the "run as administrator" option.
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
/vand/qn:
UserLock_Setup.exe /s /v/qn /vADDLOCAL=Service,PrivilegeElevation,Modules,MFAIIS,Proxy,WebConsole,ClientTools,Console,PowerShell,HelpMinimum recommended configuration:
Service,PrivilegeElevation,PowerShellStandard configuration (equivalent to a GUI installation on Windows Server):
Service,PrivilegeElevation,Modules,MFAIIS,Proxy,WebConsole,ClientTools,Console,PowerShell,HelpIf the ADDLOCAL property is not used, only
ConsoleandPowerShellare installed.
To include additional modules such as UserLockSSO or the developer documentation, contact IS Decisions Support.
Add the following to the end of the command:
/v"INSTALLDIR=\"C:\temp\""Once the server is installed, its configuration can also be applied silently using a PowerShell script.
Download the configuration script: Set-UserLockConfiguration.zip
Extract the ZIP contents to a folder, for example
C:\Temp\.Run PowerShell (32-bit) as Administrator ("%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe"):
Import the module and run the script:
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.
Custom Protected Zone:
& '.\Set-UserLockConfiguration.ps1' -AdminAccount 'UserLockSvc' -AdminDomain 'VCORP' -AdminPassword 'YourPassword' -Zone 'OU=MyOU,DC=MyDomain,DC=intra'Backup server setup:
& '.\Set-UserLockConfiguration.ps1' -IsBackupServer -PrimaryServerName 'DC1' -AdminDomain 'VCORP' -AdminAccount 'UserLockSvc' -AdminPassword 'YourPassword'Once the UserLock service is running:
Open the UserLock administration console.
Connect to the server.
Verify the configuration and license status.
Open a 64-bit Command Prompt with the "run as administrator" option.
Run:
"%ProgramFiles(x86)%\ISDecisions\UserLock\CheckBeforeUninstall.exe" "{C05318E5-6161-4E5B-A385-3CAD49C835CF}"