Passwork update
Installation migration
Migration from installer to PowerShell
8min
Please note:
- The instructions describe how to prepare and migrate Passwork, installed using the Passwork installer or manually, to the PowerShell module.
- The instructions are for a single Passwork installation and are not suitable for a fault-tolerant solution.
Open PowerShell as "Administrator":
When using Windows Server 2016, you must enable the TLS 1.2 security protocol using the command:
PowerShell
1[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Get the PassworkModule.zip archive into the current directory:
PowerShell
1if (-not (Test-Path "$pwd\PassworkModule.zip")) {
2 (New-Object System.Net.WebClient).DownloadFile(
3 "https://repos.passwork.pro/repository/powershell/PassworkModule.zip",
4 "$pwd\PassworkModule.zip"
5 )
6 Write-Host "Module successfully received" -ForegroundColor Green
7} else {
8 Write-Host "Archive with the module already exists" -ForegroundColor Red
9}
In case of errors, the archive can be downloaded manually: https://repos.passwork.pro/repository/windows-powershell/PassworkModule.zip
Unzip the PowerShell module:
PowerShell
1# Get the location of PowerShell modules
2$windowsModulePaths = $env:PSModulePath -split ";" | Where-Object { $_ -like "C:\Windows*" }
3
4# Unzip the PowerShell module to the directory
5Expand-Archive `
6 -Path "$pwd\PassworkModule.zip" `
7 -DestinationPath $windowsModulePaths -Force
8
9# Delete the PassworkModule.zip archive
10Remove-Item "$pwd\PassworkModule.zip"
Migration will collect and record information about the components used in a separate file, remove the Passwork installer, and add the ability to use administration features.
Run the migration:
PowerShell
1Set-Passwork-PowerShell
The script will create a file called C:\inetpub.passwork_component, which contains the details that are needed for the PowerShell module to work correctly:

PowerShell
1PASSWORK_SETUP = 1
2PS_REMOVE = 1
3SITE_NAME = Passwork Web Site
4PHYSICAL_PATH = C:\inetpub\wwwroot\passwork
5PASSWORK_VERSION = 060403
6CERT = lpVxgK2WquWvF6pZFV5cuNCE4zlu8GcY5XzRz8ziFaWENbcirdZfSAMlxBvhKXIGmRwNgvq3DIVEf
7PHP_VERSION = 8.0.20
8DB_VERSION = 4.2.9
9DB_CONFIG = C:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg
10DB_ROOT = C:\Program Files\MongoDB
11MIGRATE = 1
Updated 05 May 2025
Did this page help you?