<

SCCM: What Package is That?

Published on
3,701 Points
501 Views
2 Endorsements
Last Modified:
SCCMCanuck
IT is my life...SCCM my passion! I work full time with SCCM, Exchange, and Windows Server. I have a beautiful family and love Star Trek!
Determining the an SCCM package name from the Package ID

One of the things I find extremely frustrating when troubleshooting a failed task sequence is when I receive an error message similar to the following:


image


I typically see the above error after I have deployed a new distribution point or rebuilt a distribution point and have not distirbuted it. The issue with the above error is…which package is VHL00001? 


Assuming that the package indicated has not been distributed to the necessary DP (as this error can be caused by other things) the above error is less than descriptive. The package could be anywhere in your tree of package folders, as is the case in my environment. It could also be one of numerous types and therefore in multiple locations in your SCCM Console:


  1. Software Package
  2. Application Package
  3. Software Update Package
  4. Driver Package


You could of course waste time by endlessly combing through your package trees looking for the package, however i prefer to use the following PowerShell script for this:


Param(
[Parameter(Mandatory=$True)]
[string]$PackageID
)

cd H48:

Get-CMPackage | where {$_.packageid -eq $PackageID} | FL -Property Name, PackageID
Get-CMApplication | where {$_.packageid -eq $PackageID} | FL -Property LocalizedDisplayName, PackageID
Get-CMSoftwareUpdateDeploymentPackage | where {$_.packageid -eq $PackageID} | FL -Property Name, PackageID
Get-CMDriverPackage | where {$_.packageid -eq $PackageID} | FL -Property Name, PackageID


Where “H48:” is your primary site code. Upon launching the above script you will be prompted for the Package ID number. Simply enter the Package ID number from the error message and it will search all of the differing package types for a matching value.


I use the above PowerShell script constantly. Hopefully it helps you in your SCCM travels.

2
Comment
Author:SCCMCanuck
0 Comments

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Join & Write a Comment

The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month