{"id":351,"date":"2024-09-10T12:13:55","date_gmt":"2024-09-10T11:13:55","guid":{"rendered":"https:\/\/www.speedhub.eu\/blog\/?p=351"},"modified":"2024-09-10T12:13:55","modified_gmt":"2024-09-10T11:13:55","slug":"how-to-change-the-hostname-on-windows-server-2022-and-2025","status":"publish","type":"post","link":"https:\/\/www.speedhub.eu\/blog\/2024\/09\/10\/how-to-change-the-hostname-on-windows-server-2022-and-2025\/","title":{"rendered":"How to Change the Hostname on Windows Server 2022 and 2025"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2024\/09\/windows_server_2025-1024x573.png\" alt=\"change hostname windows server 2025\" class=\"wp-image-352\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2024\/09\/windows_server_2025-1024x573.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2024\/09\/windows_server_2025-300x168.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2024\/09\/windows_server_2025-768x430.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2024\/09\/windows_server_2025.png 1380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the hostname of a Windows Server is a common administrative task that can be done using various methods. This guide will walk you through the steps to change the hostname on Windows Server 2022 and 2025 using both the graphical user interface (GUI) and PowerShell.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Administrative privileges on the server.<\/li>\n\n\n\n<li>Access to the server either physically or via remote desktop.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Using the Graphical User Interface (GUI)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Server Manager:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Click on the <strong>Start<\/strong> menu.<\/li>\n\n\n\n<li>Select <strong>Server Manager<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Access Local Server:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the Server Manager dashboard, click on <strong>Local Server<\/strong> in the left-hand pane.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Change Computer Name:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the <strong>Properties<\/strong> section, click on the current <strong>Computer Name<\/strong>.<\/li>\n\n\n\n<li>The <strong>System Properties<\/strong> window will open. Click on the <strong>Change<\/strong> button.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Enter New Hostname:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the <strong>Computer Name\/Domain Changes<\/strong> window, enter the new hostname in the <strong>Computer name<\/strong> field.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restart the Server:<\/strong>\n<ul class=\"wp-block-list\">\n<li>You will be prompted to restart the server. Click <strong>Restart Now<\/strong> to apply the changes.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Verification:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After the server restarts, open Server Manager again and verify that the new hostname is displayed under <strong>Local Server<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Using PowerShell<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open PowerShell:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Click on the <strong>Start<\/strong> menu.<\/li>\n\n\n\n<li>Type <strong>PowerShell<\/strong> and select <strong>Windows PowerShell<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Run Rename-Computer Command:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the PowerShell window, type the following command:<code>Rename-Computer -NewName \"NewHostname\" -Force -PassThru<\/code><\/li>\n\n\n\n<li>Replace <code>\"NewHostname\"<\/code> with the desired hostname.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restart the Server:<\/strong>\n<ul class=\"wp-block-list\">\n<li>To apply the changes, restart the server using the following command:<code>Restart-Computer<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Verification:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After the server restarts, open PowerShell and run the following command to verify the hostname:<code>hostname<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Additional Tips<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure that the new hostname complies with your organization\u2019s naming conventions.<\/li>\n\n\n\n<li>If the server is part of a domain, you may need to update the DNS records to reflect the new hostname.<\/li>\n\n\n\n<li>Always perform these changes during a maintenance window to avoid disrupting services.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Changing the hostname of a Windows Server is a common administrative task that can be done using various methods. This guide will walk you through the steps to change the hostname on Windows Server 2022 and 2025 using both the&hellip; <a href=\"https:\/\/www.speedhub.eu\/blog\/2024\/09\/10\/how-to-change-the-hostname-on-windows-server-2022-and-2025\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":352,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[81,99],"class_list":["post-351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps-servers","tag-change-windows-server-hostname","tag-windows-server"],"_links":{"self":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":1,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions\/353"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media\/352"}],"wp:attachment":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}