Workstation Admin right Report
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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 )
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 https://www.anoopcnair.com/deploy-proactive-remediation-script-intune/
You can use the PS from https://www.netwrix.com/how_to_get_local_administrators.html 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”
Members=$members
}
} -computer fs1,sp01,ncnad -HideComputerName |
Select * -ExcludeProperty RunspaceID | Export-CSV c:\data\local_admins.csv -NoTypeInformation