How to export the users accounts who have local admin access on their corporate owned devices via Intune or any other way like PowerShell?

Vinod Survase 4,781 Reputation points
2023-05-11T05:22:04.0766667+00:00

How to export the users accounts who have local admin access on their corporate owned devices via Intune or any other way like PowerShell?

Microsoft Security | Intune | Configuration
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-05-11T06:51:13.79+00:00

    Hi Vinod,

    As Rahul stated, there is nothing available natively.

    A suggestion though is to deploy a PowerShell script using Intune:

    Use PowerShell scripts on Windows 10/11 devices in Intune

    https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension

    In the PowerShell script you could Invoke or Get-LocalGroupMember for the Administrator group and send that data to a shared server or a POST request.

    Invoke-WebRequest (POST)

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.3

    It would require some custom scripting to get this information, but your POST request could send to a web server in which it translates to a database record. You'd want to send the machine's name, and the members of the Admin group recursively.


    If this is helpful please accept answer.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.