Make sure it is connected to the domain then you could run;
Rename-Computer -NewName "pc_new_name" -DomainCredential Domain\Admin -Restart
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
There is a requirement to rename a computer already joined to a Domain to a new name. This computer (Laptop) is connected to Domain through VPN when the user is working from remote location, so it has linked VPN certificate with the existing name. If I rename the computer from Domain Controller Powershell with the command in quotes "Rename-Computer -computername OLDPC -NewName NEWPC -DomainCredential domain\administrator -force -PassThru -restart", will the laptop get renamed successfully or any caveat should be taken care while doing this operation.
The reason behind is this requirement came to Active Directory team since the support team is having restriction in renaming the Laptop.
Any suggestions please for the best method to rename a Domain joined computer
Regards,
Techshan
Make sure it is connected to the domain then you could run;
Rename-Computer -NewName "pc_new_name" -DomainCredential Domain\Admin -Restart
--please don't forget to upvote
and Accept as answer
if the reply is helpful--