Hello,
On my lab environment, I'm trying to execute a package while OSD deployment process. Installation of this package is the last step in my OSD task sequence. The package consists of two files: PowerShellScript.ps1 and Setup.bat
Basically it sets PowerShell execution policy to RemoteSigned and run the .ps1 script which is actually code signed. But at the time of deployment, it failed to run.
The Setup.bat file contains the following commands:
"powershell.exe" -noprofile -command "&{Set-ExecutionPolicy RemoteSigned -force}"
These are the error messages that I saw but I don't have any idea
(__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002(e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582) TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)
Any further help/suggestions would be greatly appreciated. Thank you!
Processed all elements TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Adding end group instruction at 12 TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) The next instruction after group will be at 13 TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Processing group TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Parsing group node: Configure PowerShell TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Description: TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) ContinueOnError: true TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Disable: TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)(__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002
(e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582) TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)No condition is associated with the step. TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Adding begin group instruction at 13 TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) There are 1 first level steps or groups TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Parsing step node: Set PowerShell Execution Policy TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Description: Set PowerShell Execution Policy to RemoteSigned TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) ContinueOnError: true TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) SuccessCodeList: 0 TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)(__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002
(e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582) TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)No condition is associated with the step. TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Disable: TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Run in attribute: FullOS TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) Timeout: TSManager 6/17/2013 12:13:18 PM 1844 (0x0734) DefaultVarlist found TSManager 6/17/2013 12:13:18 PM 1844 (0x0734)