SCCM: What Package is That?

Chris NienaberNetwork Analyst
CERTIFIED EXPERT
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!
Published:
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
2,078 Views
Chris NienaberNetwork Analyst
CERTIFIED EXPERT
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!

Comments (0)

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.