Created
February 7, 2018 17:18
-
-
Save royashbrook/2dc0c9bbaef52e5da00ace078cc4604d to your computer and use it in GitHub Desktop.
This file contains 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
New-ADUser newdomainadmin -OtherAttributes @{displayname="new domain admin person"} | |
Set-ADAccountPassword newdomainadmin -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "plaintextpassword" -Force ) | |
Get-ADGroup "Domain Admins" | |
Get-ADGroup "Domain Admins" | Add-ADGroupMember -Members (Get-ADUser newdomainadmin ) | |
Get-ADGroup "Domain Admins" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment