BigFix Powershell Execution Failed

Hi,

I am using Powershell within the BigFix Action to deploy and validate the onboarding and certificates. In some Random cases it does not give any failure and Script works fine but in few cases script get failed on below step only. I can see it create c:\temp\OMI.ps1 but unable to find the reason why it is getting failed on below step, One more thing it is working fine when i execute the same OMI.ps1 file manually which was created by BigFix action script.

Failed: waithidden { pathname of file ((it as string) of value “Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell” of native registry) } -ExecutionPolicy Bypass -File “c:\temp\OMI.ps1”

do you disable syswow64 redirection? If not, I would suggest you do. Also, I would put the path in double-quotes just in case.

If it still fails even with those, see what is in the agent log file explicitly (it should show you the actual command the relevance evaluated to), and at that stage you can even try to run it manually.