Installing or upgrading to Lexmark Print Management Client (LPMC) version 3.5.x fails due to a policy that blocks PowerShell on Windows
When installing or upgrading to LPMC (Lexmark Print Management Client) version 3.5.x, the operation fails due a policy that blocks PowerShell on Windows
Issue description
- If the local workstation adheres to a policy that blocks PowerShell from launching and running, the installation or upgrade will fail.
- After a failed installation, you can verify this issue by checking the install logs the workstation. The logs are located in theC:\Users\<username>\AppData\Local\Temp` directory under the corresponding `Lexmark_Combined_Print_Management_XL_xxx.logfiles. Look for entries similar to the following:
- WixQuietExec: Entering WixQuietExec in C:\Windows\Installer\MSIBD5E.tmp, version 5.0.0.0
- WixQuietExec: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "C:\Program Files\Lexmark\Print Management Client\post_install.ps1"
- WixQuietExec: Error 0x80070005: Command failed to execute.
- WixQuietExec: Error 0x80070005: QuietExec Failed
- WixQuietExec: Error 0x80070005: Failed in ExecCommon method
- Error 0x80070005indicates an access-denied error.
Solution
LPMC 3.5.0 or later uses PowerShell to run installation scripts during upgrades or new installs. PowerShell must be allowed to run on the workstation for a successful install or upgrade of LPMC version 3.5.x.