Microsoft Windows ServerWindows Server 2022

How to Change Server Name in Server 2022

In this blog, we are going to explain how to change server name in server 2022. This article was automatically translated, if you have feedback concerning its feature please use the comment form at the bottom of the page.

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

Prerequisites

Virtual Machine, Hyper-V, or a dedicated server with Windows Server 2022 installed.
Logged in with administrator account.

Changing the Hostname

Right mouse clicks on This PC and then click on Properties.

This PC properties

Under About, click on rename this PC.

Device specifications server

Rename your PC window, type a name (Server2022) and then click next.

Rename this PC

Select restart now

Change server name

Choose a reason to describe the reboot and then click continue.

Choose a reason to reboot server

Change Server name using Server Manager

Launch Server Manager, from your left side, click on local server and then click on computer name.

Server manager local server

System properties, click on the change button.

System properties computer name

Now insert the server name under the computer name you wish to change it to and then click ok.

Computer namedomain changes

To apply the changes you need to restart your system. Click on ok to restart your computer.

Apply these change restart now

Select ok

System properties computer name

Click on Restart Now

Apply these change restart now

Now your server name is changed after restarted.

Windows server device specification

How to Change Server Name using CMD

If you’d prefer to change the server name using the command line, CMD is also an option. This way is easier, quicker, and is helpful if you have no access to GUI, on a Windows Server install for an instant.

Search command prompt

We can rename a server computer from the command prompt using WMIC computersystem command.

WMIC server rename command

After applying this command, you need to restart the server to make the changes effective.

WMIC server rename command

How to Change Server Name using PowerShell

Additionally, you can use a PowerShell command to change the server name if you are more comfortable with the PowerShell.
Right-click on the server Start button, then select Windows PowerShell (Admin).

Right click server start menu

Type the PowerShell change server name command

Type the following PowerShell command in the PowerShell window and then hit enter, substituting Server2022 with your preferred name.

Rename-Computer -NewName “Server2022”

Rename server PowerShell

Server restart required changes to take effect.

Rename server PowerShell

Conclusion

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

Jamil Parvez

Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Leave a Reply

Back to top button