Skip to main content
Version: 7.0

Windows Server (PowerShell module)

Online update

Open PowerShell as "Administrator":

Using the Start context menu
  1. Right-click on the Start icon in the lower-left corner of the screen.
  2. Select "Windows PowerShell (Administrator)" from the context menu.
Using the Start menu
  1. Left-click on the Start icon in the lower-left corner of the screen.
  2. Type powershell
  3. Open PowerShell as "Administrator" using the shortcut — Ctrl + Shift + Enter

And run the online Passwork update:

Update-Passwork -Method online
Actions performed
  • Checking for the presence of the .passwork_component file
  • Using .passwork_component to get the current Passwork version
  • Checking internet availability by querying the customer portal
  • Requesting the customer portal for the available version
  • Checking if an update is necessary
  • Preparing and downloading the new version
  • Verifying the archive using the digital signature
  • Processing and copying files to the new version
  • Archiving and cleaning the old version
  • Installing the new version

Offline update

Go to the Passwork Customer Portal and get the latest available Passwork version with a digital signature:

Example of obtaining Passwork version 7

To verify the digital signature, you also need the Passwork public key public-key.pem, ways to obtain it:

Manually
  • Open URL;
  • Copy all the contents;
  • Paste into a file and save the contents with the name — public-key.pem.
Automatically (PowerShell)
(New-Object System.Net.WebClient).DownloadFile("https://passwork.pro/public-key", "$PWD\public-key.pem")

Move the obtained files to the Windows Server with Passwork, where the offline update function will be run:

$PWD\Passwork-xxxxxx.zip
$PWD\xxxxxx.sig
$PWD\public-key.pem

Open PowerShell and run the function:

Update-Passwork -Method offline
info

By default, the script verifies the archive's digital signature using the provided public key. If the signature is invalid or missing, the update will be aborted.

If you trust the archive source, you can skip the signature verification:

Update-Passwork -Method offline -ignoreSignatureCheck
Actions performed
  1. Checking for the presence of the .passwork_component file
  2. Searching for and moving the Passwork archive
  3. Using .passwork_component to get the current Passwork version
  4. Checking if an update is necessary
  5. Verifying the archive using the digital signature
  6. Processing and copying files to the new version
  7. Archiving and cleaning the old version
  8. Installing the new version