Get local users and local admins through hardware inventory

DukenTee 145 Reputation points

Can I retrieve a list of all the local users and local admins on the client computers using SCCM hardware inventory? Or is there any real-time function to get it? Any suggestion will be appreciated.

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 40,001 Reputation points Microsoft Vendor

    Hi, @DukenTee

    Thank you for posting in Microsoft Q&A forum.

    Yes, SCCM has the real-time function called CMPivot. We can use CMPivot Query to find local administrator accounts.

    Use the below SCCM CMPivot query to find local administrator accounts.

    Administrators | where Name !contains 'Administrator' and Name !contains 'Domain Admins'

    For more information, please refer to Prajwal Desai's article:

    Find Local Administrator Accounts with SCCM CMPivot Query

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Garth Jones 1,656 Reputation points MVP
    1 person found this answer helpful.
    0 comments No comments