{"id":1714,"date":"2025-11-09T23:36:51","date_gmt":"2025-11-09T23:36:51","guid":{"rendered":"https:\/\/www.ultrexstaff.com\/?p=1714"},"modified":"2025-11-09T23:36:52","modified_gmt":"2025-11-09T23:36:52","slug":"command-line-add-users-and-scans-folder-w-sharing-password-never-expires","status":"publish","type":"post","link":"https:\/\/www.ultrexstaff.com\/?p=1714","title":{"rendered":"Command line Add Users and Scans Folder w sharing, Password Never Expires"},"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><br>Make PW never expire<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Command Line Admin:<\/strong>\u00a0WMIC USERACCOUNT where Name=&#8217;Scanning&#8217; set PasswordExpires=False<\/li>\n\n\n\n<li><strong>Powershell Admin:<\/strong>\u00a0Set-LocalUser -Name &#8220;Scanning&#8221; -PasswordNeverExpires $true<\/li>\n<\/ul>\n\n\n\n<p>Commands to Setup and Share Scans Folder through CLI<\/p>\n\n\n\n<p>Mkdir C:\\SCANS (creates Scans folder)<\/p>\n\n\n\n<p>Dir C:\\ (to confirm Scans folder creation)<\/p>\n\n\n\n<p>Cd c:\\scans (to select scans folder)<\/p>\n\n\n\n<p>Net share scans=c:\\scans \/grant:Scanning,full (to grant read\/write permissions with Scanning User \u2013 confirm permissions if needed)<\/p>\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 Commands to Setup and Share Scans Folder through CLI Mkdir C:\\SCANS (creates Scans folder) Dir C:\\ (to confirm Scans folder creation) Cd c:\\scans (to select scans folder) Net share scans=c:\\scans \/grant:Scanning,full (to grant read\/write [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,98,122,120],"tags":[],"class_list":["post-1714","post","type-post","status-publish","format-standard","hentry","category-command-line","category-it-knowledge-base-articles","category-printing-and-scanning","category-windows","post-preview"],"_links":{"self":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1714","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=1714"}],"version-history":[{"count":1,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions"}],"predecessor-version":[{"id":1715,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions\/1715"}],"wp:attachment":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}