SoFunction
Updated on 2025-04-11

NT's 19 Secret Weapons


NET commands are a powerful tool in Windows NT. Although it must be executed in command line mode, its functions do cover most important management functions in Windows NT. For example, it can manage the network environment, the operation and configuration of various service programs, user and login management, etc. It can also view a lot of local information about the server. NET commands are also included in Windows 98, but they are much less functional than in NT.
You can obtain help information for NET commands through the following two methods:Copyright

(1) Under NT, you can use the graphical method, go through the Start menu > Help > Index, and then enter NET.

(2) You can also enter NET /? or NET or NET HELP in the command line to get its function (COMMAND) list, and then get help information for the corresponding function through the NET COMMAND/HELP or NET HELP COMMAND or NET COMMAND/? command.

When using NET commands, it is important to note that some of its commands will be effective immediately and permanently saved, so be careful when using them.

Here are some preliminary introductions to the basic usage of different parameters of NET commands:

1. NET VIEW  

Function: Displays a field list, a computer list, or a list of shared resources for a specified computer.

Command format: net view [\\computername |/domain[:domainname]]

Parameter introduction:

(1) Type a net view without parameters to display the computer list of the current domain.

(2)\\computername Specifies the computer whose shared resources you want to view.

(3)/domain[:domainname] specifies the domain of which computers you want to view.

Give an example:

(1)net view \\XIAOHU View XIAOHU’s shared resource list.

(2)net view /domain:MYDOMAIN View the list of machines in the MYDOMAIN domain.

2. NET USER  

Function: Add or change user account or display user account information. This command can also be written as net users.

Command format: net user [username [password | *] [options]] [/domain]

Parameter introduction: (1) Type net user without parameters to view the user account list on the computer.

(2) Add, delete, change or view username.

(3) Password assigns or changes passwords to user accounts.

(4)* Prompt to enter your password.

(5)/domain performs operations in the primary domain controller of the primary domain of the computer.

Give an example: (1) net user xiaohu to view user XIAOHU information.

3. NET USE  

Function: Connect the computer or disconnect the computer from shared resources, or display the computer's connection information.

Command format: net use [devicename | *] [\\computername\sharename[\volume]] [password | *]] [/user:[domainname\]username] [[/delete] | [/persistent:{yes | no}]]

Parameter introduction: (1) Type net use without parameters to list the network connection.

(2) devicename specifies the resource name to connect to or the device name to be disconnected.

(3)\\computername\sharename server and shared resources name.

(4) Password access to the password password.

(5)* Prompt to type your password.

(6)/user specifies another user to connect.

(7) domainname specifies another domain.

(8) username specifies the logged-in username.

(9)/home connects the user to its host directory.

(10)/delete Cancel the specified network connection.

(11)/persistent controls the use of permanent network connections.

Give an example:

(1)net use e: \\XIAOHU\TEMP Create the \\XIAOHU\TEMP directory as E disk.

(2)net use e: \\XIAOHU\TEMP /delete disconnected.

4. NET TIME  

Function: Synchronize the computer's clock with the time of another computer or domain.

Command format: net time [\\computername |/domain[:name]] [/set]

Parameter introduction:

(1)\\computername The server name to be checked or synchronized.

(2)/domain[:name] specifies the domain to be synchronized with its time.

(3)/set synchronizes the clock of this computer with the clock of the specified computer or domain.

The following 4 parameters are related, so we will introduce them together:

5. Net Start  

Function: Start the service, or display a list of started services.

Command format: net start service

6. Net Pause  

Function: Suspend the running service.

Command format: net pause service

7. Net Continue  

Function: Reactivate pending service.

Command format: net continue service

8. NET STOP  

Function: Stop Windows NT network service.

Command format: net stop service

Parameter introduction:

(1) alertter (alarm)

(2) client service for netware(Netware client service)

(3) clipbook server (scrapbook server)

(4) computer browser (computer browser)

(5) directory replicator (directory copyist)

(6)ftp publishing service (ftp )(ftp issuance service)

(7)lpdsvc  

(8)net logon (network login)

(9) network dde(network dde)Copyright

(10) network dde dsdm(network dde dsdm)

(11) network monitor agent (network monitoring agent)

(12)nt lm security support provider(NT LM security support)

(13)ole(Object linking and embedding)

(14)remote access connection manager(remote access connection manager)

(15) remote access isnsap service (remote access isnsap service)

(16) remote access server (remote access server)

(17)remote procedure call (rpc) locator(remote procedure call locator)

(18)remote procedure call (rpc) service(remote procedure call service)

(19)schedule(schedule)

(20)server(server)

(21)simple tcp/ip services (simple TCP/IP services)

(22)snmp  

(23)spooler (spooler print program)

(24)tcp/ip netbios helper(TCP/IP NETBIOS auxiliary tool)

(25)ups  

(26)workstation(workstation)

(27) messenger (messenger)

(28)dhcp client  

(29)eventlog  

9. Net Statistics  

Function: Displays statistical records of local workstation or server services.

Command format: net statistics [workstation | server]

Parameter introduction: (1) Type net statistics without parameters to list the running services available for its statistical information.

(2) Workstation displays statistical information of local workstation services.

(3) The server displays statistical information of the local server service.

Give an example: net statistics server | more displays statistical information of server services.

10. Net Share  

Function: Create, delete, or display shared resources.

Command format: net share share name=drive:path [/users:number | /unlimited] [/remark:"text"]

Parameter introduction: (1) Type net share without parameters to display information about all shared resources on the local computer.

(2) Sharename is the network name of the shared resource.

(3) drive:path specifies the absolute path to the shared directory.

(4)/users:number sets the maximum number of users that can access shared resources at the same time.

(5)/unlimited does not limit the number of users accessing shared resources at the same time.

(6)/remark:"text "Add comments about resources, and the comment text is enclosed in quotation marks.

Give an example: (1)net share mymydomain=c:\temp /remark:"my first share"C:\temp with mymydomain as the shared name.

(2)net share mymydomain/delete stop sharing the mymydomain directory.

11. Net Session  

Function: List or disconnect the sessions of the local computer and the client connected to it, or write it as net sessions or net sess.

Command format: net session [\\computername] [/delete]

Parameter introduction: (1) Type the net session without parameters to display information about all sessions with the local computer.

(2)\\computername identifies the computer to be listed or disconnected.

For example: net session \\XIAOHU To display a list of client session information with the computer named XIAOHU.

12. Net Send  

Function: Send messages to other users, computers or communication names on the network.

Command format: net send {name | * |/domain[:name] |/users} message

Parameter introduction: (1) name: the user name, computer name or communication name to receive the message sent.

(2)*Send the message to all names in the group.

(3)/domain[:name] sends the message to all names in the computer domain.

(4)/users sends the message to all users connected to the server.

(5) Message is sent as the text of the message.

Give an example: (1)net send /users server will shutdown in 5 minutes Send shutdown messages to all users connected to the server.

13. Net Print  

Function: Display or control the print job and print queue.

Command format: net print [\\computername ] job# [/hold |/release |/delete]

Parameter description: (1) Computername shared the computer name of the printer queue.

(2) sharename prints the queue name.

(3) job# The identification number assigned to the print job in the printer queue.

(4)/hold When using job#, make the print job wait in the printer queue.

(5)/release releases the reserved print job.

(6)/delete Delete the print job from the printer queue.

Give an example: (1)net print \\XIAOHU\SEEME List the directory of the SEEME printer queue on the \\XIAOHU computer.

14. Net Name  

Function: Add or delete a message name (sometimes also called an alias), or display a list of names of messages received by the computer.

Command format: net name [name [/add |/delete]]

Parameter introduction: (1) Type net name without parameters to list the currently used name.

(2) name specifies the name of the received message.

(3)/add adds the name to the computer.

(4)/delete Removes the name from the computer.

15. Net Localgroup  

Function: Add, display, or change local groups.

Command format: net localgroup groupname {/add [/comment:"text "] | /delete} [/domain]

Parameter introduction: (1) Type net localgroup without parameters to display the server name and the computer's local group name.

(2) The local group name to be added, expanded or deleted by groupname.

(3)/comment: "text "Add comments for new or existing groups.

(4)/domain performs operations in the main domain controller of the current domain, otherwise only performs operations on the local computer?

(5)name [ ...] Lists one or more user names or group names to be added to or removed from the local group.

(6)/add adds the global group name or user name to the local group.

(7)/delete Removes the group name or user name from the local group.

Give an example: (1) net localgroup mydomain/add adds a local group named mydomain to the local user account database.

(2)net localgroup mydomain displays users in the local group of mydomain.

16. Net Group  

Function: Add, display or change global groups in the Windows NT Server domain.

Command format: net group groupname {/add [/comment:"text "] | /delete} [/domain]

Parameter introduction: (1) Type a net group without parameters to display the server name and the server group name.

(2) Groupname to add, expand or delete.

(3)/comment:"text "Add a comment for a new or existing group.

(4)/domain performs this operation in the main domain controller of the current domain, otherwise performs the operation on the local computer?

(5) The username[ ...] list displays one or more users to be added to or removed from the group.

(6)/add to add a group or add a username to the group.

(7)/deleteDelete or delete the username from the group.

For example: net group mydomain xiaohu1 xiaohu2 /add adds the existing user accounts xiaohu1 and xiaohu2 to the mydomain group of the local computer.

17. Net Config  

Function: Displays the currently running configurable service, or displays and changes the settings of a service.

Command format: net config [service [options]]

Parameter introduction: (1) Type net config without parameters to display a list of config services.

(2) Service is configured with the service (server or workstation) through the net config command.

(3) Specific options for options service.

18. Net Computer  

Function: Add or delete computers from the domain database.

Command format: net computer \\computername {/add |/del}

Parameter description: (1)\\computername Specifies the computer to be added to or removed from the domain.

(2)/add adds the specified computer to the domain.

(3)/del deletes the specified computer from the domain.

For example: net computer \\cc /add adds computer cc  to the login domain.

19. Net Accounts  

Function: Update the user account database, change password and login requirements for all accounts.

Command format: net accounts [/forcelogoff:{minutes | no}] [/minpwlen:length] [/maxpwage:{days | unlimited}] [/minpwage:days] [/uniquepw:number] [/domain]

Parameter introduction: (1) Type net accounts without parameters to display the current password settings, login time limit and domain information.

(2)/forcelogoff:{minutes|no} Set when the user account or valid login time expires.

(3)/minpwlen:length Set the minimum number of characters for the user account password.

(4)/maxpwage:{days|unlimited} Set the maximum number of days for which the user account password is valid.

(5)/minpwage:days sets the minimum number of days when the user must keep the original password.

(6)/uniquepw: When a number requires that the user change his password, it must be reused after number times.

Same password as it.Copyright

(7)/domain performs this operation on the main domain controller of the current domain.

(8)/sync When used in the primary domain controller, this command synchronizes all backup domain controllers in the domain.

For example: net accounts /minpwlen:7 sets the minimum number of characters of the user account password to 7.