Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Uninstall Office 2016 Package fails

I am having other Powershell errors with the Uninstall Microsoft Office 2016 package that is in the PDQ library. It returned an error 1 message. The output log has the following in it

Invoke-Expression : The process cannot access the file 'C:\Windows\AdminArsenal\PDQDeployRunner\service-1\exec\Error

Handling Wrapper.ps1' because it is being used by another process.

At line:1 char:6

+ try{ Invoke-Expression "& '.\Error Handling Wrapper.ps1'"} Catch [Sys ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ObjectNotFound: (:String) [Invoke-Expression], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.InvokeExpressionCommand


I ran this on a machine that no one was logged into. 



1 comment
Date Votes
  • My guess is antivirus. Something is accessing the error handling wrapper (a PowerShell script that executes your PowerShell Step code) at the same time that PowerShell is trying to execute it.