Get-CMPackage Does Not Support Wildcard Post ConfigMgr 2012 R2 CU1

After you’ve installed CU1 for Configuration Manager 2012 R2 you can no longer use wildcard with Get-CMPackage. Pre-installation of CU1, it works just fine to use

Get-CMPackage –Id CM100*

If your Site Code is CM1 that is.


However, after you’ve installed CU1 and restarted PowerShell it nolonger works.


Instead we can use

Get-CMPackage | foreach { If ($_.PackageId –Like “CM1000*”) { Write-Output $_.Name } }

That will however take some more time due to the fact that Get-CMPackage now has to fetch ALL packages in your environment and it gets lazy properties for them as well making the progress “a bit slower”.




About The Author

Tim Nilimaa is a consultant with Lumagate in Sweden. He has been working with Configuration Manager for 8 years. His knowledge has been selected as a speaker at many events among them Microsoft Management Summit.

No Comments

Leave A Reply