Изменить имя компьютера windows 10 cmd

Обновлено:
Опубликовано:

В статье представлены распространенные способы смены имени компьютера:

Через графический интерфейс
В Windows 10
Через командную строку
С помощью Powershell
Через реестр
Читайте также

Данные рекомендации подойдут для разных версий операционной системы Windows от XP до 10.

Универсальный через графический интерфейс

Открываем свойства компьютера. Для этого открываем проводник и кликаем правой кнопкой мыши по Компьютер и выбираем Свойства:

… или вводим команду:

control /name microsoft.system

В открывшемся окне в разделе «Имя компьютера, имя домена и параметры рабочей группы» нажимаем Изменить параметры:

Переходим к изменению имени компьютера

В следующем окне на вкладке Имя компьютера нажимаем Изменить:

Вводим имя компьютера:

* если кликнуть по кнопке Дополнительно, мы сможем добавить DNS-суффикс и поменять NetBIOS-имя компьютера.

Нажимаем OK два раза и перезагружаем компьютер.

Графический интерфейс Windows 10

В Windows 10 появился дополнительный вид панели управления. Ее также можно использовать для смены имени компьютера.

Кликаем по Пуск и нажимаем на изображение шестеренки:

Кликаем по Система:

В разделе О системе:

… кликаем по Переименовать этот ПК:

Вводим новое имя и нажимаем Далее:

Вводим новое имя для компьютера

Перезагружаем компьютер.

Через командную строку

Запускаем командную строку от имени администратора и вводим следующую команду:

> netdom renamecomputer %COMPUTERNAME% /Newname «computername»

computername — новое имя компьютера

После ввода система запросит подтверждение — отвечаем Y и нажимаем Enter.

Для вступления изменений в силу, перезагружаем компьютер.

С помощью Powershell

Что такое Powershell простыми словами.

Запускаем Powershell от имени администратора и вводим следующую команду:

> netdom renamecomputer «$env:COMPUTERNAME» /Newname «computername»

Как и с командной строкой, система запросит подтверждение операции, на которое отвечаем Y.

После перезагружаем компьютер для завершения операции.

Через реестр

Для изменения компьютера в реестре нам нужно отредактироват два параметра:

  1. Ветка HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName, параметр ComputerName, значение — имя компьютера.
  2. Ветка HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters, параметр NV HostName, значение — имя компьютера.

Для внесения изменений можно воспользоваться утилитой regedit или командами:

reg add «HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName» /v ComputerName /t REG_SZ /d «Office-3» /f

reg add «HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters» /v ComputerName /t REG_SZ /d «Office-3» /f

* в данном примере мы задаем имя компьютеру Office-3.

После перезагружаемся.

Читайте также

Создание нового пользователя в Windows 10

Три способа добавить компьютер с Windows к домену

How do you identify your Windows 10 computer for connecting to it over a network? By its name. The device name is how you can identify and connect to via Bluetooth or Wi-Fi. That’s why having an easy to identify computer name is very important. But, default names assigned by Windows sound odd and are hard to remember. So let’s figure out how to change your computer’s name in Windows 10.

Change Computer Name in Windows 10

There are a few ways to change your computer’s name and we will discuss all of them below.

For clarity, the computer name is the overall hardware system (desktop or laptop) name and it is not the same as your user account name. Some Windows 10 users get confused between the two.

On your Windows-based laptop, you can then create more than one user account on the same computer (one for each family member) and give it different names. Thus, one computer can have multiple user accounts. However, the name of your Windows computer will appear the same no matter which user account you access it from. That said, if you want to change computer name only, we shall tell you how. Read on.

Choosing Computer Name

There are certain naming convention rules prescribed by Microsoft that you need to keep in mind before giving your computer a new name. You are free to use alphabets (a-z) and numbers (0-9) but no special characters. The hyphen (-) is allowed though. The minimum character length is 1 and the maximum is 15. You should also note that Microsoft has reserved select words and you can’t use them.

Note: Changing the name of your computer will not change the pathway of your user profile folder if that’s the reason you are doing it. For example, C:\Users\old-name will still remain the same. That’s because that is a username and not the device or computer name.

1. Windows Settings

This is where you will find all the settings that you can use to change, configure, and customize for your Windows 10 computer.

Step 1: Press Windows key+I to open Settings and go to System > About. Click on Rename this PC button.

Change Computer Name in Windows 10 1

Step 2: A blue-screen pop-up will reveal itself where you will enter the new computer name. You will be notified of the current name too.

Change Computer Name in Windows 10 2

Step 3: Click on Next and enter the admin account password if asked for. You will have to reboot your computer once for the changes to take effect.

2. Windows System Properties

There’s another old-school style of way of changing your computer’s name.

Step 1: Search for Control Panel in the Start menu and open it.

Change Computer Name in Windows 10 3

Step 2: Go to System and Security > System > Advanced system settings (left sidebar) and click on Change settings.

Change Computer Name in Windows 10 4

Step 3: Click on the Change button under the Computer Name tab in the pop-up that follows.

Change Computer Name in Windows 10 5

Step 4: You will enter your desired computer name in the provided box.

Change Computer Name in Windows 10 6

Save changes and reboot your computer.

3. Command Prompt (CMD)

This method is purely for the power users who like using the Command Line Interface (CLI). If you aren’t comfortable using the command prompt, feel free to skip this trick.

Step 1: Search for CMD in the Start menu and click on Run as administrator to open it with admin rights.

Change Computer Name in Windows 10 7

Step 2: Give the command below and hit Enter to execute it. Don’t forget to replace the “Computer-Name” text with the name you want to give your computer.

wmic computersystem where name="%computername%" call rename name="Computer-Name"
Change Computer Name in Windows 10 8

Wait for the command to run its course and then reboot your computer once to implement the changes.

4. PowerShell

PowerShell is the advanced version of the Command Prompt and is set to replace it sometime in the future. Better get used to it now.

Step 1: Search for PowerShell in the Start menu and open with admin rights. You can also use the shortcut Windows key+X to open a hidden menu.

Change Computer Name in Windows 10 9

Step 2: Type the command below and press Enter. Replace the last part “Computer-Name” with the name you want to give your computer.

Rename-Computer -NewName "Computer-Name"
Change Computer Name in Windows 10 10

Restart your computer. That’s it.

Say My Name

Now that you know different ways to name your Windows 10 computer, you should assign a name to it. I wouldn’t say the same for an enterprise computer because they are connected to a system and have multiple admin-level apps installed that rely on the name of the computer to function correctly. Even more importantly, the IT admin may have restricted you from making such changes. Best if you send him/her an email.

Earlier versions of Windows asked users to choose a name at the time of Windows OS installation, but that is no longer the case with Windows 10. Note that changing the computer name in Windows 10 may require you to reconnect Bluetooth devices like TWS and Wi-Fi, but that’s it. Not a big deal and should not take more than a few moments. You can do it as you use them along the way.

You can use any one of the tricks mentioned above, and if it doesn’t work for you, then there’s always another one on the list.

Next up: Still can’t change the computer name? Getting the ‘computer name is invalid’ error? Click on the link below to learn how to fix it.

Was this helpful?

Thanks for your feedback!

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.

The Computer Name (or PC Name) identifies a computer on a local network. This tutorial describes several simple methods on how to change the name of a Windows 10 computer.

How to change PC Name on Windows 10, 11 via settings?

1) Click on the Start menu and then go to Settings > System > About section. Under the Device specifications section, click on Rename PC.

2) Type the name you’d like to use and click on Next.

3) You will need to restart your PC to apply your new settings. Click on Restart Now to proceed.

How to change PC Name from the Control Panel?

1) Right-click on the Start menu > Control Panel > System. Go to the Computer name, domain, and workgroup settings section and click Change Settings.

2) This will take you to System Properties dialogue window. Go to the Computer Name tab and click on the Change button. Edit the current computer name and click OK:

© Copyright free

3) Restart your PC and you’re good to go.

How to change your computer name via Command Prompt?

1) Press the Windows key + X to open the Quick Access menu. Then, click on Command Prompt (Admin).

2) In the Command Prompt, type  WMIC computersystem command to change your computer name, assuming you know the current computer name.
WMIC computersystem where caption='current_pc_name' rename new_pc_name 

3) Replace current_pc_name with your current computer name and new_pc_name with a new computer name.

4) After running the command, you need to reboot the computer to save the changes.

How to change your PC name from PowerShell or Windows Terminal

And here we give you one more way to change your computer name. Open PowerShell or Windows Terminal as administrator and type this command:

RenameComputer NewName «New PC Name 

On this command line, instead of New PC Name, write new name.

After restarting your computer, you will see that your computer already has a new name.

do you have more questions about windows 10? check out our forum!

To show a computer’s name in Windows, simply execute the hostname command from a Windows command prompt (CMD) or PowerShell.

There may be multiple reasons to rename the computer.

In this article, i will show you how to change your computer’s name in Windows using the CMD and PowerShell.

Rename Computer using PowerShell

The name of the computer can be changed from the elevated PowerShell using the Rename-Computer command.

Press ⊞ Win + X to open the Start menu flyout and then click on “Windows PowerShell (Admin)”.

Enter the following PowerShell’s command, substituting <NewHostname> with your preferred name, and press the “Enter” to rename the computer:

PS C:> Rename-Computer -NewName "<NewHostname>"
- sample output -
WARNING: The changes will take effect after you restart the computer <OldHostname>.

Restarted the computer to complete the name changing.

Change Hostname using CMD

Alternatively, you can change the computer’s name from the elevated Windows command prompt (CMD).

Press ⊞ Win keybutton to open the Start menu, type in cmd to search for the command prompt and press Ctrl + Shift + Enter to start the CMD as administrator.

To change the computer’s hostname, execute the following command from the elevated Windows command prompt:

C:> wmic computersystem where name="%computername%" call rename name="<NewHostname>"
- sample output -
Executing (\\<OldHostname>\ROOT\CIMV2:Win32_ComputerSystem.Name="<OldHostname>")->rename()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
        ReturnValue = 0;
};

As well as with the PowerShell, you need to restarted the computer to complete the name changing.

Was it useful? Share this post with the world!



January 19, 2016 updated by

Leave a reply »

How can I change the name of my Windows 10 computer from Command Prompt? Whatever the reason you want to rename your computer, here’s our step-by-step tutorial on how to change computer name in Windows 10, from Control Panel, PC Settings and Command Prompt.

Method 1: Change Computer Name from Control Panel

  1. To begin, you have to open the Control Panel. Simply press the Windows key + X to open the Quick Access menu and click “Control Panel“.

  2. Set the View by option to Large icons. Click on System.

    control-panel

  3. Scroll down to the “Computer name, domain, and workgroup settings” section, click on Change settings.

    system-info

  4. The System Properties screen will open with the “Computer Name” tab already selected. Click on the Change… button.

    system-properties

  5. Now type the new name you want in the “Computer name” box and click OK.

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

Method 2: Change Computer Name from PC Settings

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

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

    pc-settings

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

    about-system

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

    rename-your-pc

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

Method 3: Change Computer Name from Command Prompt

Looking for a way to change Windows 10 host name via command line? Here’s how to rename Windows 10 computer name from Command Prompt (cmd):

  1. Press the Windows key + X to open the Quick Access menu. Click on Command Prompt (Admin).

  2. In the Command Prompt, you can use the WMIC computersystem command to change your computer name easily, assuming you know the current computer name.
    WMIC computersystem where caption='current_pc_name' rename new_pc_name

    Replace current_pc_name with your current computer name, and new_pc_name with your desired new computer name.

    rename-pc-name-from-command

  3. After running the command, you need to reboot the computer to make the changes effective.

This method works on Windows 10, 8, 7, Vista, XP and Windows Server 2012/2008/2003. This command can also be used from a batch file to rename any Windows computer, including domain-joined machines.

Besides changing the name of a local computer, you can also use WMIC command to rename a remote computer on the same network. For example, if want to rename a remote PC named Jon-Laptop to Jon-Tech and you know the login credentials, then type this command in the Command Prompt:

WMIC /node:"Jon-Laptop" /user:Admin /password:password123 computersystem call rename "Jon-Tech"

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.

  • Previous Post: 2 Options to Rename “This PC” Back to “My Computer” in Windows 10
  • Next Post: Windows 10 Downgrade: Revert Back to Previous Windows 8 or 7

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Ati radeon catalyst control center windows 7 64 bit
  • Настройка wifi на компьютере windows 10
  • Можно ли восстановить файлы при переустановке windows
  • Как изменить дату изменения файла в windows 10
  • Docker invalid reference format windows