Follow these steps to rename and domain join this new server with PowerShell:
- Right-click on your PowerShell icon on the Taskbar and choose Run as Administrator:
- In order to rename our new server WEB2, input the following command. Using the -Restart flag will ensure that our server reboots following the name change:
Rename-Computer -NewName WEB2 -Restart
- That's it for renaming! Now that our WEB2 server has rebooted, open PowerShell again and use the Add-Computer command in order to join it to our domain:
Add-Computer ...