We had requirements on to collect the information of only local Admins.
We already had blogs which were helping to find information of all local groups.
In the interest of collecting less data (Save space in DB) I modified the same to collect only Local admins
1) Import the Cab file
- ? Take the the attached file–> WMI Framework For Local Administrator
- ? In your ConfigMgr 12 console, on Assets and Compliance, Compliance Settings
- ? Right-click on "Configuration Baseline" and Import this file (http://technet.microsoft.com/en-us/library/hh691016.aspx )
- ? Once done deploy the baseline to the collection of machines from which you need.(http://technet.microsoft.com/en-us/library/hh219289.aspx )
2) Import the MOF file so that SMS_DEF is updated in 2012 this is how you do
- ? On the console, Administration ? Client Settings ? right-click 'Default Client Settings'?and go to properties.
- ? Select Hardware Inventory, then on the right "Set Classes.
- ? Click Import and browse to the localadmin.mof file you saved.
Content of MOF file
[ SMS_Report (TRUE),
Namespace ("root\\\\cimv2") ]
class Win32_LocalAdmins : SMS_Class_Template
[SMS_Report (TRUE), key ] string Account;
[SMS_Report (TRUE) ] string Domain;
[SMS_Report (TRUE), key ] string Name;
[SMS_Report (TRUE) ] string Type;
The script use to create a WMI entry is also available in the Zip file uploaded.
This posting /Script is provided "AS IS" with no warranties and confers no rights