Rename & join a computer into a domain within a single powershell command

This command renames the local computer to and then restarts automatically. In my Test environment the command would be  alike: Rename-Computer -NewName "w2016DC2" -DomainCredential test.test\administrator -Restart which translates into: Rename-Computer -NewName "desired_name" -DomainCredential "domain\username"-Restart Modify the following parameters:  "w2016DC2" (your desired computer name) test.test\administrator ( AD account needed ) Domain admin credentials or either an … Continue reading Rename & join a computer into a domain within a single powershell command