Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

Executing PowerShell scripts (PS1) during MDT UDI Task Sequence (install applications)

$
0
0

Hi all,

I'm trying to install applications in my MDT UDI Task Sequence.
All works fine except for PS1 scripts.

I have an install.cmd that contains:
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command ".\install.ps1" -Verb RunAs
exit /b %errorlevel%

This is the error output from my BDD.log:
In-line script returned error output: File C:\WINDOWS\CCM\SystemTemp\1107fc26-b43f-4a87-8de6-b0e0483da4a3.ps1 cannot be loaded. The file C:\WINDOWS\CCM\SystemTemp\1107fc26-b43f-4a87-8de6-b0e0483da
4a3.ps1 is not digitally signed. The script will not execute on the system.

Seems like the -ExecutionPolicy Bypass isn't working, altough this script works when I run the install.cmd after OS is deployed, just not from my MDT UDI Task Sequence.

Could it be I need to add additional components to my boot images for PowerShell support?

EDIT:
I added these additional components but still no difference.

cheers,

Harm



Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>