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

 

 

epic
Author Details
Contributer and Author Enterprise Communications Engineer Hi Epic

testest test 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments