Edit The Sms_def.mof File To Enable The Following Class

Posted on  by admin

Recently, one of client got into an issue while trying to extend the hardware inventory. They wanted to collect all users in all local groups using SCCM 2012.

Sherry Kissinger’s post helped them to proceed until they got the following error. We see this error only when we’ve ConfigMgr SCCM 2012 hierarchy with CAS and primary servers. Primary server admins don’t have access to change Default Client Settings as that impacts other primary servers in the hierarchy as well. So what is the process that we need to follow to extend hardware inventory in SCCM 2012 Hierarchy? How to Extend Hardware Inventory Using MOF file in SCCM ConfigMgr 2012 Hierarchy?

Error:- You can only import hardware inventory classes for the default client settings on central administration site. The following Classes for which you are trying to import settings do not exist. Import the required class definitions and then try to import the settings again LocalGroupMembers (cmLocalGroupMembers) While importing MOF files in to SCCM / ConfigMgr 2012, we get 3 options.

When you’ve CAS and primaries then you need to be careful with the selection of these options. First 2 options can ONLY be performed with Default Client Settings.

Create or Edit the Sms _def.mof File. Enable the Win32_Tpm class as. And then append it to Sms_def.mof file to add the following required MBAM classes to. That’s where the SMS_DEF.MOF file. How to Extend Your Hardware Inventory Using the. To create a custom class in WMI we'll need to edit the. System Center Configuration Manager 2007. Use the SMS_Def.mof file to enable or disable the. The following example modifies the SMS_Def.mof file to.

Import both hardware inventory classes and hardware inventory class settings:- SCCM 2012 Hardware Inventory Classes and settings (a)Perform this action from CAS server, when we need to add these classes globally for all child primary servers and these new hardware inventory settings should be enabled and collected from all the systems/devices in the environment. (b) Perform this action from stand alone Primary server, when we don’t have SCCM /ConfigMgr 2012 hierarchy and and these new hardware inventory settings should be enabled and collected from all the systems/devices in the environment. Import Hardware Inventory classes only:- SCCM 2012 Hardware Inventory Classes Only (a) Perform this action from CAS server, When we’ve SCCM /ConfigMgr 2012 hierarchy and only one of the primary site devices (or a subset of devices ) need to be inventoried about the option. Also when, this new hardware inventory settings should be enabled only for Custom Client Settings (NOT default client settings). (b) Perform this action from stand alone primary server, When we don’t want to collect the inventory of all systems in the organization.

Batch File To Enable Wifi Hotspot

Batch

Also when, this new hardware inventory (classes) settings should be enabled and collected only from few systems using custom client settings (NOT default client settings). When we select this option, the new hardware inventory classes will get imported but the new hardware inventory settings won’t get enabled and it won’t start collecting the inventory from clients. SCCM 2012 Uploaded New Class Local Group Members 3. Import Hardware Inventory Class Settings Only. Don’t use this option at all 🙂 Once we import the new inventory classes (using option 2 above) then we can just do check mark or select that LOCALGROUPMEMBERS inventory class from hardware inventory classes list (as shown in the below picture). SCCM 2012 Hardware – Select Enable the Inventory Class When you select “Import Hardware Inventory Class Settings Only”, it’s automatically Enables hardware inventory settings.

Open File To Enable Signature

Once we’ve enabled this then client will start collecting the new inventory data. So both the options are same 🙂 (a) Perform this action from child primary server, When I’ve already imported the new inventory classes using above option ( 2 a ) on my CAS server. (b) Perform this action from stand alone primary server, when I’ve I’ve already imported the new inventory classes using above option ( 2 b) on my stand alone primary server.

Once we import new inventory class settings, the SCCM 2012 server will create a new policy and collect the inventory of new classes from the devices which are assigned to custom client settings. Hi Anoop, I have a query regarding creating custom inventory class. I would like to add few properties/attributes to each computer object we are managing through SCCM.Those properties/attributes cannot be collected using any WMI/Registry as we have those values per computer object in a separate Table in another SQL Database. Example, we have a table containing computer name,owner name,owner user id, Patch designation(means in which patching phase we will patch the server),server type(like prod,dev,qa etc.). I would like have those part of the Inventoried information for each computer object and create device collection based using those properties in Console(example, collection of all PROD systems).Is there anyway to get those values from the SQL Table and extend existing inventory class in SCCM. Any help will be highly appreciated! Thanks in advance.

Thanks, Arindam.

'Quiero Vivir' (featuring Chico & The Gypsies) 3:27 8. Lucenzo emigrante del mundo. 'Dame Reggaeton' 3:28 6. 'Tengo El Flow' 3:21 3. '' (featuring ) Oliveira, Alexander Scander, Cyril Govic Lucenzo 3:17 5. 'Dembow' 3:14 7.

I also have never had issues in the past with copying things from technet but as you can see from the OP that there is no one block of code to copy but for some reason the formatting is messed up such that there are several blocks of code with code between formatted incorrectly. I would like you to try to copy the code and import the SMSDef.mof file to see if it takes or kicks a syntax error like I get as I feel something must not be right with the code as posted now even if you copy the whole thing including the items outside the code blocks. If someone has a working smsdef.mof file that they can post that works on SCCM Build 1062 that would be great also. As has been mentioned the configuration.mof file has already been modified and the OP and I seem to both be stuck at the next part which is importing the smsdef.mof file most likly due to a slight error in the technet article given how the formatting of the code is. I see they changed look and feel of the doc library. And using the copy button code is messed up, but if you just use copy paste it works for me. Only tested with mofcomp -check test.mof.

/Oliver Can you post your test.mof file then because the mof file I posted above when I run the mofcomp -check command I get the message below. Or if you could run a DIF of your file and the one I posted to tell me where the error(s) are. Mofcomp -check C: Smsdef.mof Microsoft (R) MOF Compiler Version 6.3.9600.16384 Copyright (c) Microsoft Corp. All rights reserved. Parsing MOF file: C: Smsdef.mof C: Smsdef.mof (5): error SYNTAX 0X8004400a: Unexpected token at file scope Compiler returned error 0x8004400a.