HomeMicrosoftHow to Change Server Name 2022 Windows Server

How to Change Server Name 2022 Windows Server

In today’s blog, I will explain how to change server name 2022 Windows Server using the server settings menu, Server Manager, Control Panel, PowerShell, and Command Prompt. You can get your computer name back to default by noting it down and following the below steps again. Let’s get started.

Prerequisites

Dedicated server, Virtual Machine, or Hyper-V with Windows Server 2022 installed
I logged in to the server with an administrator account.

Change Server name via Server Manager

In the Server Manager, from the left side, select the local server and then click on the computer name.

Server manager local server

For system properties, select the change button.

change server name 2022

Now enter the server’s name you wish to change it to, and then select OK.

Computer name domain changes

You need to restart your server to apply the changes. Select OK to restart your computer.

Apply these change restart now

Click ok

System properties change server name

Click on Restart Now.

Apply these change restart now

Change Hostname Name Server 2022

Right-click on this PC’s name and then select Properties.

This PC properties Server 2022

Under About, select Rename this PC.

Device specifications server 2022

Enter your new server name (DC2022) and then select Next.

Rename this PC

Select restart now.

Rename this PC Server 2022

Select a reason to describe the reboot of the server, and then click Continue.

Choose a reason to reboot server

Change Server Name 2022 using PowerShell

In addition, you can change the server using a PowerShell command if you are more comfortable with PowerShell. Search for Windows PowerShell, right-click on the PowerShell app, and then select Run as administrator.

Search PowerShell command

PowerShell Command to Change Server Name

Enter the below PowerShell command in Windows PowerShell, and then the presenter. Substituting DC2022 with your preferred name.

Rename-Computer -NewName “DC2022”

Rename server PowerShell command

A server reboot required changes to take effect.

Change server name PowerShell

Change Server Name 2022 using Command Prompt

If you would prefer to rename the server using the command line, the command prompt is also an option. This is much easier, quicker, and more helpful if you don’t have access to the server GUI. Type CMD in the Windows Server search bar, right-click on the command prompt app, and then choose Run as administrator.

Windows Search command prompt

We can rename a server using the command prompt by typing the below command.

WMIC computersystem where caption=’currentname’ rename newname

For instance, if the current server’s name is random, to rename it to DC2022, we can run the following command:.

wmic computersystem where caption= WIN-JOVLQ79SNQJ’ rename DC2022

Rename server WMIC command

Now you need to reboot the server to make the changes effective.

Change server name WMIC command

The server name has been changed after restarting.

Read this article to learn more about how to change the server name.

Conclusion

That’s all. We have learned how to change the hostname on Windows Server 2022.

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

what is cryptocurrency and bitcoin on How to Backup and Restore IIS Configuration
경기광주출장안마 on How to Backup and Restore IIS Configuration
영등포출장마사지 on How to Backup and Restore IIS Configuration
Twalsu light mirror for vanity on How to Backup and Restore IIS Configuration
fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11