Command Syntax

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

Alter net account settings with then Net Account command.
NET ACCOUNTS [/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length]

[/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days]

[/UNIQUEPW:number] [/DOMAIN]

Add other networked computers with Windows Domain Controller.
NET COMPUTER \\computername {/ADD | /DEL}
Show current server or workgroup settings.
NET CONFIG [SERVER | WORKSTATION]
Continues the use of service.
NET CONTINUE [service]
Show opened shared files on the server.
NET FILE [id [/CLOSE]]
Add, delete, view, and manage network workgroups.
NET GROUP [groupname [/COMMENT:”text”]] [/DOMAIN]

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

groupname username […] {/ADD | /DELETE} [/DOMAIN]

Add, delete, view, and manage network groups.
NET LOCALGROUP [groupname [/COMMENT:”text”]] [/DOMAIN]

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

groupname name […] {/ADD | /DELETE} [/DOMAIN]

Create or delete name used for messaging.
NET NAME [name [/ADD |
/DELETE]]
Pause the specified network service.
NET PAUSE [service]
Manage network print jobs.
NET PRINT \\computername\sharename

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

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.
NET SEND {name | * | /DOMAIN[:name] | /USERS} message
Show all sessions connected to the computer and deletes them if specified.
NET SESSION [\\computername] [/DELETE]
Create and manage a local network share.
NET SHARE sharename

sharename=drive:path [/USERS:number | /UNLIMITED]

[/REMARK:”text”]

[/CACHE:Manual | Documents| Programs | None ]

sharename [/USERS:number | /UNLIMITED]

[/REMARK:”text”]

[/CACHE:Manual | Documents | Programs | None]

{sharename | devicename | drive:path} /DELETE

Start the specified network service.
NET START [service]
Show network statistics of the workstation or server.
NET STATISTICS [WORKSTATION | SERVER]
Stop the specified network service.
NET STOP service
Show the time and date of another network computer.
NET TIME [\\computername
| /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]

[\\computername] /QUERYSNTP

[\\computername] /SETSNTP[:ntp server list]

Connects or disconnects your computer from a shared resource or displays information about your connections.
NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]

[/USER:[domainname\]username]

[/USER:[dotted domain name\]username]

[/USER:[username@dotted domain name]

[/SMARTCARD]

[/SAVECRED]

[[/DELETE] | [/PERSISTENT:{YES | NO}]]

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

NET USE [/PERSISTENT:{YES | NO}]

Show users on the computer and/or domain.
NET USER [username
[password | *] [options]] [/DOMAIN]

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

username [/DELETE] [/DOMAIN]

Show a list of computers in a specified workgroup or the shared resources available on a specified computer.
NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]]

NET VIEW /NETWORK:NW [\\computername]

Written by Hemant Patel

Hemant, hailing from Bhopal, Madhya Pradesh, India, is a web developer and occasional blogger passionate about exchanging ideas and addressing problems in his coding journey.

This article has 2 comments