Running PowerShell from Task Sequence

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

 

image

PowerShell.exe Command-Line

The Windows PowerShell Profile

Table of Contents

Share this post
Search blog posts
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.
Modern Workplace consultant and a Microsoft MVP in Windows and Devices for IT.

Infrastructure architect consultant with focus on Endpoint Management and Microsoft Sentinel.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Passionate IT professional with 20+ experience in IT architecture, consulting, and design. 

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

follow us in feedly
Categories

Follow on SoMe