The following example uses one of Sherry Kissinger’s MOF snippets to inventory whether Auto Admin Logon is enabled on ConfigMgr clients. Test the customizations on a test system; ensure you have a stand-alone system, preferably a VM, available to perform your tests. Perform the following steps:
Caution: Precautions When Modifying Your MOF Files
Be sure to open your MOF files with Windows Notepad or another script editor. Verify no special characters are in the document. As an additional precaution, consider modifying your Configuration.mof file offline and checking the file using
mofcomp.exe with the
-check switch, which checks the syntax. This utility is located in the %windir%\System32\wbem folder. You can also ...