0% found this document useful (0 votes)
63 views

Net Command

The net command is used to view, update, and manage network and network settings in Windows. It allows you to work with accounts, computers, groups, shares, sessions, and more. Some examples of what it can do include mapping network drives, viewing available computers and shares, and managing local user groups and share permissions. The syntax lists the main subcommands that can be used with net along with brief descriptions and examples of common uses.

Uploaded by

Ali Mohammad
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Net Command

The net command is used to view, update, and manage network and network settings in Windows. It allows you to work with accounts, computers, groups, shares, sessions, and more. Some examples of what it can do include mapping network drives, viewing available computers and shares, and managing local user groups and share permissions. The syntax lists the main subcommands that can be used with net along with brief descriptions and examples of common uses.

Uploaded by

Ali Mohammad
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

Windows Vista and later syntax:


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

NET ACCOUNTS Adjust account settings.

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


[/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days]
[/UNIQUEPW:number] [/DOMAIN]
NET COMPUTER Add other networked computers with Windows Domain Controller.

\\computername {/ADD | /DEL}

Can be used only on a Windows Domain Controller.


NET CONFIG Displays your current server or workgroup settings.

[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.

[groupname [/COMMENT:"text"]] [/DOMAIN]


groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname username [...] {/ADD | /DELETE} [/DOMAIN]

Can be used only on a Windows Domain Controller.


NET Add, delete, view, and otherwise manage network groups.
LOCALGROUP
[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.
[service]
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
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.

[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}]


NET USER Displays users on the computer 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]

Net examples

net use z: \\computer\folder


Map the Z: drive to the network path //computer/folder.

net config workstation


Display additional information about the network such as the computers name,
workgroup, logon domain, DNS, and other useful information.

net view \\hope


View the available computers and their shared resources you may use either of the below
commands. The first example displays available computers. The last command would display the
shared resources on the hope computer.

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.

net share hope=c:\hope\files


Create a share called "hope" for the "c:\hope\files" directory.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy