Tuesday, 1 March 2016

Deploying a Powershell script via SCCM 2012


Create your package as normal, in my example I created a package that will house all of my PS scripts. Make sure it's distributed to all of your DPs / Dist groups.

Once created, setup your package with the following program for each script - 

       

            powershell.exe -executionpolicy Bypass -nologo -noninteractive -file .\SomeScript.ps1

       
 

Et voilĂ !

No comments:

Post a Comment

PerfC Vaccination for ExPetr/Petya/NotPetya Wiper

This is a script I've written to 'vaccinate' our domain against the ExPetr/Petya/NotPetya Wiper. In short, it finds all comput...