Detecting members of protected group in AD


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

 

 

Contributer and Author Enterprise Communications Engineer Hi Epic

testest test 

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments