PowerShell and Configuration Manger

Fyrir hverja: IT Professionals
Tæknin: Microsoft SCCM og PowerShell
Level: 300
Kennsluaðferð: Hægt að velja um staðnám og/eða fjarkennslu í beinni
Lengd námskeiðs: 2 dagar (ath hægt er að taka þrjá daga á undan sem grunn: PowerShell Fundamentals).
Tungumál: Kennsla er á ensku, kennsluefni er á ensku


Would you like to learn how to use you PowerShell knowledge to be able to automate workflows in System Center Configuration Manager?

Then this lab is exactly what you’re looking for!


With the increasing demand on time for administrators in IT automation has become an important skill to learn. Additionally there are certain features and functions within the Microsoft product line that can only be configured and used with Microsoft scripting standard PowerShell. It doesn’t hurt that automation with PowerShell is one of the most cost-effective ways to optimize time on task. The Configuration Manager product is no exception.

Over the course of two days you’ll learn to apply your PowerShell knowledge to areas within Configuration Manager. Expect a lot of demos and PowerShell samples that you can easily adapt for your organization’s environment after the course is completed. We will discuss how to make supported change within WMI as well as how to use the Configuration Manager PowerShell cmdlets to automate common tasks within Configuration Manager including patching collection creation and more.

Fyrir hvern?/Inntökuskilyrði

A basic understanding of PowerShell is critical to succeed in this class. Understanding how to import modules, and how to write basic one liners as well as knowing the common aliases is expected. A general understanding of what WMI is will help as well. 


After completing this course you should have a good understanding on how to automate daily tasks, site management and much more in System Center Configuration Manager using PowerShell. Additionally you should have learned some of the do’s and don’ts within PowerShell. .


Lab manual and presentations. In this lab, you’ll learn the following:

PowerShell and Configuration Manager

  • Using the SMS Provider or PowerShell Module
  • Device and User Collections
  • Applications and Packages
  • Software Updates
  • Operating System Deployment
  • Compliance Management and Endpoint Protection
  • Manage the Configuration Manager client
  • Site Administration and Hierarchy configuration


Module 1 – Configuration Manager Clients and PowerShell

What do right click actions do?
When working with Configuration Manger one of the first lessons most people have is learning how to be patient with the product because it takes time for clients to complete different actions. In order to speed up a lot of these activities on specific clients we frequently use either third party tools or the built in tools. In this section we will take a look at what some of those actions are telling clients to do and how we can use PowerShell to instruct clients to do that work for us.

Creating our own right click actions with PowerShell
There are many tools that have been written by members of the community on how to use PowerShell to improve client health and responsiveness. Here we will use PowerShell to start building some of our own specific right click actions for clients. This will teach students how to perform actions from a computer that doesn’t’ even require the configuration manager console to be installed.

Exploring the Configuration Manager Client WMI Space
If we want to really be able to use PowerShell to interact with Configuration manager clients, we need to be able to learn and navigate the configuration manager client WMI space. Here students will learn some tips and tricks on how to explore a clients WMI space, gather information and verify that a client is configured the way they want it to be without logging into the client or relying on the configuration manager console.

Using Run Scripts
While it’s useful to create scripts to interact with the configuration manager can we do the opposite and use configuration manager to interact with PowerShell? Yes we can! Since the introduction of Configuration Manager 1806 a new feature was added called ‘Run Scripts’ this feature allows a configuration manager admin to add leverage the ‘Fast Channel’ to quickly distribute and execute a script within an environment. Here we’ll explore how to use this new feature and spend some time developing and sharing some scripts with each other that solve unique problems.

Using CMPivot
Microsoft saw the power of RunScripts and then used that to create an extremely powerful version of this called CMPivot and how that information can be gathered back and then turned into something actionable using Run Scripts. Here we will explore how CMPivot uses PowerShell to gather this information and how we can use this information to then use PowerShell with Configuration Manger.


Module 2 – The Configuration Manager PowerShell Module

The Rules of the Configuration Manager PowerShell Module

Due to the tight integration to various DLL’s for the PowerShell Module in configuration manager we will start be investigating the various ways you have available to you to import the PowerShell Module and when you can or can’t use it.

WMI or the PowerShell Module Which one then?
Because of the rules involved with the Configuration Manager PowerShell Module it’s sometimes easy to forget that essentially everything that can be done with the Configuration Module has a corresponding command in WMI if you can find the command and manage to use it. Here we will discuss the pro’s and con’s to why someone should or shouldn’t use each one.


Module 3 – Basic Configuration Manager Changes using PowerShell

Hierarchy Configuration – Creating Boundaries

Configuration Manager frequently requires you to create boundaries especially when acquiring a new company and you suddenly need to ingest all of their networks. Instead of using the console to add all of those network here we will learn how to add different types of networks or boundaries and add or remove them from different groups.

Hierarchy Configuration – Configuring Discovery Methods
Configuration Manager relies heavily on properly configuring and managing different discovery methods to ensure that machines are properly added to the environment for manage. Here we will review how to add different discovery methods to an environment. We will also cover how to invoke or start discovery from PowerShell.

Collection Management – Creating and Deleting Collections Using PowerShell
Configuration Managers most frequently used resource are almost without a doubt collection and creating them can be extremely annoying at times especially when you have to create a large number of them. Here we will go over how to create collections, how to set or update a collection evaluation schedule how to remove collections and how to remove collections.

Collection Management –Membership Rules and Maintenance Windows
While creating collections is a useful skill to have especially when you need to create a large number of them. Collections are not very useful unless you have also created rules for that collection. Students will learn to create collection include rules, Exclude rules and query based rules as well with PowerShell.


Module 4 – Managing Software Updates with PowerShell

Creating or updating Automatic Deployment Rules with PowerShell

Learning to create or update automatic deployment rules with PowerShell. Automatic Deployment rules are a crucial component to properly scheduling the installation of updates in Configuration Manager.

Creating Software Update Groups with Powershell
While software update groups can be created and deployed every month automatically with built in solutions from Configuration Manager sometimes that doesn’t yield the results we want. Here students will learn how to create software update groups that can then be deployed with PowerShell or other solutions. We will also go over the utilization of where this information is stored in WMI.

Creating Software Update Deployments with PowerShell
Students will talk about patching philosophy and then learn how to create PowerShell Deployments of patches. Including discussing the 42 different involved PowerShell switches. Figuring out how to handle scheduling of this process for your organization and dealing with Microsofts annoying calendar problems.


Module 5 – Using PowerShell with Configuration Item Baselines

Creating Configuration Items with PowerShell

Students will learn how to create configuration Items using PowerShell. We will also focus on common uses for Configuration Items and how to use them to create functional scripts in an environment to ensure desired state compliance.

Creating Baselines With PowerShell
Students will learn how to create baselines with PowerShell how to attach created configuration items to those baselines and then how to deploy them using PowerShell


Module 6 – Using PowerShell with SQL 


Installing the SQL PowerShell Module

Students will learn how to install the SQL PowerShell Module from the PSGallery and why they should do this. Students will also learn how to use the built in SQL cmdlets as well.

Querying the Database from PowerShell
Students will learn how to query the SQL database using PowerShell and then how to take that information and use it to make changes in Configuration Manager.


Jordan BenzingKennari á námskeiðinu er Jordan Benzing, sérfræðingur frá TrueSec Training. Nánari upplýsingara um kennarann má finna HÉR.


Ekki eru lögð fyrir formleg próf í sjálfu námskeiðinu en mikil áhersla er lögð á að leiðbeinandi og þátttakendur fari sem oftast yfir það sem hefur áunnist til að ýta undir stöðugar framfarir.


Sérhannað námsefni frá TrueSec Training. Student Lab Manual/Guide – Sample Scripts – Some General use Helper Functions.


Greiðslukjör: Staðgreiðsla, VISA/MasterCard staðgreiðslulán til allt að 36 mánaða, greiðsla með Netgíró og Pei.
Styrkir: Flest stéttarfélög og fagfélög styrkja félagsmenn sína myndarlega til náms hjá okkur. Kannaðu rétt þinn hjá þínu félagi. Þú getur líka haft samband okkur í síma 519-7550 eða sendu okkur línu á promennt@promennt.is og við aðstoðum þig við að finna út úr hvaða styrkjum þú átt rétt á.
Fjarkennsla í beinni: Við minnum á að þetta námskeið er einnig hægt að taka í fjarkennslu í beinni útsendingu sem þýðir einfaldlega að þú getur tekið þátt í kennslustundinni algjörlega

Vinsamlegast athugið að dagsetningar eru birtar með fyrirvara um að lágmarksþátttaka náist á námskeiðið.