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.
Comments
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.