Remotely rename a computer using Powershell with
Rename-computer –computername “Old-ComputerName” –newname “New-ComputerName” –domaincredential administrator –force –restart
This also changes the name in AD keeping all associations
Edit: Just remember to replace the angled speech marks (“,”) with standard speech marks ("), as this can sometimes cause scripts to error. Thanks DJ-1701!