How to Update Configuration Manager Cmdlet Library

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

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
newest oldest most voted
Sven
Guest
Sven

The “Get-CMCmdletUpdateCheck” Cmdlet was marked as deprecated in SCCM 1610 and removed in 1702

https://docs.microsoft.com/en-us/powershell/sccm/configurationmanager/vlatest/get-cmcmdletupdatecheck

Most of the online docs still contain this cmdlet. That makes it difficult to find out why it doesn’t work anymore.

Stephan Vermette
Guest
Stephan Vermette

Microsoft has done a fast change to this feature. As of SCCM 1610, updates are no longer done this way, but are “shipped simultaneously” with SCCM updates. https://docs.microsoft.com/en-us/powershell/sccm/configurationmanager/1610_release_notes

Additionally, 1702 no longer supports the Get-CMCmdletUpdateCheck cmdlet, it would seem.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More