-
-
Save ekmixon/96e8229c67d91a227d921471321e121d to your computer and use it in GitHub Desktop.
Get-DomainAdmins.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this once to get the Domain Admins group baseline | |
Get-ADGroupMember -Server signalwarrant.local -Identity "Domain Admins" | | |
Select-Object -ExpandProperty samaccountname | | |
Export-Clixml -Path 'C:\scripts\CurrentDomainAdmins.xml' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment