После установки Windows Server или дестопной Windows 10/11, вам нужно изменить имя компьютера, заданное по-умолчанию. Чаще всего в имени компьютер рекомендуется указывать его местоположение или роль, например:
msk-dc01
,
wks-mskIT12
,
MRKTG021
и т.д. Можно использовать серийный или инвентарный номер устройства в качестве имени компьютера.
Содержание:
- Переименовать компьютер из графического интерфейса Windows
- Изменить имя компьютера с помощью PowerShell
При установке Windows сама генерирует имя компьютера формата, например,
DESKTOP-P2FHTKQ
. Имя содержит 15 символов, первые семь берутся из имени организации, остальные символы генерируются случайным образом. Для домашнего компьютера имя обычно не имеет особого значение, но если ваш компьютер находится в организации и работает в составе рабочей группы или домена AD, желательно задать осмысленное имя компьютера. В этой статье мы покажем, как переименовать компьютер Windows.
Имя компьютера должно соответствовать следующим требованиям:
- Длина не более 15 символов
- Не должно содержать специальных символов (< > ; : » * + = \ | ? ,)
- Можно использовать тире и нижнее подчеркивание
- Не должно состоять только из цифр
- Имя компьютера регистр независимо
- Если компьютер будет добавлен в домен Active Directory, имя компьютера должно быть уникальным в пределах домена.
Переименовать компьютер из графического интерфейса Windows
В современных версиях Windows 10 и 11 вы можете переименовать компьютер с помощью панели Settings.
- Нажмите
Win+I
и перейдите в раздел System -> About (можно использовать URI команду
ms-settings:about
для быстрого доступа к разделу Settings); - Нажмите на кнопку Rename this PC;
- Укажите новое имя компьютера и нажмите Next;
- Перезагрузите компьютер, чтобы применить изменения.
Также вы можете изменить имя компьютера из классического интерфейса System Properties в Windows:
- Нажмите
Win+R
на клавиатуре и выполните команду
sysdm.cpl
или
systempropertiescomputername
; - Здесь отображается текущее имя компьютер и имя вашего домена или рабочей группы;
- Нажмите на кнопку Change, укажите новое имя компьютера и сохраните изменения.
- Перезагруите Windows
В Windows Server вы можете изменить имя компьютера через Server Manager. Выберите раздел Local Server и нажмите по имени в поле Computer Name.
Изменить имя компьютера с помощью PowerShell
Вы можете переименовать компьютер из командной строки с помощью PowerShell командлета Rename-Computer.
Откройте консоль PowerShell с правами администратора. Чтобы узнать текущее имя компьютера, выполните команду:
$env:computername
Или:
Hostname
Если вам нужно получить FQDN компьютера:
$env:computername.$env:userdnsdomain
Чтобы изменить имя компьютера, выполните:
Rename-Computer -NewName "WKS-MSKO12S3"
Теперь можно перезагрузить компьютер с помощью команды Restart-Computer (или можно добавить опцию перезагрузки прямо в команду смены имени хоста):
Rename-Computer -NewName "WKS-MSKO12S3" –Restart -Force
После перезагрузки проверьте, что имя компьютера сменилось успешно.
Если этот компьютер был добавлен в домен AD перед сменой имени и находился в определенной OU (Organization Unit), его учетная запись но уже с новым именем по прежнему будет находится в том же самом контейнере. Можете проверить это с помощью консоли ADUC. Для переименования компьютера в AD вашей учетной записи должны быть делегированы разрешения на создание и удаление объектов Computers в этой OU.
Командлет Rename-Computer позволяет сменить имя удаленного компьютера. Используйте команды:
Rename-Computer -ComputerName "msk-test" -NewName "msk-preprod02" -DomainCredential Contoso\Admin01 –Force
Для подключения к удаленному компьютеру используется WMI, поэтому если он отключен на удаленном хосте или сетевые порты заблокированы, появится ошибка:
Rename-Computer : Cannot establish the WMI connection to the computer ‘priorauthdes’ with the following error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Можно использовать командлеты PowerShell Remoting для подключения к удаленному компьютеру. Если вы включили на удаленном компьютере WinRM вручную или настроили его с помощью GPO, можно использовать командлет Invoke-Command для запуска команды на удаленном компьютере. Чтобы переименовать удаленный компьютер, выполните:
Invoke-Command -ComputerName msk-test -ScriptBlock { Rename-Computer -NewName msk-preprod02 –Restart -Force}
Также для переименования компьютера ранее использовалась утилита netdom:
- Переименовать локальный компьютер:
netdom renamecomputer localhost /newname msk-preprod02 /reboot - Сменить имя удаленного компьютера:
netdom renamecomputer msk-test /newname:msk-preprod02 /userd:CONTOSO\Admin01 /password:*
В Windows Serve Core можно использовать встроенную псевдографическую команду sconfig для переименования компьютера.
Если вы устанавливаете ваш эталонный образ Windows на компьютеры с помощью автоматизированных средств установки (WDS, SCCM или по сети с помощью PXE), вы можете добавить в них небольшой скрипт для автоматического переименования компьютера в соответствии с политиками именования вашей организации.
Windows 10 Click on the Start button. In the search box, type Computer. Right click on This PC within the search results and select Properties. Under Computer name, domain, and workgroup settings you will find the computer name listed.
What is the default computer name Windows 10?
You may notice that your Windows 10 system has a computer name “Desktop-XXXXXX” on both desktop and portable systems.
How do I find my host name Windows 10?
Locating Your Computer’s Hostname on a PC (Windows 10) In the window the window that appears on the bottom-left hand corner of your screen, type in cmd and click OK. The command prompt window will appear. In this window, type hostname and press Enter. The name of your computer will be displayed.
Click on the Start button. In the search box, type Computer. Right click on This PC within the search results and select Properties. Under Computer name, domain, and workgroup settings you will find the computer name listed.
How do I find the original name of my computer?
Click Start, right-click Computer, and then click Properties. The computer name appears under Computer name, domain, and workgroup settings.
Is computer name and hostname the same?
Is a computer name and hostname the same? – Quora. A computer has one hostname, which is usually also one of the computer names. Computer names are used by the network or domain name system to refer to a particular network address, or an alias to associate a name with a function.
How do I find out the name of my computer Windows 10 without logging in?
Press and hold the Windows key, then press the Pause/Break key. Your computer name can be found under the “Computer name, domain, and workgroup settings” section of the window that appears. This window will look almost identical regardless of which operating system you’re running.
What is a default name?
The name initially assigned to a folder or any other resource that comes with or is created in the computer. For example, when you create a new folder in most computers, its default name is “New Folder.” Default names can be changed by the user.
How do I change the administrator name on Windows 10?
How to Change Administrator Name on Windows 10 via Control Panel Type Control Panel into the Windows Search Bar. Then click Open. Click on Change account type under Use Accounts. Select a user account you would like to rename. Click on Change the account name. Type the new user account name in the box.
How do I find the computer name in the registry?
Computername registry key Open registry editor with the command regedit. Navigate to the node HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName. On the right side pane, look for the value ComputerName . This would show you the computer name.
How do I find computer name using CMD?
From the desktop Open start menu. Type into the search bar cmd /k hostname. Your computer name will be displayed in the first line of a command prompt window.
How do I find computer name from IP address?
Querying DNS Click the Windows Start button, then “All Programs” and “Accessories.” Right-click on “Command Prompt” and choose “Run as Administrator.” Type “nslookup %ipaddress%” in the black box that appears on the screen, substituting %ipaddress% with the IP address for which you want to find the hostname.
What are the default skins names?
From left to right, Females first. Ramirez. Banshee. Wildcat. Headhunter.
What is the default name of the worksheet?
By default, Excel names worksheets Sheet1, Sheet2, Sheet3 and so on, but you can easily rename them.
What is the default name of a workbook in MS Excel?
In Microsoft Excel, workbooks are saved as Excel Workbooks (. xlsx) by default.
How do I change the administrator name?
How to change your Microsoft account administrator name In the search box on the taskbar, type Computer Management and select it from the list. Select the arrow next to Local Users and Groups to expand it. Select Users. Right-click Administrator and select Rename. Type a new name.
How do I change my computer’s name?
Here’s how to change your display name if you’re signed in to your Microsoft account: Sign in to the Your info page on the Microsoft account website. Under your name, select Edit name. If there’s no name listed yet, select Add name. Enter the name you want, then type the CAPTCHA and select Save.
How do I find the hostname of my C drive?
Wunders Copy the file: \Windows\System32\config\system from the subject drive onto your local hard drive. Start up Regedit (Start -> Run -> “regedit”) Single-click on “HKEY_LOCAL_MACHINE” to select it. Do: File -> Load Hive. When asked for a Key name, enter any name — I’ll Use “EXT” for this example.
Where is hostname stored in Windows?
ARCHIVED: In Windows, how do I find my computer’s hostname? In Windows 7, from the Start menu, right-click Computer. Select Properties. In the window that appears, your computer name will be displayed under “Computer name, domain, and workgroup settings” (Windows 7 and Vista) or next to “Full computer name:” (XP).
What do you know about minicomputers?
minicomputer, computer that was smaller, less expensive, and less powerful than a mainframe or supercomputer but more expensive and more powerful than a personal computer. Minicomputers were used for scientific and engineering computations, business transaction processing, file handling, and database management.
How do I find the hostname of an IP address in Windows?
In an open command line, type ping followed by the hostname (for example, ping dotcom-monitor.com). and press Enter. The command line will show the IP address of the requested web resource in the response. An alternative way to call Command Prompt is the keyboard shortcut Win + R.
How do I find the fully qualified domain name from an IP address?
Type “ipconfig” and press “Enter.” This displays the IP address for your Windows server. Use this IP address to view the fully qualified domain name of the server.
How do I see all the computers on my network?
To find computers connected to your PC through a network, click the Navigation Pane’s Network category. Clicking Network lists every PC that’s connected to your own PC in a traditional network. Clicking Homegroup in the Navigation Pane lists Windows PCs in your Homegroup, a simpler way to share files.
Are there new default skins?
There are 10 new default skins coming to Fortnite in the near future. They’ll never replace the original default skins and they probably won’t be used by professionals to troll unsuspecting players, either.
Is Triple Threat rare?
Triple Threat is a Rare Outfit in Fortnite: Battle Royale that can be purchased in the Item Shop for 1,200 V-Bucks. She was introduced in Season 4.
What skin in Fortnite is the rarest?
As of November 2021, the rarest skin in Fortnite is undoubtedly the Aerial Assault Trooper skin. Having made its last (and only) appearance during the first-ever Season of Fortnite, it’s one that only the most dedicated, long-term players of the game are likely to possess.
When you install Windows and set up a computer for the first time, the operating system asks you to assign it a name that should be no longer than 15 characters. Since we all have names, our pets have names, and some enthusiasts even name their cars, why not name our computers too? However, you might ask yourself: What is the purpose of a computer name? Can you see it later on? Yes, you do, and here’s how:
What is a computer name, PC name, or device name?
In Windows, a computer name is also called a PC name or device name. They all represent the name given by the operating system, the PC manufacturer, or the user to distinguish that computer from others in a network. It does not matter what the name is, just that there is one. This is why Windows offers you a default name when you install it. An example of a device name is DESKTOP-3Q67JPL, a random string of letters and special characters.
The computer name or device name is visible in many parts of the Windows operating system. For example, when you open the Settings in Windows 11, you see the computer name on the top, next to the thumbnail for your desktop wallpaper. In the screenshot below, you can see that my laptop’s name is SpectreX360. This is the name I’ve given it. Under it, you see what Microsoft considers as the System Product Name, a name given by the manufacturer of your PC, which the user or Windows cannot change. In my case, the System Product Name is HP Spectre x360 Convertible 15-eb1xxx. Yours is probably something completely different. If you’re using a desktop computer you assembled yourself and not one made by a PC manufacturer, the System Product Name is missing.
The computer name displayed by Windows 11
But let’s get back to the computer name: it must be unique when your device is part of a network. Otherwise, you can get communication issues and conflicts between two or more computers with the same name. When that happens, others cannot access them or their shared resources correctly.
The computer name or device name can be anything you want. Still, there are some restrictions: a Windows computer name can have up to 63 characters. For the best compatibility, however, you shouldn’t use more than 15 characters. The name can contain letters, hyphens, and numbers. However, you cannot use blank spaces and special characters like: ` ~ @ # $ % ^ & ( ) = + [ ] { } | ; : , ‘ » . / ?.
How to view the device name/computer name in Windows 10 from Settings
One way to see the Device name in Windows 10 is to open Settings (Windows + I), and click or tap System, followed by About. You then see the Device name field in the Device specifications section highlighted below.
In the Windows 10 Settings, go to System > About > Device name
You can also use the search bar in Windows 10. Click or tap in the search field and look for “pc name.” Then, open the “View your PC name” result.
Search for pc name
This action takes you to the same About page from Settings, where you see the Device name.
TIP: If you don’t like your computer’s name and you want to change it, here’s how to change the computer name in Windows.
How to view the device name/computer name in Windows 11 from Settings
In Windows 11, you can see the computer name in more places than in Windows 10. First, open Settings (Windows + I). You immediately see the System page and the Device name displayed at the top, next to the thumbnail with your desktop wallpaper.
See the computer name at the top of the Windows 11 Settings
You can also scroll down the System settings page and click or tap About.
In the Windows 11 Settings, go to System > About
You see information about your PC, starting with the computer name at the top. Under it, there’s also a Device name field with the same information.
See the Device name
You can also use search to get to the Settings page seen above. Click or tap the Search icon on the taskbar, look for “pc name,” and access “View your PC name.”
Search for pc name
TIP: Read this guide to learn more on how to use Search in Windows 11.
How to view the computer name using the Command Prompt, Powershell, or Windows Terminal
If you prefer command-line environments, you can open CMD, start PowerShell, or launch Windows Terminal, depending on the one you prefer. Then, type this command and press Enter on your keyboard:
hostname
The computer name is shown just under the command, as seen in the screenshot below.
hostname
You can also run this lengthier command:
wmic computersystem get name
wmic computersystem get name
Or this one:
net config workstation | findstr /C:»Full Computer name»
The Full Computer name returns the information you need, as shown in the screenshot below.
net config workstation | findstr /C:»Full Computer name»
TIP: If you want to know the workgroup of your Windows computer and how to change it, read: The Windows workgroup and how to change it.
What is your computer name?
Some of the names given by Windows or the manufacturers of our computers can also be funny, not just boring. Therefore, if you happen to come across a fun device name, don’t hesitate to share it with us in a comment below. We’d like to build a collection of funny computer names. Does anyone have a computer named a WhizbangPC or DESKTOP-PR1M3?
