{"id":908,"date":"2024-09-27T23:46:35","date_gmt":"2024-09-27T22:46:35","guid":{"rendered":"https:\/\/lavenhamit.uk\/wrdprss\/?p=908"},"modified":"2024-09-27T23:48:12","modified_gmt":"2024-09-27T22:48:12","slug":"create-a-local-administrator-account-in-windows-on-the-command-line","status":"publish","type":"post","link":"https:\/\/lavenhamit.uk\/wrdprss\/?p=908","title":{"rendered":"Create a local administrator account in windows on the command line"},"content":{"rendered":"\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-14a23ec7a4e97429f91e30b59cb68f91\"><code>net user \/add &#91;username] &#91;password]\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">This creates the user account<\/mark>\n\nnet localgroup administrators &#91;username] \/add\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">This adds the user to the Local Administrators Group<\/mark>\n\nwmic UserAccount where Name=\"&#91;username]\" set PasswordExpires=False\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">This prevents the password from expiring<\/mark><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[103],"tags":[],"class_list":["post-908","post","type-post","status-publish","format-standard","hentry","category-windows-commands"],"_links":{"self":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=908"}],"version-history":[{"count":4,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":912,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions\/912"}],"wp:attachment":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}