{"id":1475,"date":"2014-06-18T03:48:51","date_gmt":"2014-06-18T03:48:51","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1475"},"modified":"2014-06-18T03:48:51","modified_gmt":"2014-06-18T03:48:51","slug":"net-commands-network-security-management","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1475","title":{"rendered":"Net Commands &#8211; Network Security Management"},"content":{"rendered":"<p>The NET Command is used to manage network security resources as follows:<\/p>\n<p>View user account password and logon requirements (also displays the machine type &#8211; Server or workstation)<br \/>\nNET ACCOUNTS<\/p>\n<p>View password and logon requirements for the network domain.<br \/>\nNET ACCOUNTS \/DOMAIN<\/p>\n<p>Set the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire<br \/>\nNET ACCOUNTS \/FORCELOGOFF:<i>minutes<\/i> \/DOMAIN<\/p>\n<p>Prevent forced logoff when user accounts expire<br \/>\nNET ACCOUNTS \/FORCELOGOFF:NO \/DOMAIN<\/p>\n<p>Set the minimum number of characters for a password.<br \/>\nNET ACCOUNTS \/MINPWLEN:<i>C<\/i> \/DOMAIN<br \/>\nThe range is 0-14 characters; the default is 6 characters.<\/p>\n<p>Set the maximum number of days that a password is valid.<br \/>\nNET ACCOUNTS \/MAXPWAGE:<i>dd<\/i> \/DOMAIN<br \/>\nThe range is 1-49710; the default is 90 days.<\/p>\n<p>Set passwords to never expire.<br \/>\nNET ACCOUNTS \/MAXPWAGE:UNLIMITED \/DOMAIN<\/p>\n<p>Set a minimum number of days that must pass before a user can change a password (default = 0)<br \/>\nNET ACCOUNTS \/MINPWAGE:<i>dd<\/i> \/DOMAIN<\/p>\n<p>Require that new passwords be different from &#8216;x&#8217; number of previous passwords<br \/>\nNET ACCOUNTS \/UNIQUEPW:<i>x<\/i> \/DOMAIN<br \/>\nThe range for &#8216;x&#8217; is 1-24<\/p>\n<p>Synchoronise the user accounts database (PDC and BDC)<br \/>\nNET ACCOUNTS \/SYNC \/DOMAIN<\/p>\n<p>View user account details<br \/>\nNET USER [\/DOMAIN]<\/p>\n<p>Add a user account.<br \/>\nNET USER <i>username<\/i> {password | *} \/ADD [options] [\/DOMAIN]<\/p>\n<p>Modify a user account.<br \/>\nNET USER [<i>username<\/i> [password | *] [options]] [\/DOMAIN]<\/p>\n<p>Delete a username<br \/>\nNET USER <i>username<\/i> [\/DELETE] [\/DOMAIN]<\/p>\n<p>Generate a random password:<\/p>\n<p>NET USER administrator \/random<\/p>\n<p>Add a group<br \/>\nNET GROUP <i>groupname<\/i> \/ADD [\/COMMENT:&#8221;text&#8221;] [\/DOMAIN]<\/p>\n<p>Edit a group<br \/>\nNET GROUP [<i>groupname<\/i> [\/COMMENT:&#8221;text&#8221;]] [\/DOMAIN]<\/p>\n<p>Delete a group<br \/>\nNET GROUP <i>groupname<\/i> \/DELETE [\/DOMAIN]<\/p>\n<p>Add a user to a group<br \/>\nNET GROUP <i>groupname username<\/i> [&#8230;] \/ADD [\/DOMAIN]<\/p>\n<p>Delete a user from a group<br \/>\nNET GROUP <i>groupname username<\/i> [&#8230;] \/DELETE [\/DOMAIN]<\/p>\n<p>To View, Add or modify a local group replace GROUP in the commands above with LOCALGROUP.<\/p>\n<p><b>Examples<\/b><\/p>\n<p>Create a group<\/p>\n<p>C:\\&gt; NET LOCALGROUP spud \/add<\/p>\n<p>Add to guests<\/p>\n<p>C:\\&gt; NET LOCALGROUP guests spud \/add<\/p>\n<p>Then remove<\/p>\n<p>C:\\&gt; NET LOCALGROUP guests spud \/delete<\/p>\n<p>C:\\&gt; NET LOCALGROUP spud \/delete<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The NET Command is used to manage network security resources as follows: View user account password and logon requirements (also displays the machine type &#8211; Server or workstation) NET ACCOUNTS View password and logon requirements for the network domain. NET ACCOUNTS \/DOMAIN Set the number of minutes a user has before being forced to log [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,7,1,26,27,25,12],"tags":[],"class_list":["post-1475","post","type-post","status-publish","format-standard","hentry","category-sec-secops","category-computer-tech-stuff","category-networking-stuff","category-win_7","category-win_8","category-win_vista","category-winxp"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1475"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1475\/revisions"}],"predecessor-version":[{"id":1477,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1475\/revisions\/1477"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}