This project is read-only.

IP ConfigurationManager Add New SCCM Computer WQL Query Exception


I just registered the SCORCHDev.ConfigurationManager.2012.oip.

I created a Task "Add New SCCM Computer" and provided the following information:
  • MAC-Address with follow format 00:80:41:ae:fd:7e
  • Computername
When I try to Run the Runbook in the Runbook Test i got the following error:
The SMS Provider reported an error.

Exception: WqlQueryException
Target site: WqlResultObject.ExecuteMethod

Stack trace:
   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.ExecuteMethod(String methodName, Dictionary`2 methodParameters, Boolean traceParameters)
   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.ExecuteMethod(String methodName, Dictionary`2 methodParameters)
   at SCCM2012Interop.CM2012Interop.addNewComputer(WqlConnectionManager connection, String netBiosName, String smBiosGuid, String macAddress) in c:\Projects\TFS\scorch\Configuration Manager\SCCM2012Interop\SCCM2012Interop.cs:line 1836
   at SCCM2012IntegrationPack.AddNewComputer.Execute(IActivityRequest request, IActivityResponse response) in c:\Projects\TFS\scorch\Configuration Manager\SCCM2012IntegrationPack\Objects\AddNewComputer.cs:line 61


odonnpa1 wrote May 11, 2013 at 12:54 PM

The problem is I think that you must have the SMS00001 collection hardcoded in your "Add New SCCM Computer" activity.

I see the following in my SMSProv.log when I get the exception.

~~e:\qfe\nts\sms\siteserver\sdk_provider\smsprov\sspcollection.cpp(1030) : All Systems is an Built In collection and cannot be modified~~ SMS Provider 11.05.2013 13:42:48 8240 (0x2030)

When I use VBScript to do the same job, it works fine creating the computer object if you specify a differnet collection.

Would be great to know when/if a fix is available, as we are moving from SCCM2007 to SCCM2012 and will have to re-write a complex runbook if this doesn't work.


randorfer wrote May 13, 2013 at 1:35 PM

Hey Paul,

I have this updated in the latest version of the 2012 interop binary. I will get a revision tested and released by the end of the week.


odonnpa1 wrote May 13, 2013 at 9:07 PM

Hey Ryan

Perfect, thanks muchly!


odonnpa1 wrote Jun 26, 2013 at 8:39 AM

Hello Ryan,

I can't remember if you managed to upload a new version or not? The dates don't seem to match (May 13th for my last post, April 9th for the last update).

kind regards,

jpsimons wrote Aug 15, 2013 at 5:28 PM

I am getting the same error as well. I was wondering if you were able to upload the new version.

Thank you for your help!


johnnyc121 wrote Jan 8, 2014 at 12:30 AM

I am also getting the same error when running this IP. Is there a new version available that would address this?


wrote Mar 20, 2014 at 9:27 AM

Negyuh wrote Mar 20, 2014 at 9:28 AM

As John and Jason, I also get the same error although the IP creates the SCCM object. it would be very nice if this would be fixed, I need these activities quite a lot ...


wrote May 20, 2014 at 3:12 PM

manu69 wrote Nov 26, 2015 at 11:33 AM


Did you find a solution for this?

Thanks in advance.

wrote Nov 28 at 6:32 AM