Skip to content

Instantly share code, notes, and snippets.

@Sam-Martin
Created August 8, 2017 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sam-Martin/9f6bba63785fd3071882c6c313210520 to your computer and use it in GitHub Desktop.
Save Sam-Martin/9f6bba63785fd3071882c6c313210520 to your computer and use it in GitHub Desktop.
PowerShell rename and join computer to computer
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