To create the Customer Inventory Field where the administrators list will be stored, the Knowledge Base Article "Use a custom inventory rule to report on non-inventoried items in Windows (152057)".
The command:
net localgroup administrators
Returns several unneeded lines, those lines can be removed with a more structured command, like:
net localgroup administrators | find /V "^$" | find /V "Alias" | find /V "Comment" | find /V "Members" | find /V "-" | find /V "The command"
This command will erase all the lines other than the accounts member of the administrators local group.
And the result will be:
Then following the steps to create the Custom Inventory Field, the command added to the Custom Inventory Rule will be:
To create a custom inventory rule:
The Custom Inventory Rule is created and in next inventory update the Custom Inventory Field will be available in the Inventoried Device, in this example, it is number 2, CIRAdministratorsList.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center