Hot to use PowerShell to manage System Center Configuration Manager

The easiest way is by launching the Configuration Manager console. In the upper left corner, there’s a blue rectangle. Click the white arrow in the blue rectangle, and choose Connect via Windows PowerShell.


Now, you need to import the Configuration Manager module by using the Windows PowerShell Import-Module cmdlet. To import the Configuration Manager module, you will have to specify the path to the Configuration Manager module or change to the directory that contains the module. Here, we’re going to change to the module’s directory.

PS C:\>

PS C:\> CD ‘C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager’

PS C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager>

Then import the module;

Import-Module .\ConfigurationManager.psd1

To run the Configuration Manager cmdlets, you need to switch the path to the Configuration Manager site.

PS C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager>CD MSN

MSN – is my site code


Confirm that the Configuration Manager module has been loaded by using the cmdlet below;

PS MSN:\> Get-CMSite

BuildNumber : 7958

Features : 0000000000000000000000000000000000000000000000000000000000000000 InstallDir : C:\Program Files\Microsoft Configuration Manager

Mode : 0

ReportingSiteCode :

RequestedStatus : 110

ServerName :

SiteCode : MSN

SiteName : MSN pri site

Status : 1

TimeZoneInfo : 000001E0 0000 000B 0000 0001 0002 0000 0000 0000 00000000 0000 0003 0000 0002 0002 0000 0000 0000 

Type : 2

Version : 5.00.7958.1000


Location of SMSTS.LOG

Before your hard drive is formatted and partitioned



After your hard drive is partitioned formatted

X:\smstslog\ and then is in C:\_SMSTaskSequence\logs\smstslog\


Within Windows

Within Windows before the SCCM agent is installed:



Within Windows after the SCCM agent installed:



When the Task Sequence completes on a x86


For x64 Systems: C:\windows\SysWOW64\ccm\logs\    

 Just copy on to a network share

Net use M: \\networkshare

 Copy or xcopy X:\Windows\Temp\SMSTS.log \\networkshare



Depending on the deployment phase, SMSTS.log will have the location shared in the following table:

Phase Location
Windows PE

(Before the hard disk are formatted)

Windows PE

(After the hard disk are formatted)

x:\smstslog\smsts.log and copied to c:\_SMSTaskSequence\Logs\Smstslog\smsts.log
Windows Operating System

(Before the SCCM client is installed)

Windows Operating System

(After the SCCM client is installed)

Windows Operating System

(When the Task Sequence is complete)



When a Task Sequence Deployment fails with an error, proceed as the following to extract the required log files:

Click on F8 when the Task Sequence fails to display the command prompt window.

System Center Configuration Manager ( Current Branch )


Current Branch ?

The December 2015 release of System Center Configuration Manager is the latest product release of Configuration Manager from Microsoft. It is sometimes called System Center Configuration Manager current branch. Current branch indicates this is a version of System Center Configuration Manager that supports incremental updates to the product. (As of December 2015, additional versions of System Center Configuration Manager are not available.) Typically, ‘current branch’ is not used when referring to the product, but in the future it can be an important distinction between releases of Configuration Manager.

With this release System Center Configuration Manager:

  • Does not use a year or product identifier in the product name, as seen with past versions like Configuration Manager 2007 or System Center 2012 Configuration Manager
  • Supports incremental in-product updates, also called update versions.

Incremental update versions: One of the new features for System Center Configuration Manager current branch is a new in-console Updates and Servicing process that replaces the need to learn about, locate, and download updates from external sources. This means no more service packs or cumulative update versions to track.

Instead, when you use the System Center Configuration Manager current branch, you periodically update the product using Install in-console updates for System Center Configuration Manager to install new update versions. New update versions release periodically and will include product updates and can also introduce new features you can choose to use (or not use) in your deployment. Different update versions are identified by year and month number like 1511, which identifies November 2015 (the month when System Center Configuration Manager was first released to manufacturing). Future updates, beginning in 2016, will have version names like 1602, which indicates an update that was created in February of 2016.

These update versions are key to understanding the incremental version of your System Center Configuration Manager installation, and what features you might have available to enable in your deployment.

Some versions are only available as updates for existing sites (from within the Configuration Manager console), and cannot be used to install new Configuration Manager sites. For example, the 1602 update is only available from within the Configuration Manager console and is used to update a site that runs a baseline version of 1511 to version 1602.

Another change is  The service connection point:

  • Replaces the Microsoft Intune connector when you integrate Intune with System Center Configuration Manager On-premises Mobile Device Management
  • Is used as a point of contact for devices you manage with
  • Uploads usage data about your deployment to the Microsoft cloud service
  • Makes updates that apply to your deployment available from within the Configuration Manager console

With System Center Configuration Manager, native support for AMT-based computers from within the Configuration Manager console has been removed. This The Out of Band Management point site system role is no longer used nor available.

I had a look at the new features and they are really cool. For example;

System Center Configuration Manager introduces a new capability for testing new versions of the Configuration Manager client before upgrading the rest of site with the new software. This new capability gives you the opportunity to set up a preproduction collection in which to pilot a new client. Once you are satisfied with the new client software in preproduction, you can promote the client to automatically upgrade the rest of the site with the new version.


A new task sequence type is available in the Create Task Sequence Wizard, Upgrade an operating system from upgrade package, that creates the steps to upgrade computers from Windows 7, Windows 8, or Windows 8.1 to Windows 10.

and what about;

System Center Configuration Manager introduces an improved workflow for creating configuration items. Now, when you create a configuration item, and select supported platforms, only the settings relevant to that platform are available.

These are just a few of them. This product is getting better and better and makes our jobs easier. Microsoft has got a nice documentation about this on their website, I recommend everyone to go and have a look.