Needed guidance to rename a computer joined to a Domain

Techshan 216 Reputation points
2023-05-19T21:10:45.7166667+00:00

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

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,621 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,862 questions
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2023-05-19T21:25:41.53+00:00

    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--

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful