Net Commands On Windows Operating Systems

Article translations Article translations
Article ID: 556003 - View products that this article applies to.
Author: Nirmal Sharma MVP
Expand all | Collapse all

SUMMARY

The following knowledgebase will explain the uses of Net commands in Windows Operating Systems.

MORE INFORMATION

Net Commands On Windows Operating Systems
 
 
The following Net Commands can be used to perform operations on Groups, users, account policies, shares etc.
 
NET
 
ACCOUNTS
COMPUTER
CONFIG
CONTINUE
FILE
GROUP
HELP
HELPMSG
LOCALGROUP
NAME
PAUSE
PRINT
SEND
SESSION
SHARE
START
STATISTICS
STOP
TIME
USE
USER
VIEW
 
The “Net Accounts” command is used to set the policy settings on local computer such as Account policies and password policies. This command can not be used on domain controller. This command is only used on local computer.
 
When you type Net Accounts you will see the default settings in local computer for the Account Lockout policy and Password Policy as shown below:
 
Force user logoff how long after time expires?:                   Never
Minimum password age (days):                                            1
Maximum password age (days):                                           90
Minimum password length:                                                   8
Length of password history maintained:                               5
Lockout threshold:                                                                 4
Lockout duration (minutes):                                                  4
Lockout observation window (minutes):                               4
Computer role:                                                                       WORKSTATION
 
The above settings displayed as per the role of the computer. If computer is joined to a domain, the domain settings will take effect and only the settings coming from domain will be displayed. The rest settings will be the local settings if its not coming from the Domain GPO.
 
You can change the following use the following options in Net Accounts option:
 
NET ACCOUNTS
 
[/FORCELOGOFF:{minutes | NO}]
 
[/MINPWLEN:length]
 
[/MAXPWAGE:{days | UNLIMITED}]
 
[/MINPWAGE:days]
 
[/UNIQUEPW:number] [/DOMAIN]
 
Two conditions are required in order for options used with
NET ACCOUNTS to take effect:
 
/FORCELOGOFF:{minutes | NO}   Sets the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire. NO, the default, prevents forced logoff.
 
/MINPWLEN:length  Sets the minimum number of characters for a password. The range is 0-14 characters; the default is 6 characters.
 
/MAXPWAGE:{days | UNLIMITED}  Sets the maximum number of days that a
password is valid. No limit is specified by using UNLIMITED. /MAXPWAGE can't be less than /MINPWAGE. The range is 1-999; the default is 90 days.
 
/MINPWAGE:days  Sets the minimum number of days that must pass before a user can change a password. A value of 0 sets no minimum time. The range is 0-999; the default is 0 days. /MINPWAGE can't be more than /MAXPWAGE.\
 
/UNIQUEPW:number Requires that a user's passwords be unique through the specified number of password changes. The maximum value is 24.
 
/DOMAIN Performs the operation on a domain controller of the current domain. Otherwise, the operation is performed on the local computer.
                        

Properties

Article ID: 556003 - Last Review: September 23, 2007 - Revision: 1.0
APPLIES TO
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows 2000 Enterprise Edition
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Service Pack 1
  • Microsoft Windows 2000 Service Pack 2
  • Microsoft Windows 2000 Service Pack 4
  • Microsoft Windows 2000 Service Pack 3
  • Microsoft Windows 2000 Standard Edition
Keywords: 
kbpubmvp kbpubtypecca kbhowto KB556003
COMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com