Workstation Admin right Report


Hi Expert,

Can you please guide how to get Windows 1o workstation administrator right report to understand how many user are part of local admin group ?



Answer ( 1 )

  1. There is no out of box option in Intune. You can try to use to deploy remediation script to those devices to collect list of Local admin users

    You can use the PS from to start working on a solution….

    invoke-command {
    $members = net localgroup administrators |
    where {$_ -AND $_ -notmatch “command completed successfully”} |
    select -skip 4
    New-Object PSObject -Property @{
    Computername = $env:COMPUTERNAME
    Group = “Administrators”
    } -computer fs1,sp01,ncnad -HideComputerName |
    Select * -ExcludeProperty RunspaceID | Export-CSV c:\data\local_admins.csv -NoTypeInformation

    Best answer

Leave an answer

Sorry, you do not have permission to answer to this question .