{"id":281,"date":"2024-07-19T08:15:45","date_gmt":"2024-07-19T08:15:45","guid":{"rendered":"https:\/\/host2day.in\/blog\/?p=281"},"modified":"2024-07-19T09:19:30","modified_gmt":"2024-07-19T09:19:30","slug":"simple-command-to-update-time-in-windows-server","status":"publish","type":"post","link":"https:\/\/host2day.in\/blog\/simple-command-to-update-time-in-windows-server\/","title":{"rendered":"Simple command to update time in Windows server"},"content":{"rendered":"<h2>Simple command to update time in Windows server<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.partitionwizard.com\/images\/uploads\/articles\/2021\/11\/change-time-server-win-10\/change-time-server-win-10-3.png\" alt=\"How to Change Time Server Windows 10? - MiniTool Partition Wizard\" \/><br \/>\nSimple command to update time in <a href=\"https:\/\/www.host2day.in\/windows-vps-hosting\/\">Windows server<\/a><\/p>\n<figure style=\"width: 686px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/wYSNWAUBWpo\/hq720.jpg?sqp=-oaymwEhCK4FEIIDSFryq4qpAxMIARUAAAAAGAElAADIQj0AgKJD&amp;rs=AOn4CLBGL7uI1ibGwcdVm4LOByXhHCbISg\" alt=\"Simple command to update time in Windows server\" width=\"686\" height=\"386\" \/><figcaption class=\"wp-caption-text\">Simple command to update time in Windows server<\/figcaption><\/figure>\n<p>To update the time on a Windows Server, you can use the <code>net time<\/code> command from the Command Prompt with administrative privileges. Here\u2019s how you can do it:<\/p>\n<ol>\n<li><strong>Open Command Prompt as Administrator<\/strong>:\n<ul>\n<li>Press <code>Win + X<\/code> and select &#8220;Command Prompt (Admin)&#8221; or &#8220;Windows Terminal (Admin)&#8221;.<\/li>\n<li>If using Windows Terminal, make sure to select the Command Prompt option if <code>cmd<\/code> is not the default terminal.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Check Current Time Source (Optional)<\/strong>:\n<ul>\n<li>Before updating the time, you may want to check which time source your server is currently using:\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">w32tm \/query \/status<br \/>\n<\/code><\/div>\n<\/div>\n<p>Look for the &#8220;Source&#8221; line under &#8220;Leap Indicator&#8221;.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Update Time Using <code>net time<\/code> Command<\/strong>:\n<ul>\n<li>To update the time from a specified time server (e.g., time.windows.com), use the following command:\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">net time \/set \/yes<br \/>\n<\/code><\/div>\n<\/div>\n<p>This command will synchronize the time with the time server specified in the registry.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Verify the Time After Update<\/strong>:\n<ul>\n<li>To verify that the time has been updated, you can check the system clock or run the <code>w32tm \/query \/status<\/code> command again to see the current time source and synchronization status.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Additional Notes<\/strong>:\n<ul>\n<li>Ensure your server has connectivity to the specified time server or adjust the command accordingly if using a different time source.<\/li>\n<li>If your server is part of a domain, time synchronization may be managed by Active Directory and Group Policy, in which case, using <code>net time<\/code> might not be necessary or allowed due to policy settings.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>By following these steps, you can quickly update the time on a <a href=\"https:\/\/www.squarebrothers.com\/windows-vps-hosting-india\/\" target=\"_blank\" rel=\"noopener\">Windows Server<\/a> using the <code>net time<\/code> command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple command to update time in Windows server Simple command to update time in Windows server To update the time on a Windows Server, you can use the net time command from the Command Prompt with administrative privileges. Here\u2019s how you can do it: Open Command Prompt as Administrator: Press Win + X and select&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"default","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"default","_kad_post_vertical_padding":"default","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-hosting"],"_links":{"self":[{"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":5,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/host2day.in\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}