I have an OSD task sequence deploying Windows Server 2008 R2. All is well, SCCM client gets installed, SCOM agent gets installed, drivers get injected.
Now there's also a Powershell script which fails with errorcode 1. For the life of me I haven't found a clue as to where the problem lies.
Running SCCM 2007 SP2 R2.
The scripts is packed inside a program which will call the following commandline (as administrator):
Manually running this command in a powershell prompt everything works.
I've also incorporated a sytem reboot to the new OS in the Task Sequence so the powershell execution policy gets set to "RemoteSigned" and the program is also copied locally before execution...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hello all,
I have an OSD task sequence deploying Windows Server 2008 R2. All is well, SCCM client gets installed, SCOM agent gets installed, drivers get injected.
Now there's also a Powershell script which fails with errorcode 1. For the life of me I haven't found a clue as to where the problem lies.
Running SCCM 2007 SP2 R2.
The scripts is packed inside a program which will call the following commandline (as administrator):
"%windir%\SysWOW64\WindowsPowershell\v1.0\Powershell.exe" -command ".\Script.ps1".
Manually running this command in a powershell prompt everything works.
I've also incorporated a sytem reboot to the new OS in the Task Sequence so the powershell execution policy gets set to "RemoteSigned" and the program is also copied locally before execution...
Any ideas anyone?
Share this post
Link to post
Share on other sites