To get the list of protected users:
Get-ADUser -LDAPFilter “(admincount=1)” | select name
To get the list of protected groups:
Get-ADGroup -LDAPFilter “(admincount=1)” | select name
To get the list of protected users and export:
Get-ADUser -LDAPFilter “(admincount=1)” | select name | Export-csv c:\users\users.csv
To get the list of protected groups and export:
Get-ADGroup -LDAPFilter “(admincount=1)” | select name | Export-csv c:\users\users.csv
testest test