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 preparation open powershell as "administrator" using the start context menu right click on the start icon in the lower left corner of the screen select "windows powershell (administrator)" from the context menu using the start menu left click on the start icon in the lower left corner of the screen write powershell open powershell as "administrator" with the combination — ctrl + shift + enter when using windows server 2016, you must enable the tls 1 2 security protocol using the command powershell \[net servicepointmanager] securityprotocol = \[net securityprotocoltype] tls12 get the passworkmodule zip archive into the current directory powershell if ( not (test path "$pwd\passworkmodule zip")) { (new object system net webclient) downloadfile( "https //repos passwork pro/repository/powershell/passworkmodule zip", "$pwd\passworkmodule zip" ) write host "module successfully received" foregroundcolor green } else { write host "archive with the module already exists" foregroundcolor red } in case of errors, the archive can be downloaded manually https //repos passwork pro/repository/windows powershell/passworkmodule zip unzip the powershell module powershell # get the location of powershell modules $windowsmodulepaths = $env\ psmodulepath split ";" | where object { $ like "c \windows " } \# unzip the powershell module to the directory expand archive ` path "$pwd\passworkmodule zip" ` destinationpath $windowsmodulepaths force \# delete the passworkmodule zip archive remove item "$pwd\passworkmodule zip" migration description 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 start migration process run the migration powershell set passwork powershell actions performed by the script passworksetup exe processing passwork website processing getting the passwork version in use certificate validation php processing processing mongodb handling start menu shortcuts and desktop links 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 an example passwork component file after the migration has been performed powershell passwork setup = 1 ps remove = 1 site name = passwork web site physical path = c \inetpub\wwwroot\passwork passwork version = 060403 cert = lpvxgk2wquwvf6pzfv5cunce4zlu8gcy5xzrz8zifawenbcirdzfsamlxbvhkxigmrwngvq3divef php version = 8 0 20 db version = 4 2 9 db config = c \program files\mongodb\server\4 2\bin\mongod cfg db root = c \program files\mongodb migrate = 1