How to rename computer with Rename-Computer in Windows PowerShell

The Rename-Computer parameter has a set of commands that are understandable by Windows PowerShell for the purpose of renaming a computer. For this reason, in this article we explain how to rename a computer with Rename-Computer in Windows PowerShell.

What is Windows PowerShell?

Windows PowerShell is an advanced application that is presented in console mode for managing the operating system through special commands without using the conventional graphical interface. This application works by means of .NET framework 2.0 and is available from Windows XP version to the most recent.

On the other hand, Windows PowerShell requires the use of a series of special parameters to execute specific actions that allow to manage the system efficiently.

What is Windows PowerShell for?

Windows PowerShell is used to perform tasks to control the system and its applications. In addition, it makes it easy to automate certain actions on the computer or server and create custom names for functions so that they can be executed quickly. For this reason, if you’ve ever decided to remove or uninstall Windows PowerShell , it’s time for you to get this app back.

How to rename computer with Rename-Computer in Windows PowerShell

Generally, we can rename or change file names in Windows , however, did you know that there are multiple alternatives to rename a computer from this system? One of the best options is to use PowerShell on the system to achieve this goal. Next, we explain the steps you must follow.

Access Windows PowerShell

In the search engine (magnifying glass icon) that is located right next to the Windows 10 start menu, type the word “PowerShell.” The system will show you an application with a blue icon. Press the secondary button of the mouse on it and select the option “Run as administrator” .

Another way to access PowerShell is to press the “Win + X” keys . You will see a list of applications and functions. In this case, you must choose the PowerShell option and run it as an administrator. A blue background command window will open where you must execute specific sentences in order to rename your computer.

Use the command “Rename-Computer” to rename the computer with Rename-Computer in Windows PowerShell

The syntax required to rename the computer in Windows PowerShell includes the command “Rename-Computer” . This serves to rename a remote computer or equipment for each line in which it is used.

Enter the command “New-Name”

“New-Name” is the command that will help you to give a new name to your team. Use it whenever you want to modify the name that identifies your computer.

This parameter is mandatory, it can include letters from “A” to “Z” (uppercase and / or lowercase), numbers from 0 to 9 and the hyphen “-“. On the other hand, the use of periods and spaces is not allowed and cannot be more than 63 characters.

Enter the command “-DomainCredential”

“-DomainCredential” is the command you must enter to specify the user account that can connect to the domain. This command is essential when the computer you want to rename is connected to an “Active Directory” domain. When inserting the domain name, the system will ask for the password.

Enter the parameter “-Restart”

The -Restart command is used to make the system restart the computer whose name has been changed. PowerShell needs this parameter for the Rename-Computer process to be fully effective.

The full command line to rename the computer with Rename-Computer in Windows PowerShell

Therefore, the full command line in Windows PowerShell should look like this: Rename-Computer –ComputerName “old_name” New-Name “new_name” –DomainCredential “dom \ Administrator” –Restart. Press the “Enter” key so that the system will ask you for the password of your Domain Administrator account with the name you have indicated in the syntax.

Check your team name change

Once you enter the password, the computer will restart. Then it is time for you to check if the name change was successful on the computer as well as the nameservers . Also, you can easily change the name of the local network of your PC in Windows in order to manage your connections.

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment