none
The package data in WMI is not consistent to Pkglib - missing package ?

    Question

  • When troubleshooting this problem I discovered references to a package in the files system, specifically in ..\SCCMContentLib\PkgLib\xxx00062 and it also appears in the wmi packagelist when I ran Get-WmiObject -Namspace "root\sccmdp" - query "select * from SMS_PackageInContLib" but there is no reference to it on the SCCM management console.  It looks like it was a orphaned package.

    __GENUS          : 2
    __CLASS          : SMS_PackagesInContLib
    __SUPERCLASS     :
    __DYNASTY        : SMS_PackagesInContLib
    __RELPATH        : SMS_PackagesInContLib.PackageID="xxx00062"
    __PROPERTY_COUNT : 1
    __DERIVATION     : {}
    __SERVER         : servername
    __NAMESPACE      : ROOT\SCCMDP
    __PATH           : \\servername\ROOT\SCCMDP:SMS_PackagesInContLib.PackageID="xxx00062"
    PackageID        : xxx00062

    Any idea on how I can remove this reference cleanly ?


    • Edited by ChrisI88 Monday, September 09, 2013 5:19 PM
    Monday, September 09, 2013 5:19 PM

Answers

  • This is the answer I was looking for. 

    http://social.technet.microsoft.com/Forums/en-US/8328f9ce-d290-4aba-8187-670080464476/sccm-2012-how-to-delete-packages-from-wmi

    Thanks

    • Marked as answer by ChrisI88 Tuesday, September 10, 2013 4:39 PM
    Tuesday, September 10, 2013 4:39 PM

All replies

  • I used this article as a reference when I did my troubleshooting but it doesn't state how to Delete the package from WMI ?  Do you know the commands ?

    If that's all I have to do in on the DP and then go delete the files I found great. 

    I had also found a article on re-adding the package id back into the db and delete it again through the SCCM console.  Wasn't sure which method would be best.  

    Thanks

    Monday, September 09, 2013 8:14 PM
  • I used this article as a reference when I did my troubleshooting but it doesn't state how to Delete the package from WMI ?  Do you know the commands ?

    It does: "The simplest way to find the package and remove it from WMI is to run a query on the distribution point such as the following, and then delete the object that is returned.

        select * from SMS_PackagesInContLib Where PackageID = 'CCB00002'

    Note: Ensure that you replace the CCB00002 with your own package ID"

    It can be done using wbemtest.exe (or whatever script if you are familiar with it and know what to delete)


    Torsten Meringer | http://www.mssccmfaq.de

    Monday, September 09, 2013 8:48 PM
    Moderator
  • This is the answer I was looking for. 

    http://social.technet.microsoft.com/Forums/en-US/8328f9ce-d290-4aba-8187-670080464476/sccm-2012-how-to-delete-packages-from-wmi

    Thanks

    • Marked as answer by ChrisI88 Tuesday, September 10, 2013 4:39 PM
    Tuesday, September 10, 2013 4:39 PM