{"id":3301,"date":"2015-12-03T08:51:54","date_gmt":"2015-12-03T08:51:54","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=3301"},"modified":"2023-01-19T13:58:04","modified_gmt":"2023-01-19T10:58:04","slug":"windows-password-reset-linux-password-reset","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/","title":{"rendered":"Windows password reset. Linux password reset"},"content":{"rendered":"<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">The procedure of Linux and Windows password reset.<\/span><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h2>Linux password reset<\/h2>\n<ol>\n<li>Plug the iso image with the same OS and architecture.<\/li>\n<li>Set the disk reading to be the first in the boot order and restart the server.<\/li>\n<li>Go to console (Recovery mode or Rescue).<\/li>\n<li>Enter the following commands:<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>mkdir \/mnt\/tmp<\/strong> &#8211; create a temporary directory to mount the section.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>mount \/dev\/sda1 \/mnt\/tmp<\/strong> &#8211; command to mount the first section at the first disk to \/mnt\/tmp folder<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">It is necessary to mount the section with \/etc \/sys \/proc and others system folders. If the installation was not successful you may reinstall the section using umount \/mnt\/tmp command and do the procedure again.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>chroot \/mnt\/tmp<\/strong> &#8211; the command to assign the root section to \/mnt\/tmp folder. So \/ means \/mnt\/tmp\/.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>passwd root<\/strong> &#8211; assign a new password for the user.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>umount \/mnt\/tmp<\/strong> &#8211; reinstall the section.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Pull out the disk, change the boot order to the standard one (HDD to boot first) and restart your server.<br \/>\n<strong>reboot<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>Windows Server 2012 and Windows 8 password reset<\/h2>\n<ol>\n<li>Mount the iso image with the required OS version.<\/li>\n<li>Select &#8220;System restore&#8221; at the beginning.<\/li>\n<li>Go to console.\n<ul>\n<li>Diagnostics<\/li>\n<li>Command setup<\/li>\n<\/ul>\n<\/li>\n<li>Copy (save) Sethc.exe file using temp command to the temporary folder:<br \/>\n<strong>copy d:\\windows\\System32\\sethc.exe d:\\temp<\/strong><\/li>\n<li>Change sethc.exe file to Cmd.exe file using copy command:<br \/>\n<strong>copy d:\\windows\\System32\\cmd.exe d:\\windows\\System32\\sethc.exe<\/strong><\/li>\n<li>Exit the console.<\/li>\n<li>Reboot the computer.<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Select &#8220;Troubleshoot&#8221;.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Select &#8220;Command Prompt&#8221;.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Create a temp folder on D drive if it was not created before.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>Notification<\/strong>: In this case, the C drive is perceived by the machine as a D drive. The boot disk created section C for itself, so all other sections were moved. At this step you need to check the disks carefully.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Reboot OS and press Shift 5 times (sethc.exe program is responsible for this, we changed it to cmd.exe).If the console did not open press the switch contrast button (this button is placed under the date).<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Assign the new password to the new local user Administrator<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>net user \u201cAdministrator\u201d your_password<\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Close the window and enter system using the new password.<\/span><br \/>\n<span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">If the account is disabled, you can enable it with the following command.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\"><strong>net user &#8220;Administrator&#8221; \/active:yes<\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">You may change the password of any local user.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">Notification: this method will not work for operating systems which are in the domain and are authenticated under Active Directory (AD).<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif;\">For Windows Server 2003-2008 and Windows XP, 7 the procedure is identical, but you need to change cmd.exe to utilman.exe (options)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The procedure of Linux and Windows password reset.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158,6],"tags":[126,298,81],"class_list":["post-3301","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","category-vps","tag-linux-ru","tag-password","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows password reset. Linux password reset - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"A detailed tutorial for Linux and Windows password reset.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows password reset. Linux password reset - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"A detailed tutorial for Linux and Windows password reset.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-03T08:51:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:58:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Windows password reset. Linux password reset\",\"datePublished\":\"2015-12-03T08:51:54+00:00\",\"dateModified\":\"2023-01-19T10:58:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\"},\"wordCount\":446,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"keywords\":[\"Linux\",\"password\",\"Windows\"],\"articleSection\":[\"02. Dedicated servers\",\"Virtual Private Server (VPS)\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\",\"url\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\",\"name\":\"Windows password reset. Linux password reset - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"datePublished\":\"2015-12-03T08:51:54+00:00\",\"dateModified\":\"2023-01-19T10:58:04+00:00\",\"description\":\"A detailed tutorial for Linux and Windows password reset.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Windows password reset. Linux password reset\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows password reset. Linux password reset - Unihost.FAQ","description":"A detailed tutorial for Linux and Windows password reset.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/","og_locale":"en_US","og_type":"article","og_title":"Windows password reset. Linux password reset - Unihost.FAQ","og_description":"A detailed tutorial for Linux and Windows password reset.","og_url":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2015-12-03T08:51:54+00:00","article_modified_time":"2023-01-19T10:58:04+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Windows password reset. Linux password reset","datePublished":"2015-12-03T08:51:54+00:00","dateModified":"2023-01-19T10:58:04+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/"},"wordCount":446,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["Linux","password","Windows"],"articleSection":["02. Dedicated servers","Virtual Private Server (VPS)"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/","url":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/","name":"Windows password reset. Linux password reset - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2015-12-03T08:51:54+00:00","dateModified":"2023-01-19T10:58:04+00:00","description":"A detailed tutorial for Linux and Windows password reset.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/windows-password-reset-linux-password-reset\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Windows password reset. Linux password reset"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/3301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=3301"}],"version-history":[{"count":4,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/3301\/revisions"}],"predecessor-version":[{"id":6929,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/3301\/revisions\/6929"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=3301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=3301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=3301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}