myITforum and Windows IT Pro Forums

 SMS MOF file for Win32_PnPSignedDriver

Author Message
bhunter

  • Total Posts : 16
  • Scores: 0
  • Reward points : 27390
  • Joined: 5/24/2006
  • Status: offline
SMS MOF file for Win32_PnPSignedDriver Wednesday, May 14, 2008 1:11 PM (permalink)
0
Hello,
I have updated our MOF file to include the inventory of the Win32_PnPSignedDriver class.  Unfortunately, I'm getting the following error in the client's InventoryAgent.log file:
 

Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002

 
 
I had started inventory every column, but knocked it down to only two and I still get the problem.
 
Here is the portion of code from the MOF file:
  [ SMS_Report     (TRUE),
   SMS_Group_Name ("PnP Signed Driver"),
   SMS_Class_ID   ("MICROSOFT|PNP_SIGNED_DRIVER|1.0") ]
 class Win32_PnPSignedDriver : SMS_Class_Template
 {
     [SMS_Report (TRUE), key ]  
         string     Description;
     [SMS_Report (TRUE)      ]  
         string     DriverVersion;
 };
 
 
#1
    phaustein

    • Total Posts : 1061
    • Scores: 40
    • Reward points : 4660
    • Joined: 3/21/2005
    • Location: Washington, DC
    • Status: offline
    RE: SMS MOF file for Win32_PnPSignedDriver Wednesday, May 14, 2008 6:12 PM (permalink)
    0
    Is this occuring on all the clients or just one or a few?
    Hope this helps.
    Paul
     
    #2
      bhunter

      • Total Posts : 16
      • Scores: 0
      • Reward points : 27390
      • Joined: 5/24/2006
      • Status: offline
      RE: SMS MOF file for Win32_PnPSignedDriver Thursday, May 15, 2008 4:10 AM (permalink)
      0
      This is happening on all clients (Windows XP and Windows 2003)
       
      #3
        Guest
        RE: SMS MOF file for Win32_PnPSignedDriver Thursday, May 15, 2008 12:24 PM (permalink)
        0
        [SMS_Report (TRUE), key ] 
               string     Description;
         
        This is not a valid KEY, and if you don't use all the properties of the class you must use the MS_VIEW_INSTANCE_PROVIDER.
        And you must still include all the valid KEY's and they must be set to report TRUE.
         
         
        \ / /
        \\\' , / //
        \\\//, _/ //,
        \_-//' / //<,
        \ /// > \\\`__/_
        /,)-~>> _\` \\\
        (/ \\ //\\
        // // \\\
        (( ((
         
        #4
          bhunter

          • Total Posts : 16
          • Scores: 0
          • Reward points : 27390
          • Joined: 5/24/2006
          • Status: offline
          RE: SMS MOF file for Win32_PnPSignedDriver Thursday, May 15, 2008 12:44 PM (permalink)
          0
          According to MSDN documentation, that 'key' is the Name field.  I've changed it to this, but still have the same problem.
           
          Here is a copy of my MOF code now:
           #pragma namespace("\\\\.\\root\\cimv2\\sms")
           #pragma deleteclass("WIN32_PNPSIGNEDDRIVER",NOFAIL)
           [ SMS_Report     (TRUE),
             SMS_Group_Name ("WIN32_PNPSIGNEDDRIVER"),
             SMS_Class_ID   ("MICROSOFT|WIN32_PNPSIGNEDDRIVER|1.0") ]
           class Win32_PnPSignedDriver : SMS_Class_Template
           {
               [SMS_Report (TRUE), key ] 
            string     Name;
               [SMS_Report (TRUE)      ] 
            string     Description;
               [SMS_Report (TRUE)      ] 
            string     DeviceID;
               [SMS_Report (TRUE)      ] 
            string     ClassGuid;
               [SMS_Report (TRUE)      ] 
            boolean    IsSigned;
               [SMS_Report (TRUE)      ] 
            string     Signer;
               [SMS_Report (TRUE)      ] 
            string     InfName;
               [SMS_Report (TRUE)      ] 
            string     DriverVersion;
               [SMS_Report (TRUE)      ] 
            datetime   DriverDate;
               [SMS_Report (TRUE)      ] 
            string     DriverProviderName;
               [SMS_Report (TRUE)      ] 
            string     HardWareID;
               [SMS_Report (TRUE)      ] 
            string     DeviceName;
               [SMS_Report (TRUE)      ] 
            string     DeviceClass;
               [SMS_Report (TRUE)      ] 
            string     CompatID;
               [SMS_Report (TRUE)      ] 
            string     Location;
               [SMS_Report (TRUE)      ] 
            string     PDO;
               [SMS_Report (TRUE)      ] 
            string     Manufacturer;
               [SMS_Report (TRUE)      ] 
            string     FriendlyName;
               [SMS_Report (TRUE)      ] 
            string     DevLoader;
               [SMS_Report (TRUE)      ] 
            string     DriverName;
           };
           

           
           
           
          Still producing the exact same error messages...... 
           
           Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Description, DeviceClass, DeviceID, DriverVersion, ClassGuid, CompatID, DeviceName, DevLoader, DriverDate, DriverName, DriverProviderName, FriendlyName, HardWareID, InfName, IsSigned, Location, Manufacturer, Name, PDO, Signer FROM Win32_PnPSignedDriver; Timeout = 600 secs.
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Failed to add an instance of class Win32_PnPSignedDriver to historical store: 80041002
           Unknown error encountered processing an instance of class Win32_PnPSignedDriver: 80041002
           
          #5
            Guest
            RE: SMS MOF file for Win32_PnPSignedDriver Thursday, May 15, 2008 1:06 PM (permalink)
            0
            http://msdn.microsoft.com/en-us/library/aa394354(VS.85).aspx
            read down a little further and you'll see that 
            SystemCreationClassName and
            SystemName have KEY qualifiers
             
            and to note: this MSDN article is missing the following properties
            CreationClassName
            DriverProviderName
             
            and ProviderName is NOT valid, it should be DriverProviderName
            \ / /
            \\\' , / //
            \\\//, _/ //,
            \_-//' / //<,
            \ /// > \\\`__/_
            /,)-~>> _\` \\\
            (/ \\ //\\
            // // \\\
            (( ((
             
            #6
              bhunter

              • Total Posts : 16
              • Scores: 0
              • Reward points : 27390
              • Joined: 5/24/2006
              • Status: offline
              RE: SMS MOF file for Win32_PnPSignedDriver Thursday, May 15, 2008 1:17 PM (permalink)
              0
              Oh gosh, this is getting confusion now.  I didn't use the MSDN article to get the names, I simply exported the Win32_PnPSignedDriver class using WMI CIM Studio.
               
              I'll make those changes and get back to you tomorrow.
               
              Thanks for your help so far...
               
              #7
                bhunter

                • Total Posts : 16
                • Scores: 0
                • Reward points : 27390
                • Joined: 5/24/2006
                • Status: offline
                RE: SMS MOF file for Win32_PnPSignedDriver Saturday, May 17, 2008 1:41 PM (permalink)
                0
                OK, so I figured this out eventually.
                 
                SMS won't inventory the Win32_PnPSingedDriver class simply because it doesn't have ANY valid keys.  This is because the "name" field (which is the key) doesn't have any named values.
                So what I had to do was to create a new custom class (with a valid key) which is a replica of the Win32_PnPSignedClass, and then inventory this class.
                SMS is now able to inventory my custom replica class and the information is finally in SMS.  What a headache, but I'm glad I found a way to resolve this.
                 
                #8
                  brendan

                  • Total Posts : 1
                  • Scores: 0
                  • Reward points : 2830
                  • Joined: 5/26/2017
                  • Status: offline
                  Re: RE: SMS MOF file for Win32_PnPSignedDriver Friday, May 26, 2017 12:21 AM (permalink)
                  0
                  Hi bhunter
                   
                  I know the last post on this page was over 9 years ago, but is there any chance you would have the code for the MOF for the custom class you created here? Or are you able to provide any further details on how you did this?
                   
                  Regards
                  Brendan
                   
                  #9
                    bhunter

                    • Total Posts : 16
                    • Scores: 0
                    • Reward points : 27390
                    • Joined: 5/24/2006
                    • Status: offline
                    Re: RE: SMS MOF file for Win32_PnPSignedDriver Tuesday, May 30, 2017 5:02 AM (permalink)
                    0
                    Sorry, too long ago for my memory now.
                     
                    I think I wrote a script that would export each of the class's fields and wrote then back into a new class, with the key correctly assigned (when creating the new class).   Then a MOF would be able to correctly read this class and report it back into SCCM.
                     
                    #10
                      Online Bookmarks Sharing: Share/Bookmark

                      Jump to:

                      Current active users

                      There are 0 members and 1 guests.

                      Icon Legend and Permission

                      • New Messages
                      • No New Messages
                      • Hot Topic w/ New Messages
                      • Hot Topic w/o New Messages
                      • Locked w/ New Messages
                      • Locked w/o New Messages
                      • Read Message
                      • Post New Thread
                      • Reply to message
                      • Post New Poll
                      • Submit Vote
                      • Post reward post
                      • Delete my own posts
                      • Delete my own threads
                      • Rate post

                      2000-2017 ASPPlayground.NET Forum Version 3.9