Calling PowerShell script via K2000: Return code 2 System cannot find file specified
Have 2 postinstall tasks that get error in Kace (K2 v 3.6), error is return code 2, System cannot find file specified. I have Kace stop on error and when I look at the Kace\apps\id# folder I can see the powerShell script there. The command line of the the 2 post install scripts is:
powershell.exe -nologo -executionpolicy bypass -WindowsStyle hidden -noprofile -file "script.ps1"
get error no matter if have " or not. Any one have any idea why Kace cannot see the Powershell script in it's own folder? Also When Kace stops I manually run the Powershell scripts from the Kace folder and they run with no errors. I have tried this install on a Windows 8.1 and Win 7 and get same result.