How to Update Configuration Manager Cmdlet Library

702

In this short post we will see how to update Configuration Manager cmdlet library. When you install configuration manager cmdlets, you can manage your SCCM setup using PowerShell cmdlets. For example it could be getting the information about SCCM hierarchy, getting list of applications etc. There are lot of configuration manager cmdlets available. If you looking for cmdlet reference its here.

To manage SCCM using PowerShell, cmdlet library must be installed. Therefore if you are running System Center 2012 Configuration Manager SP2 and above, you could install the powershell cmdlets. The System Center Configuration Manager Cmdlet Library is available for download here. Also the SCCM cmdlet library is updated often by Microsoft. If you are installing the cmdlet library for the first time then just download it from download center and install it. If you have already installed it and if there is an update available, then this post will help you.

How to Update Configuration Manager Cmdlet Library

So how do you know the configuration manager cmdlet library update is available ?. When you launch the powershell and run any script, you will see a warning message.

WARNING: An update to the System Center 2012 Configuration Manager Cmdlet Library is available. Please go to ‘http://go.microsoft.com/fwlink/?LinkId=528947’ to download the latest version. Running cmdlet version: 5.0.8328.1155 Latest cmdlet version: 5.0.8373.1189

How to Update Configuration Manager Cmdlet LibraryIn the warning message you see the link to download latest version of cmdlet library. Copy the link and open in the browser.

Now launch the PowerShell and type the command Get-CMCmdletUpdateCheck. This command checks the update feature configuration and will indicate if user policy is being overridden by system policy. Furthermore in the below screenshot you can see that IsUpdateAvailable is set to True. So this means the update to cmdlet library is available.

How to Update Configuration Manager Cmdlet LibraryWhen you open the cmdlet download link, it takes you to download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and click on Download.

How to Update Configuration Manager Cmdlet LibraryClose the Configuration Manager console and close PowerShell window. Run the msi file. You will see sccm cmdlet library setup wizard. Click Next.

How to Update Configuration Manager Cmdlet LibraryFor rest of steps click Next. Finally click on Finish.

How to Update Configuration Manager Cmdlet LibraryLaunch the PowerShell and run the same command again. You will now see that IsUpdateAvailable is set to False. Congratulations, you have successfully updated the Configuration Manager Cmdlet library.

How to Update Configuration Manager Cmdlet Library