Migration to Passwork 7
Passwork update to version 7
Windows Server (PowerShell)
8min
we have updated the installation of passwork on windows server instead of the passworksetup exe installer, a modern and convenient installation method using the windows server docid\ dzoohvrbnrc0ibwzzuqep is now available updating the powershell module 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 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 module already exists" foregroundcolor red } in case of errors, the archive can be downloaded manually https //repos passwork pro/repository/windows powershell/passworkmodule zip 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 " } \# remove an outdated version of the powershell module remove item "$windowsmodulepaths\passworkmodule" recurse force \# 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" deactivate and activate the powershell module to apply the changes in the new version powershell # activate the powershell module import module name "passworkmodule" if the passwork is located in a closed loop if passwork is located in a closed loopaif the server with passwork is located in a closed loop and does not have access to the internet, you need to execute get the php8 3 archive and move it to a windows server; get the version 7 archive from the passwork cutomer portal and move it to windows server the archives should be located in the directory from where the function to update php and passwork will be executed powershell $pwd\php latest zip $pwd\passwork xxxxxx zip updating php and passwork start a function to perform actions powershell update passwork environment actions performed by the function checking the passwork version checking migration execution in the web interface checking the availability of the customer portal retrieving archives or waiting for archives in $pwd unzipping php removing old php versions from path add new php version to path creating a passwork archive (6 5 x) unzipping the current version of passwork creating files filling in data from config ini register php8 3 with iis web server updating data in passwork component the process of performing a function the function verifies the completion of the initial migration in the passwork web interface (6 5) it unpacks the current versions of passwork and php, and then creates configuration files in case of errors, they are output to the powershell console once completed, a message will be displayed indicating that the passwork and php have been successfully updated this is what successful completion of the function looks like passwork update to version 7 docid\ mirirltabi9ksiabc5ih1 migration of passwork database objects docid\ us6r fvttqytaxn hn3df