The Powershell run script tasks fail when running in WinPE.
Environment
DS 8.x
Resolution
To build a WinPE environment with the correct packages that will allow for Powershell run script tasks to work in winpe. You just need to make a few changes to a file on the Notification Server by doing the following to make the change:
Open default.bdc file on the Notification Server, found in \Program Files\Altiris\Deployment\BDC\bootwiz\default.bdcw, with notepad++.
Under Packages add: WINPE-DISMCMDLETS=True WINPE-NETFX=True WINPE-POWERSHELL=True WINPE-STORAGEWMI=True
Save file
Open up Altiris Console
Go to Settings > All Settings
Go to Deployment > Packages > BDC
Click on Update Distribution Points
Once the BDC Packages are updated on Package Server then rebuild your PXE/Automation Environment.