{"id":137,"date":"2015-03-17T21:52:54","date_gmt":"2015-03-17T10:52:54","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=137"},"modified":"2022-12-02T11:40:27","modified_gmt":"2022-12-02T00:40:27","slug":"how-to-enable-the-administrator-account-in-windows-using-the-command-prompt","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-enable-the-administrator-account-in-windows-using-the-command-prompt\/","title":{"rendered":"How to Enable the Administrator Account in Windows using the Command Prompt"},"content":{"rendered":"<p>Here&#8217;s another <a href=\"https:\/\/4it.com.au\/kb\/article-category\/windows-commands\/\">command<\/a> which is quite useful when managing a remote workstation and they&#8217;ve forgot their password &#8211; obviously for when they&#8217;re not part of a domain.<\/p>\n<h3>Enable Windows Local Administrator Account<\/h3>\n<p><code>net user administrator \/active:yes<\/code><\/p>\n<h3>Set a Password for the Windows Local Administrator Account<\/h3>\n<p><code>net user administrator \"yourpasswordgoeshere\"<\/code><\/p>\n<h3>Disable Windows Local Administrator Account<\/h3>\n<p><code>net user administrator \/active:no<\/code><\/p>\n<h3>Batch File<\/h3>\n<p>Save the following text to a notepad document and save as a .bat file<\/p>\n<p><code>@echo off<br \/>\nnet user administrator \/active:yes<br \/>\nnet user administrator \"yourpasswordgoeshere\"<\/code><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s another command which is quite useful when managing a remote workstation and they&#8217;ve forgot their password &#8211; obviously for when they&#8217;re not part of a domain. Enable Windows Local Administrator Account net user administrator \/active:yes Set a Password for the Windows Local Administrator Account net user administrator &#8220;yourpasswordgoeshere&#8221; Disable Windows Local Administrator Account net [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[9],"article-tag":[12,64,65],"class_list":["post-137","article","type-article","status-publish","format-standard","hentry","article-category-windows-commands","article-tag-command-prompt","article-tag-enable-administrator","article-tag-workstation"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":14,"sum_votes":53},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/137\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=137"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}