{"id":5144,"date":"2024-08-20T13:29:36","date_gmt":"2024-08-20T20:29:36","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=5144"},"modified":"2024-08-20T13:30:14","modified_gmt":"2024-08-20T20:30:14","slug":"how-to-change-the-timezone-by-using-powershell","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=5144","title":{"rendered":"How to Change the TimeZone by Using PowerShell"},"content":{"rendered":"\n<p>Azure VM sets it&#8217;s time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1015\" height=\"774\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-1.png\" alt=\"\" class=\"wp-image-5146\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-1.png 1015w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-1-300x229.png 300w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-1-768x586.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.<br>The steps are executed in PowerShell Commands<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open windows PowerShell as administrator in the VM<\/li>\n\n\n\n<li>Type the command so that you get the current time zone settings in the VM :&nbsp;<code>Get-TimeZone<\/code><br>I am expecting the following result:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/learn-attachment.microsoft.com\/api\/attachments\/187559-image.png?platform=QnA\" alt=\"187559-image.png\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now you need to find the id of your time zone using the command. Note that, you must change the string used as per your location. For Example:&nbsp;<code>Get-TimeZone -ListAvailable | where ({$_.Id -like \"Mountain*\"})<\/code><\/li>\n\n\n\n<li>Copy the id shown corresponding to your location and set the new time zone by the command. Here again, change the string id as per your location:&nbsp;<code>Set-TimeZone -Id \"Mountain Standard Time\"<\/code><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"520\" height=\"180\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image.png\" alt=\"\" class=\"wp-image-5145\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image.png 520w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-300x104.png 300w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This should immediately change the time to the correct time in the location.<\/li>\n<\/ul>\n\n\n\n<p>Ref: <a href=\"https:\/\/learn.microsoft.com\/en-us\/answers\/questions\/790452\/azure-vm-displaying-incorrect-time\">https:\/\/learn.microsoft.com\/en-us\/answers\/questions\/790452\/azure-vm-displaying-incorrect-time<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure VM sets it&#8217;s time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI. So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.The steps <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=5144\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[10,14,15],"tags":[1811],"class_list":["post-5144","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-windows-7-8-10","category-windows-servers","tag-change-the-timezone-by-using-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Azure VM sets it&#039;s time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI. So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.The steps\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Summa Lai\"\/>\n\t<meta name=\"keywords\" content=\"change the timezone by using powershell,microsoft family,windows 7\/8\/10\/11,windows servers\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/SUMMALAI.COM\/?p=5144\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#article\",\"name\":\"How to Change the TimeZone by Using PowerShell | Summa Lai\",\"headline\":\"How to Change the TimeZone by Using PowerShell\",\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-1.png\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144\\\/#articleImage\",\"width\":1015,\"height\":774},\"datePublished\":\"2024-08-20T13:29:36-07:00\",\"dateModified\":\"2024-08-20T13:30:14-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#webpage\"},\"articleSection\":\"Microsoft Family, Windows 7\\\/8\\\/10\\\/11, Windows Servers, Change the TimeZone by Using PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"name\":\"Microsoft Family\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"position\":2,\"name\":\"Microsoft Family\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=14#listItem\",\"name\":\"Windows 7\\\/8\\\/10\\\/11\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=14#listItem\",\"position\":3,\"name\":\"Windows 7\\\/8\\\/10\\\/11\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=14\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#listItem\",\"name\":\"How to Change the TimeZone by Using PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"name\":\"Microsoft Family\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#listItem\",\"position\":4,\"name\":\"How to Change the TimeZone by Using PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=14#listItem\",\"name\":\"Windows 7\\\/8\\\/10\\\/11\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\",\"name\":\"sladmin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#personImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"sladmin\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2\",\"name\":\"Summa Lai\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#authorImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"Summa Lai\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#webpage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144\",\"name\":\"How to Change the TimeZone by Using PowerShell | Summa Lai\",\"description\":\"Azure VM sets it's time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI. So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.The steps\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5144#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"datePublished\":\"2024-08-20T13:29:36-07:00\",\"dateModified\":\"2024-08-20T13:30:14-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/\",\"name\":\"Summa Lai\",\"description\":\"Never Stop Learning, Building a Little Wiki...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Change the TimeZone by Using PowerShell | Summa Lai","description":"Azure VM sets it's time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI. So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.The steps","canonical_url":"https:\/\/SUMMALAI.COM\/?p=5144","robots":"max-image-preview:large","keywords":"change the timezone by using powershell,microsoft family,windows 7\/8\/10\/11,windows servers","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/SUMMALAI.COM\/?p=5144#article","name":"How to Change the TimeZone by Using PowerShell | Summa Lai","headline":"How to Change the TimeZone by Using PowerShell","author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/08\/image-1.png","@id":"https:\/\/SUMMALAI.COM\/?p=5144\/#articleImage","width":1015,"height":774},"datePublished":"2024-08-20T13:29:36-07:00","dateModified":"2024-08-20T13:30:14-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/SUMMALAI.COM\/?p=5144#webpage"},"isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/?p=5144#webpage"},"articleSection":"Microsoft Family, Windows 7\/8\/10\/11, Windows Servers, Change the TimeZone by Using PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/SUMMALAI.COM\/?p=5144#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","position":1,"name":"Home","item":"https:\/\/SUMMALAI.COM","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","name":"Microsoft Family"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","position":2,"name":"Microsoft Family","item":"https:\/\/SUMMALAI.COM\/?cat=10","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=14#listItem","name":"Windows 7\/8\/10\/11"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=14#listItem","position":3,"name":"Windows 7\/8\/10\/11","item":"https:\/\/SUMMALAI.COM\/?cat=14","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=5144#listItem","name":"How to Change the TimeZone by Using PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","name":"Microsoft Family"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=5144#listItem","position":4,"name":"How to Change the TimeZone by Using PowerShell","previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=14#listItem","name":"Windows 7\/8\/10\/11"}}]},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/#person","name":"sladmin","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=5144#personImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"sladmin"}},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/?author=2#author","url":"https:\/\/SUMMALAI.COM\/?author=2","name":"Summa Lai","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=5144#authorImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"Summa Lai"}},{"@type":"WebPage","@id":"https:\/\/SUMMALAI.COM\/?p=5144#webpage","url":"https:\/\/SUMMALAI.COM\/?p=5144","name":"How to Change the TimeZone by Using PowerShell | Summa Lai","description":"Azure VM sets it's time zone as UTC by default. Sometimes, the settings might also grey out, so you cannot modify it from the GUI. So, it follows the time always until you set a different time zone. I am doing the settings in the following way:. I hope this will help you too.The steps","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/#website"},"breadcrumb":{"@id":"https:\/\/SUMMALAI.COM\/?p=5144#breadcrumblist"},"author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"creator":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"datePublished":"2024-08-20T13:29:36-07:00","dateModified":"2024-08-20T13:30:14-07:00"},{"@type":"WebSite","@id":"https:\/\/SUMMALAI.COM\/#website","url":"https:\/\/SUMMALAI.COM\/","name":"Summa Lai","description":"Never Stop Learning, Building a Little Wiki...","inLanguage":"en-US","publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"}}]}},"aioseo_meta_data":{"post_id":"5144","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-08-20 20:21:32","updated":"2024-08-20 20:30:14","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=10\" title=\"Microsoft Family\">Microsoft Family<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=14\" title=\"Windows 7\/8\/10\/11\">Windows 7\/8\/10\/11<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Change the TimeZone by Using PowerShell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/SUMMALAI.COM"},{"label":"Microsoft Family","link":"https:\/\/SUMMALAI.COM\/?cat=10"},{"label":"Windows 7\/8\/10\/11","link":"https:\/\/SUMMALAI.COM\/?cat=14"},{"label":"How to Change the TimeZone by Using PowerShell","link":"https:\/\/SUMMALAI.COM\/?p=5144"}],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5144"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5144\/revisions"}],"predecessor-version":[{"id":5148,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5144\/revisions\/5148"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}