Wednesday, May 7, 2014

Microsoft SCCM 2012: Creating a powershell script package

The following post will show you how to create a SCCM 2012 package that runs a powershell script.

I have referenced this in previous posts but wanted to break this out specifically because I find myself referencing this process in many posts.  My future posts will just reference this process in an effort to keep posts to the point.

Creating the powershell script package

  • In the SCCM Console go to Software Library, Application Management, Packages.  Click on Create Package.
  • Package
    • Name = Powershell Script Package Name
    • Description = Package Description
    • Manufacturer =
    • Language = English
    • Version = Version
    • Check This package contains source files.  Browse to the Source folder that contains the powershell script you created.
    • Next.
  • Program Type
    • Select Standard Program, Next.
    • Standard Program
      • Name = Powershell Script Program Name 
      • Command line = powershell -ExecutionPolicy ByPass -File PowershellScriptName.ps1
      • Startup folder =
      • Run = Normal
      • Program can run = Whether or not a user is logged on
      • Next.
    • Requirements
      • Estimated disk space = Unknown
      • Maximum allowed run time = Unknown
      • Next.
  • Summary.  Next.
  • Close.
Right click on your package and distribute it to your distribution point.  After that you should be ready to go to deploy it to collections or call it from other package like your Java install package as you will see in the next post.

No comments :

Post a Comment