Created
August 8, 2017 12:35
-
-
Save Sam-Martin/9f6bba63785fd3071882c6c313210520 to your computer and use it in GitHub Desktop.
PowerShell rename and join computer to computer
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
Rename-Computer -NewName $newComputerName | |
Add-Computer -Credential $Credentials -DomainName 'SDLPRODUCTS.com' -Force -Options JoinWithNewName,AccountCreate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment