Basic NET Commands

NET ACCOUNTS Adjust account settings.

[/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length]
[/UNIQUEPW:number] [/DOMAIN]

NET COMPUTER Add other networked computers with Windows Domain Controller.

\\computername {/ADD | /DEL}

NET CONFIG Displays your current server and/or workgroup settings.


NET CONTINUE Continues the use of service.


NET FILE Display opened shared files on the server.

[id [/CLOSE]]

NET GROUP Add, delete, view, and otherwise manage network workgroups.

[groupname [/COMMENT:”text”]] [/DOMAIN]
groupname {/ADD [/COMMENT:”text”] | /DELETE} [/DOMAIN]
groupname username […] {/ADD | /DELETE} [/DOMAIN]

NET LOCALGROUP Add, delete, view, and otherwise manage network groups.

[groupname [/COMMENT:”text”]] [/DOMAIN]
groupname {/ADD [/COMMENT:”text”] | /DELETE} [/DOMAIN]
groupname name […] {/ADD | /DELETE} [/DOMAIN]

NET NAME Create or delete name used for messaging.

[name [/ADD | /DELETE]]

NET PAUSE Pause the specified network service.


NET PRINT Manage network print jobs.

[\\computername] job# [/HOLD | /RELEASE | /DELETE]

NET SEND Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages.

You can send a message only to an name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message.

{name | * | /DOMAIN[:name] | /USERS} message

NET SESSION Display all sessions connected to the computer and deletes them if specified.

[\\computername] [/DELETE]

NET SHARE Create and manage a local network share.

sharename=drive:path [/USERS:number | /UNLIMITED]
[/CACHE:Manual | Documents| Programs | None ]
sharename [/USERS:number | /UNLIMITED]
[/CACHE:Manual | Documents | Programs | None]
{sharename | devicename | drive:path} /DELETE

NET START Start the specified network service.


NET STATISTICS Display network statistics of the workstation or server.


NET STOP Stop the specified network service.


NET TIME Display the time and date of another network computer.

[\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]
[\\computername] /QUERYSNTP
[\\computername] /SETSNTP[:ntp server list]

NET USE Connects or disconnects your computer from a shared resource or displays information about your connections.

[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[dotted domain name\]username]
[/USER:[[email protected] domain name]

NET USE {devicename | *} [password | *] /HOME


NET USER Displays users on the computer and/or domain.

[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]

NET VIEW Displays a list of computers in a specified workgroup or the shared resources available on a specified computer.

[\\computername [/CACHE] | /DOMAIN[:domainname]]
NET VIEW /NETWORK:NW [\\computername]