{"id":1718,"date":"2025-11-09T23:38:18","date_gmt":"2025-11-09T23:38:18","guid":{"rendered":"https:\/\/www.ultrexstaff.com\/?p=1718"},"modified":"2025-11-09T23:38:19","modified_gmt":"2025-11-09T23:38:19","slug":"command-line-powershell-create-users-block-password-change","status":"publish","type":"post","link":"https:\/\/www.ultrexstaff.com\/?p=1718","title":{"rendered":"Command Line\/Powershell create users, block password change"},"content":{"rendered":"\n<p>Add User and Set Password to Never Expire (especially for Scanning User)<\/p>\n\n\n\n<p>Net user Scanning Scanning12 \/add<\/p>\n\n\n\n<p>Make PW never expire (Powershell most reliable to work, all will still break with big windows updates)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Command Line Admin option 1 (deprecating):<\/strong>\u00a0WMIC USERACCOUNT where Name=&#8217;Scanning&#8217; set PasswordExpires=False<\/li>\n\n\n\n<li><strong>Command Line Admin option 2 (sometimes an option):\u00a0<\/strong>net user &#8220;Scanning&#8221; \/expires:never<\/li>\n\n\n\n<li><strong>Powershell Admin (most reliable):<\/strong>\u00a0Set-LocalUser -Name &#8220;Scanning&#8221; -PasswordNeverExpires $true<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Add User and Set Password to Never Expire (especially for Scanning User) Net user Scanning Scanning12 \/add Make PW never expire (Powershell most reliable to work, all will still break with big windows updates)<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,120],"tags":[],"class_list":["post-1718","post","type-post","status-publish","format-standard","hentry","category-command-line","category-windows","post-preview"],"_links":{"self":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1718"}],"version-history":[{"count":1,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions"}],"predecessor-version":[{"id":1719,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions\/1719"}],"wp:attachment":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}