renames remote pc using powershell
Rename-Computer -ComputerName OldName -NewName NewName -DomainCredential domain\admin –PassThru
Rename-Computer -NewName NewName -LocalCredential admin –PassThru