Get IT Solutions

How to do IT
Menu
  • Home
  • SCCM 2012
    • Deploy Packages
    • Troubleshooting errors SCCM 2012
  • Windows
    • Applications Silent Install
    • Windows Tools
    • Windows Error
    • Script
    • Exchange Server
    • Troubleshooting Office
    • Applications Errors
  • Database
    • SQL Server
    • MySQL
    • Oracle
  • Cybersecurity
  • Other
  • Reviews

How to Change computer name from command line

Whatever the reason you want to change computer name from the command line, Control Panel or PC Settings here’s our step-by-step tutorial showing three different ways how to do it.

How to get computer name from cmd

Before diving into three different ways how to change a computer name from the command line, the first thing you need to know is: how to get computer name?

In your workplace where the same computer can be used by many people or one person may be using multiple computers, it’s important to be able to tell your IT team which computer is experiencing the issue you’re reporting. Although your IT team should be able to walk you through finding this information, knowing it in advance will save you time and solve the problem more quickly. Once you’re familiar with the process, it will only take you a few seconds to locate the name of any computer. Here are three different ways how to get computer name:

Method 1 – How to get computer name from cmd  

  1. Use the search bar in your taskbar and type in Command Prompt.
  2. Right-click on Command Prompt from the results and choose Run as administrator. If prompted, enter your password.
  3. Type in one of the commands such as cmd hostname or cmd computer name below and hit enter on your keyboard.
    • cmd /k hostname
cmd computer name

cmd computer name

 

    • hostname
cmd hostname

cmd hostname

 

Method 2 – How to get computer name from Control Panel

  1. Open the Control Panel.
  2. Click System and Security > System.
  3. On the View basic information about your computer page, see the Full computer name under the section Computer name, domain, and workgroup settings.
How to get computer name from Control Panel

How to get computer name from Control Panel

Method 3 – How to get computer name from This PC

  • Use the search bar in your taskbar and type in This PC
  • Right-click and then click Properties.

The computer name appears under Computer name, domain, and workgroup settings.

How to Change computer name from the command line

Now that you have found your computer name you can change computer name from the command line, Control Panel, or PC Settings.

Method 1.1 – How to change computer name from the command line of your own computer

  1. Use the search bar in your taskbar and type in Command Prompt.
  2. Right-click on Command Prompt from the results and choose Run as administrator. If prompted, enter your password.
  3. Type in the command line the following command and hit enter on your keyboard.
WMIC computersystem where caption='OldComputerName' rename NewComputerName

Note: Replace “OldComputerName” with your current Computer Name and “NewComputerName” the new name you would like to have. After running the command, you need to reboot the computer to make the changes effective. This command works on all types of Windows editions. This command can also be used from a batch file to rename the computer.

Change computer name from command line

Change computer name from the command line

 

READ ALSO -   Solved: Disable Superfetch On Windows Including Cmd

Note: If you run it from a normal command prompt, you would get the below error.

C:\>wmic computersystem where caption='xp-pc' call rename windows7-pc

Executing (\\XP-PC\ROOT\CIMV2:Win32_ComputerSystem.Name="XP-PC")->rename()

Method execution successful.

Out Parameters:

instance of __PARAMETERS

{
ReturnValue = 5;
};

C:\>

Method 1.2 – How to change computer name from the command line of a remote computer

Besides changing the name of a local computer, you can also use the WMIC command to rename a remote computer on the same network. For example, if want to rename a remote PC named Alis-Laptop to Tom-Laptop and you know the login credentials:

  1. Use the search bar in your taskbar and type in Command Prompt.
  2. Right-click on Command Prompt from the results and choose Run as administrator. If prompted, enter your password.
  3. Type in the command line the following command and hit enter on your keyboard.
WMIC /node:"Alis-Laptop" /user:Admin /password:password123 computersystem call rename "Tom-Laptop"

The value following /node: indicates the name of the remote computer on the LAN. The value following /user: must be an admin account on the remote computer.

Method 2– From Control Panel

  • Open the Control Panel.
  • Click System and Security > System.
  • On the View basic information about your computer page, see the Full computer name under the section Computer name, domain, and workgroup settings.
  • Click Change Settings. Note: You need to be an Administrator in order to perform changes.
How to change computer name from Control Panel

How to change computer name from Control Panel

  • 5-The System Properties screen will open with the “Computer Name” tab already selected. Click on the Change… button.
How to change computer name from Control Panel

How to change computer name from Control Panel

  • 6- Now type the new name you want in the “Computer name” box and click OK.
How to change computer name from Control Panel

How to change computer name from Control Panel

  • 7- A restart will be required to complete the name change, and after that, you’re all set!

Method 3– From PC Settings

  1. Click on Start to access the Start Menu. Select Settings.
    Settings

    Settings

  2. When the PC Settings app opens, click on System.
    System

    System

  3. Go to the About section and then click on “Rename PC“.
    Rename PC

    Rename PC

  4. Type the new name you want to use and click on Next.
    Rename PC

    Rename PC

  5. You will be prompted to restart your PC to apply your new settings, click on Restart Now to proceed.

Conclusions

Dear followers of Get IT Solutions, these are all the methods of how to change a computer name from the command line, Control Panel, or PC Settings. We hope you will find this method helpful. Have you managed to change it? Please let us know in the comments below.

 

Share
Tweet
Google+
Pinterest
Linkedin
Stumble
Email
Prev Article
Next Article

Related Articles

Run as new task scheduler .bat file
Windows task scheduler is very useful tools that come with …

Create Windows Task Scheduler and schedule to run bat file.

Superfetch Disable
The article will explain all the methods to disable Superfetch …

Solved: Disable Superfetch On Windows Including Cmd

Best Computers & Laptops

Best Computer for Cyber Security – Laptop and Desktop
Best Computer for Cyber Security
Hey, are you seeking the best computer for cyber security? Well, we must say you have come to the right place to find your answer and guidance. There are a plethora of products out there for you to pick from ...
Read More
Best Computer for Microsoft Office & Excel – Laptop and Desktop
Best Computer for Microsoft Office & Excel
Are you finding the Best Computer for Microsoft Office and Excel? In modern days, the best laptop or desktop set is the one which is both portable, has good looks and offers the smoothest performance. Microsoft Office is a package ...
Read More
Best Computer for Hacking – Laptop and Desktop Selection
Best computer for Hacking
When it comes to hacking, either laptop or desktop, choosing the best computer for hacking would be an exhilarating job. There are many specifications to be considered for hacking ...
Read More

SQL Server Tips

FIX sqlstate 42000 – mysql error 1064 – you have an error in your sql syntax
Sqlstate 42000 Is a general code that come together with other number. Most often comes with the code 1064 and ...
Read More
The execute permission was denied on the object – SQL Server Error
The execute permission was denied on the object
The following article will handle “the execute permission was denied on the object” error appears on SQL Server. This error ...
Read More
How to Read Data from LDF file in SQL Server – A Complete Guide
Read LDF File
Hello Everyone, Today we are going to address the most popular query of SQL users, how to read data from ...
Read More

Search

We are on:

Get FREE SPACE for your PC

3 Method to Delete Temp Files in Windows 7/10 including vbs script

In this post we will explain how to delete temp files windows 7 using three different methods including vbs script ...
Read More

Fastest way to delete hiberfil sys from windows 10/8/7 and XP – CMD

In this article we will explain how to remove or delete hiberfil sys from Windows 10/8/7 and XP . If you does ...
Read More

Learn How to Silent Install Applications

Silent Install Adobe Flash Player
In this tutorial will explain how to silent install adobe flash player 25, Msi and Exe version. How to disable auto update and uninstall older ...
Read More
Java Silent Install and Uninstall Older Version – Deploy Package MSI
This tutorial will explain how to silent install Java MSI/EXE version and disable auto-update. The command line will also uninstall the ...
Read More
Silent Install Adobe Shockwave Player 12 and disable update
In this tutorial will explain how to silent install Adobe Shockwave Player 12 msi and disable auto update. The command will uninstall older ...
Read More
Silent Install Google Chrome MSI, Silent Uninstall and Disable Auto Update
This tutorial will explain how to silent install Google Chrome MSI and disable auto update. The command will uninstall older version of ...
Read More
Silent Install Adobe Reader 11 and DC – msi and exe – disable update
In this tutorial will explain how to silent install Adobe Reader version 11 and DC. We will user both version "msi" ...
Read More
Silent Install Mozilla Firefox msi and exe file – Including Silent Uninstallation
This tutorial will explain how to silent install Mozilla Firefox. We will use MSI and EXE files to perform a silent ...
Read More
Skype Silent Install Msi and disable updates
In this tutorial will explain how to silent install skype  and disable auto update. The command will uninstall older version of Skype and ...
Read More
Filezilla Silent Install msi and exe version
Filezilla silent install tutorial will explain how to perform a silent installation of application. We will explain methods, silent install ...
Read More
Silent install VLC Media Player
In this tutorial will explain how to silent install VLC Media Player. We will explain both methods for exe and ...
Read More
Notepad++ silent install exe and msi version – Command Line
Notepad++ silent install is the new article from a series of silent installations. Notepad++ as free software has two main ...
Read More

Batch File Solutions

How to list files in cmd – Command Prompt – Windows 10
Whenever you want to search and make a list of all files on a specific folder, you used the windows ...
Read More
Batch rename multiple files in folder – CMD script – Bulk Method – Win 10
The following article will teach how to rename multiple files in a folder with the bulk method using Command Line ...
Read More
Batch script rename file using Command Line (CMD) & PowerShell – Windows 10
The following article will use the “rename” or “ren” command to rename the file using a command prompt. Also, we ...
Read More
Change extension of multiple files at once – CMD batch file
The following article will teach the methods to change the extension of multiple files at once using command prompt and ...
Read More
How to delete registry key with command line | PowerShell | Batch
The following article is the third of series about registry and working on it through command line (CMD) and PowerShell ...
Read More
How to add registry key & values with CMD | PowerShell | Batch
The registry is the place where most of the applications store the settings but not only. Used also from the ...
Read More
Unmap Network Drive CMD – (Batch file) – net use delete command
After we posted the methods to map network drive using cmd commands we come this time with the method to ...
Read More
Map Network Drive cmd (batch file) – net use user password
This article will focus on another way to map a network drive on your computer instead of from the explorer ...
Read More
How to Find Large Files on Windows 7 & 10 – CMD Forfiles Command
If the capacity of your hard drive is running low, it is time to clean off some files and to ...
Read More
CMD Script to check disk space on windows and multiple remote servers
The following article will provide you script to check disk space. The Script monitor space on windows and multiple remote ...
Read More

Get IT Solutions

How to do IT

About Us

Get IT Solutions is a personal blog, which is managed to guide people for various topic.

Second Menu

  • Donate
  • About Us
  • Contact Us
  • Privacy Policy

What Will You Find

Automation is our area of writing where are included scripts, batch and various tips to automate your daily job.
Copyright © 2025 Get IT Solutions