Search This Blog

Monday, May 26, 2014

Running PowerShell from Task Sequence

I often need to use a PowerShell script in a task Sequence, so in order to do that without any problems I use the following command line:

Powershell.exe -noprofile -ExecutionPolicy Bypass -file .\Script.ps1



PowerShell.exe Command-Line

The Windows PowerShell Profile

No comments:

Post a Comment