Type net accounts with no parameters, displaying current password settings, logon time limits, and domain information.
/forcelogoff:{minutes | no}
Sets the wait time before a user or server session is terminated when a user account or valid logon time expires. No option prohibits
Force logoff. The default setting for this parameter is no.
After the/forcelogoff:minutes is specified, Windows NT minutes minutes before it forces the user to quit the network
, an alert is issued to the user. If there are open files, Windows NT warns the user. If minutes is less than
Two minutes, Windows NT warns users to log off from the network immediately.
/minpwlen:length
Sets the minimum number of characters for a user account password. The allowable range is 0-14, and the default value is 6.
/maxpwage:{days | unlimited}
Set the maximum number of days a user account password is valid. Unlimited does not set the maximum number of days. Days of the/maxpwage option must be
shall be greater than/minpwage. The allowable range is 1-49, 710 days (unlimited). The default value is 90 days.
/minpwage:days
Set the minimum number of days a user must keep the original password. The 0 value does not set the minimum time. The allowable range is 0-49, 710 days, the default
The value is 0 days.
/uniquepw:number
When a user is required to change a password, the same password must be reused after number times. Allowable range
Is 0-8. The default value is 5.
/domain
Perform this operation on the primary domain controller of the current domain. Otherwise, the operation is performed only on the local computer.
This parameter is used only for Windows NT Workstation computers in Windows NT Server domains, Windows NT
The Server computer defaults to performing operations on the primary domain controller.
/sync
When used with the primary domain controller, this command synchronizes all the backup domain controllers in the domain, and when used to back up the domain controller, the
Make the backup domain controller synchronized with the primary domain controller only. This command applies only to the count of Windows NT Server domain members
Counting machine.
Net Computer
Add or remove computers from the domain database. This command is available only on computers running Windows NT Server.
NET computer \ComputerName {/add |/del}
Parameters
\ComputerName
Specifies the computer to be added to or removed from the domain.
/add
Adds the specified computer to the domain.
/del
Deletes the specified computer from the domain.
Net Config
Displays the currently running configurable service, or displays and changes the settings for a service.
NET config [service [options]
Parameters
No
Typing a net config with no parameters displays a list of configurable services.
Service
A service (server or workstation) that is configured through the Net config command.
Options
Specific options for the service. Complete syntax See net config server or net config workstation.
Net Config Server
Displays or changes the server's service settings when the service is running.
NET config server [/autodisconnect:time] [/srvcomment: "Text"] [/hidden:{yes | N
o}]
Parameters
No
Type a net config server with no parameters to display the current configuration of the Server service.
/autodisconnect:time
Sets the maximum time value that the user session is idle before disconnecting. You can specify-1 to indicate that the connection will never be disconnected. Allowable range is-1
-65,535 minutes, the default is 15 minutes.
/srvcomment: "Text"
Add comments to the server, which can be displayed on the screen by using the net VIEW command. Up to 48 notes
Characters, the text should be quoted in quotation marks.
/hidden:{yes | no}
Specifies whether the computer name of the server appears in the server list. Please note that a server is not changed by implication
The permissions. The default is No.
Net Config Workstation
Displays or changes the settings for each service on the workstation when the service is running.
net config workstation [/charcount:bytes] [/chartime:msec] [/charwait:sec]
Parameters
No
Type net config workstation with no parameters to display the current configuration of the local computer.
/charcount:bytes
Specifies the amount of data that Windows NT collects before sending data to a communication device. If you set/chartime:m at the same time
SEC parameter, Windows NT runs according to the option that first satisfies the criteria. The allowable range is 0-65535 bytes, and the default value is
16 bytes.
/chartime:msec
Specifies the time that Windows NT collects data before sending it to a communications device. If you set/charcoun at the same time
T:bytes parameter, Windows NT runs under the first option that satisfies the criteria. The allowable range is 0-65535000 milliseconds, and the default
The recognition value is 250 milliseconds.
/charwait:sec
Sets the time Windows NT waits for a communication device to become available. The allowable range is 0-65,535 seconds, and the default value is 36.
00 seconds.
Net Continue
Reactivate the suspended service.
NET Continue Service
Parameters
Service
Services that can continue to run, including: File Server for Macintosh (this service is limited to Windows NT Se
, nt LM Security support Provider,remoteboot (this service is limited to Windows NT Server),
Remote access server, schedule,server,simple TCP/IP services and workstation.
Net File
Displays the number of all open shared file names and locked files on a server. This command can also close individual files and cancel the text
Pieces locked.
NET file [ID [/close]
Parameters
No
Type net file with no parameters to get a list of open files on the server.
Id
The file identification number.
/close
Closes the open file and releases the locked record. Type the command from the server on which you are sharing files.
Net Group
Add, display, or change global groups in a Windows NT Server domain. This command is available only in Windows NT Server domain
Available in.
NET group [groupname [/comment: "Text"] [/domain]
NET group groupname {/add [/comment: "Text"] | /delete} [/domain]
NET group groupname username [...] {/add |/delete} [/domain]
Parameters
No
Type a net group with no parameters to display the server name and the server's group name.
GroupName
The group to add, expand, or delete. You can view a list of users in a group by providing only one group name.
/comment: "Text"
Add a comment for a new or existing group. Note can be up to 48 characters and enclose the annotation text in quotation marks.
/domain
This operation is performed on the primary domain controller of the current domain, otherwise the operation is performed on the local computer.
This parameter is used only for Windows NT Workstation computers that are members of a Windows NT Server domain. Windo
The WS NT Server computer defaults to operations on the primary domain controller.
Username[...]
The list displays one or more users to be added to or removed from the group. Use spaces to separate multiple user name entries.
/add
Add a group or add a user name to a group. You must use this command to establish an account number for users who are added to the group.
/delete
Delete the group or remove the user name from the group.
Net Help
Provides a list of network commands and Help topics, or provides help for specifying commands or topics. The available network commands are listed under N
Command reference, in the Commands window.
NET HELP [command]
NET Command {/help |/?}
Parameters
No
Type NET help with no parameters to display a list of commands and help topics that can be helped.
Command
Commands that require help, do not use net as part of the command.
/help
Provides a way to display help text choices.
/?
Displays the correct syntax for the command.
Net helpmsg
Provides help for Windows NT error messages.
NET Helpmsg message#
Parameters
message#
Four-bit code for Windows NT messages that require their help.
Net localgroup
Add, show, or change local groups.
net localgroup [groupname [/comment: "Text"] [/domain]
net localgroup groupname {/add [/comment: "Text"] | /delete} [/domain]
net localgroup groupname name [...] {/add |/delete} [/domain]
Parameters
No
Type net localgroup with no parameters displays the server name and the local group name of the computer.
GroupName
The name of the local group to add, expand, or delete. Provides groupname to view global in a user list or local group
Group.
/comment: "Text"
Adds a comment to a new or existing group. The maximum length of the annotation text is 48 characters and is enclosed in quotation marks.
/domain
Actions are performed on the primary domain controller of the current domain, otherwise only on the local computer.
This parameter applies only to Windows NT Workstation computers in Windows NT Server domains. Windows N
The T Server computer defaults to operating on the primary domain controller.
Name [...]
Lists one or more user or group names that you want to add to a local group or remove from a local group, with multiple user names or group names
separated by a space. Can be a local user, another domain user, or a global group, but not another local group. If the other domain
Users to add a domain name (for example, SALESRALPHR) before the user name.
/add
Adds a global group name or user name to the local group. Before you use this command to add a user or global group to a local group, you must
Account must be established for it.
/delete
Remove the group or user name from the local group.
Net Name
Add or remove a message name (sometimes called an alias), or display a list of names that the computer receives messages from. To use Net Nam
e command, the Messenger service must be running on the computer.
NET name [name [/add |/delete]
Parameters
No
Type net name without parameters lists the name that is currently in use.
Name
Specifies the name of the receive message. The name is up to 15 characters.
/add
Add the name to your computer. /add is optional, type net name name and type net name name/a
DD the same.
/delete
Remove the name from the computer.
Net Pause
Pause a service that is running.
NET Pause Service
Parameters
Service
refers to the following services: File Server for Macintosh (Windows NT server only), FTP Publishi
Ng service, lpdsvc, Net Logon, network DDE, network dde dsdm, nt lm security SUP
Port provider, remoteboot (Windows NT server only), remote access Server, Sch
Edule, server, simple TCP/IP services, or workstation.
Net Print
Displays or controls print jobs and print queues.
NET Print \computername sharename
NET print [\ComputerName] job# [/hold |/release |/delete]
Parameters
ComputerName
The computer name of the shared printer queue.
ShareName
print queue name. When ComputerName and sharename are included, use a backslash () to separate them.
job#
Identification number assigned to the print job in the printer queue. A computer that has one or more printer queues for each print
A unique identification number for the industry assignment. If a job number is used in a shared printer queue, it cannot be assigned to another job, nor
Can be assigned to jobs in other printer queues.
/hold
When using job#, the print job waits in the printer queue. The print job stays in the printer queue, and the other
A print job can only wait until the job is released to enter.
/release
Releases a reserved print job.
/delete
Deletes a print job from the printer queue.
Net Send
Sends a message to another user, computer, or communication name on the network. To receive messages, you must run the Messenger service.
NET SEND {name | * |/domain[:name] |/users} message
Parameters
Name
The user name, computer name, or communication name to receive the message to be sent. If the computer name contains a null character, enclose it in quotation marks
("") to lead.
*
Sends a message to all the names in the group.
/domain[:name]
Sends a message to all the names in the computer domain. If name is specified, the message is sent to all in the specified domain or group
Name.
/users
Sends a message to all users who are connected to the server.
Message
The text sent as a message.
Net Session
Lists or disconnects the session of the local computer and the client with which it is connected.
NET session [\ComputerName] [/delete]
Parameters
No
Type a net session with no parameters to display information about all sessions with the local computer.
\ComputerName
Identifies the computer on which you want to list or disconnect sessions.
/delete
End all open files for the computer during the session with the \ComputerName computer and close this session. If you omit
\ComputerName parameter, all sessions with the local computer will be canceled.
Net Share
Create, delete, or display shared resources.
NET share sharename
NET share Sharename=drive:path [/users:number |/unlimited] [/remark: "Text"]
NET share sharename [/users:number | unlimited] [/remark: "Text"]
NET share {sharename | drive:path}/delete
Parameters
No
Typing a net share with no parameters displays information about all the shared resources on the local computer.
ShareName
is the network name of the shared resource. Type the net share command with sharename to display only the shared information.
Drive:path
Specifies the absolute path to the shared directory.
/users:number
Sets the maximum number of users who can access a shared resource at the same time.
/unlimited
Does not limit the number of users who concurrently access shared resources.
/remark: "Text"
Add a comment about the resource, and the comment text is enclosed in quotation marks.
/delete
Stop sharing resources.
Net Start
Start the service, or display a list of started services. If the service name is two or more than two words, such as Net Logon or
Computer Browser, you must enclose it in quotation marks (").
net start [service]
Parameters
No
Type net start with no parameters to display a list of running services.
Service
Includes the following services: Alerter, Client Service for NetWare, ClipBook server, computer BR
The following services are available only in Windows NT server: File Server for Macintosh, Gateway Servi
Ce for NetWare, Microsoft DHCP server, print Server for Macintosh, Remoteboot, W
indows the Internet Name Service.
Net Time
Synchronizes the computer's clock with the time of another computer or domain. When used without the/set parameter, another meter is displayed
Calculate the time of the machine or domain.
NET TIME [\ComputerName |/domain[:name] [/SET]
Parameters
\ComputerName
The name of the server to check or synchronize.
/domain[:name]
Specifies the domain to synchronize with time.
/set
Synchronizes the computer clock with the specified computer or domain clock.
Net Use
Connect the computer or disconnect the computer from the shared resource, or display the connection information for the computer. The command also controls Permanent
Network Connections.
NET USE [devicename | *] [\computernamesharename[volume] [password | *] [/USER
NET use DeviceName [/home[password | *] [/delete:{yes | no}]
NET USE [/persistent:{yes | no}]
Parameters
No
Type net use with no parameters lists the network connections.
DeviceName
Specifies the name of the resource to which you want to connect or the name of the device to disconnect. There are two types of device names: Disk drives (D: to Z:) and
Printer (LPT1: to LPT3). If you type an asterisk instead of the specified device name, assign the next available device names.
\computernamesharename
The name of the server and the shared resource. If the computer name contains a blank character, enclose the double backslash in quotation marks ("") and compute
Machine name to draw. The computer name can be 1-15 characters long.
Volume
Specifies the NetWare volume on the server. To connect to a NetWare server, you must install and run the NetWare client
Service (Windows NT Workstation) or NetWare Gateway Service (Windows NT Server).
Password
Access the password for the shared resource.
*
Prompts to type a password. When you type a password in the password prompt line, the password is not displayed.
/user
Specifies a different user to connect to.
DomainName
Specifies another domain. For example, net use D: \servershare/user:adminmariel connect user mariel, such as
is the same as connecting from the admin domain. If the field is omitted, the current logon domain is used.
Username
Specifies the user name for the login.
/home
Connect users to their host directory.
/delete
Cancels the specified network connection. If the user specifies the connection with an asterisk, all network connections are canceled.
/persistent
Controls the use of permanent network connections. The default is the last used setting. A device-less connection is not permanent.
Yes
Saves all established connections and restores at the next logon.
No
The established and secondary connections are not saved, and the existing connections are restored at the next logon. Use the/delete switch to cancel forever
Long connection.
Net User
Add or change user accounts or display user account information.
NET user [username [password | *] [options] [/domain]
NET user Username {password | *}/add [options] [/domain]
NET user username [/delete] [/domain]
Parameters
No
Type net user with no parameters to view a list of user accounts on the computer.
Username
Add, remove, change, or view user account names. The user account name can be up to 20 characters.
Password
Assign or change a password for a user account. The password must meet the set in the Net accounts command/minpwlen option.
Minimum parameters. Up to 14 characters.
*
Prompts for a password. When you type a password in the password prompt line, the password is not displayed.
/domain
Perform operations on the primary domain controller of the computer's primary domain.
This parameter is available only on Windows NT Workstation computers that are members of a Windows NT Server domain. Default Love
Scenario, the Windows NT Server Computer performs operations on the primary domain controller.
Note: This action occurs on the primary domain controller in the computer's primary domain. It may not be a logon domain.
/add
Add a user account to the user account database.
/delete
Deletes a user account from the user account database.
The options are as follows:
/active:{no | yes}
Enable or disable user accounts. If you do not activate a user account, users cannot access resources on the computer. The default value is Y
ES (activation).
/comment: "Text"
Provides a comment for the user account. The annotation can be up to 48 characters long, with the text enclosed in quotation marks.
/countrycode:nnn
Use the country code of the operating system to provide the specified language file for user Help and error information files. A value of 0 indicates the default
Country code.
/expires:{date | never}
Setting date will cause the user account to expire and never not set a time limit on the user account. Expiration date is based on
The/countrycode value can be in the following format: Mm/dd/yy, dd/mm/yy or MMM, DD, yy. Note that the account number is specified
Expires at the beginning of the date. A month can be a number, full name, or three-letter spelling. Year can be two-or four-digit, using
Comma or slash (do not use spaces) to distinguish the parts of the date. If YY is omitted, the next time that the date arrives is used
Year (according to the computer's clock). For example, if the loss between January 10, 1994 and January 8, 1995
Into the following date items, which are the same: jan,9
1/9/95
january,9,1995
1/9
/fullname: "Name"
Specify the user's full name instead of the user name. Enclose the name in quotation marks.
/homedir:path
Sets the path of the user host directory. The path must exist.
/homedirreq:{yes | no}
Sets whether the host directory is required.
/passwordchg:{yes | no}
Specifies whether the user can change his or her password. The default value is yes.
/passwordreq:{yes | no}
Specifies whether the user account requires a password, and the default value is yes.
/profilepath:[path]
Sets the path to the user logon profile. The pathname points to the registry configuration file.
/scriptpath:path
Sets the path for the user logon script. Path cannot be an absolute path;
Path is a relative path relative to the%systemroot%system32replimportscripts:.
/times:{times | all}
Specify when users are allowed to use the computer. The Times value is expressed as day[-day][, Day[-day], time[-time
[, Time[-time], an increment limit of one hour. Days can be full or abbreviated (M, T, W, Th, F, Sa, S
u). Hours can be a 12-hour or 24-hour system. For 12-hour values, use AM, PM, or a.m, p.m
。 All indicates that the user can always log on. A null value indicates that the user can never log on. Separating dates and times with commas, separating time
The units between and dates are separated by semicolons (for example, m,4am-5pm; T,1PM-3PM). Do not use spaces when specifying/times.
/usercomment: "Text"
Have the administrator add or change the user annotation for the account number. Enclose the text in quotation marks.
/workstations:{computername[,...] | *}
Lists workstations for up to eight users who can log on to the network. Separate multiple items in the list with commas. If/workstat
Ions does not have a list, or if the list is an asterisk "*", the user can log on from any computer.
Net View
Displays a list of domains, lists of computers, or shared resources for a specified computer.
NET view [\computername |/domain[:d Omainname]
NET VIEW/NETWORK:NW [\ComputerName]
Parameters
No
Type net view with no parameters displays a list of computers in the current domain.
\ComputerName
Specifies the computer for which you want to view shared resources.
/domain[:d Omainname]
Specifies the domain for which you want to view the available computers. If DomainName is omitted, all domains of the network are displayed.
/network:nw
Displays all available servers in the NetWare network. If the computer name is specified, the meter in the NetWare network is displayed
The available resources for the computer. You can also use this switch to specify other networks that are added to the system.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.