Net Command
Net Command
The net command is used to update, fix, or view the network or network settings. Listed in the Syntax
are each of net commands.
[SERVER | WORKSTATION]
NET CONTINUE Continues the use of service.
[service]
NET FILE Display opened shared files on the server.
[id [/CLOSE]]
NET GROUP Add, delete, view, and otherwise manage network workgroups.
[\\computername] [/DELETE]
NET SHARE Create and manage a local network 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
NET START Start the specified network service.
[service]
NET STATISTICS Display network statistics of the workstation or server.
[WORKSTATION | SERVER]
NET STOP Stop the specified network service.
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.
Net examples
net localgroup
Display all groups currently setup on the computer you're running the command on.
net share
Display all network shares on your computer.