Get local users and local admins through hardware inventory

DukenTee 145 Reputation points
2024-03-17T09:47:00.8633333+00:00

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
    2024-03-18T01:48:14.8133333+00:00

    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
    2024-03-18T12:07:43.3666667+00:00
    1 person found this answer helpful.
    0 comments No comments