25 March 2013

SCCM: Powershell Command Line

In order to run a powershell script as a task sequence/application in SCCM or MDT, you will need to use the following command line in MDT/SCCM to correctly execute the script:


  • powershell.exe -executionpolicy bypass -File install.ps1
NOTE: You may need to enter the path to the powershell.exe and to the install.ps1, although for the install.ps1, it should see it from the path you enter in the working directory field. 
Reactions:

1 comments:

  1. Hi, you tell how to run a script, not a command line :-)

    ReplyDelete