When you are installing Windows Server 2022, the setup will not prompt you for a computer name. This was not the case back, during the early versions of Windows Server. Then you could provide a Server name during installation. Now, Windows 2022 setup will automatically generate a random computer name and assign to the computer. Most cases, we need to change that random computer name to something meaningful. Following steps explain how to change (rename) computer name / hostname in Windows 2022.
Step 1 - To change the computer name, we need to open System settings. To open System setting, right-click "This PC" and select "Properties" from the context menu. Please refer below image.
Alternatively, you may right-click start menu button and select "System" from the start button context menu.
You may also press Windows key and X keys together, to open start button context menu. Please refer below image.
Step 2 - Once the System settings is open, make sure that "About" is selected. You can also see the current host name of the machine. Click "Rename this PC" button to rename this computer to another name.
Step 3 - Now you will be prompted to enter a new name for the Server. In this case, I had entered OmniSecu-Serv01 as the new name for the server computer. Click "Next" button to continue.
Step 4 - Now you need to restart the server to make the server computer name change in effect. If there is no critical works/services running in background you may restart the server by clicking "Restart now" button. Windows will restart the computer immediately. If any running works/services is required to run, you may click "Restart later" and then manually restart the server computer after finishing all your works/services.
Step 5 - Once the server computer is restarted, again open the System settings to check the server name has changed. Please check below image, the name of the Server is changed to OmniSecu-Serv01.
Written by Jajish Thomas.
Last updated on 27th January, 2022.