SQL, SMS, Code, System Center, ConfigMGr

Here is the MOF edit for DataShift – Local found on the SMS Expert Site http://www.smsexpert.com/MOF/Scripts.aspx

DataShift –Local will return a list of who is within the Local Administrator group.

 

#pragma namespace(“\\\\.\\root\\cimv2\\SMS”)

#pragma deleteclass(“SMX_LocalAdmins”,NOFAIL)

 

[SMS_Report(TRUE), SMS_Group_Name(“Local Administrators”), SMS_Class_ID(“MICROSOFT|SMXLocalAdmins|1.0”)]

 

class SMX_LocalAdmins : SMS_Class_Template

{

[SMS_Report(TRUE),Key]   String Account;

};

Leave a Reply

Your email address will not be published. Required fields are marked *