Post-Installation task wait issues (K2000)
I'm having issues with a post-installation task that Kace doesn't wait for to complete properly, it begins the next task that fails.
Some screenies below, first one in the begining, the other one shows the powershell window still being active and running a scripts, while Kace tries to install BGInfo which is the next task...
The details of the task that is causing the issue below:
Type: Application (the 2 files below zipped together)
Content of cmd: Start /wait Powershell.exe -NoProfile -ExecutionPolicy ByPass -file Remove-AllProvisionedAppxPackage.ps1
Content of Remove-AllProvisionedAppxPackage.ps1: Get-appxprovisionedpackage –online | remove-appxprovisionedpackage –online
I've tried without "start /wait". I've tried running this with the command as a parameter instead, no difference. Please help me out.
Answer Chosen by the Author
I found the real cause for this problem and it's discussed here: