Windows XP syntax
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
NET ACCOUNTS | Adjust account settings. [/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length] |
NET COMPUTER | Add other networked computers with Windows Domain Controller. \\computername {/ADD | / |
NET CONFIG | Displays your current server and/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] |
NET LOCALGROUP | Add, delete, view, and otherwise manage network groups. [groupname [/COMMENT:"text"]] [/DOMAIN] |
NET NAME | Create or delete name used for messaging. [name [/ADD | /DELETE]] |
NET PAUSE | Pause the specified network service. [service] |
NET PRINT | Manage network print jobs. \\computername\sharename |
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 |
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] |
NET USE | Connects or disconnects your computer from a shared resource or displays information about your connections. [devicename | *] [\\computername\sharename[\volume] [password | *]] |
NET USER | Displays users on the computer and/or domain. [username [password | *] [options]] [/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 CONFIG | Displays your current workgroup settings. NET CONFIG [/YES]
| ||||||||||||||||||||||||||
NET DIAG | Runs the Microsoft Network Diagnostics program to test the hardware connection between two computers and to display information about a single computer.
| ||||||||||||||||||||||||||
NET HELP | Displays information about NET commands and error messages. command /?
| ||||||||||||||||||||||||||
NET INIT | Loads protocol and network-adapter drivers without binding them to Protocol Manager. This command may be required if you are using a third-party network-adapter driver. You can then bind the drivers to Protocol Manager by typing NET START NETBIND. NET INITIALIZE [/DYNAMIC]
| ||||||||||||||||||||||||||
NET LOGOFF | Breaks the connection between your computer and the shared resources to which it is connected. NET LOGOFF [/YES]
| ||||||||||||||||||||||||||
NET LOGON | Identifies you as a member of a workgroup. NET LOGON [user [password | ?]] [/DOMAIN:name] [/YES] [/SAVEPW:NO]
If you would rather be prompted to type your user name and password instead of specifying them in the NET LOGON command line, type NET LOGON without options. | ||||||||||||||||||||||||||
NET PASSWORD | Changes your logon password. NET PASSWORD [oldpassword [newpassword]]
The first syntax line above is for changing the password for your password-list file. The second syntax line above is for changing your password on a Windows NT or LAN Manager server or domain. | ||||||||||||||||||||||||||
NET PRINT | Displays information about print queues and controls print jobs. NET PRINT \\computer[\printer] | port [/YES]
When you specify the name of a computer by using the NET PRINT command, you receive information about the print queues on each of the shared printers that are connected to the computer. | ||||||||||||||||||||||||||
NET SEND | NET SEND {name | * | /DOMAIN[:name] | /USERS} message 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 SHARE | NET SHARE sharename
| ||||||||||||||||||||||||||
NET START | Starts services. NOTE: Services cannot be started from a command prompt within Windows. NET START [BASIC | NWREDIR | WORKSTATION | NETBIND | NETBEUI | NWLINK] [/LIST] [/YES] [/VERBOSE]
To start the workgroup redirector you selected during Setup, type NET START without options. In general, you don't need to use any of the options. | ||||||||||||||||||||||||||
NET STOP | Stops services. NOTE: Services cannot be stopped from a command prompt within Windows.
To stop the workgroup redirector, type NET STOP without options. This breaks all your connections to shared resources and removes the NET commands from your computer's memory. | ||||||||||||||||||||||||||
NET TIME | Displays the time on or synchronizes your computer's clock with the shared clock on a Microsoft Windows for Workgroups, Windows NT, Windows 95, or NetWare time server. NET TIME [\\computer | /WORKGROUP:wgname] [/SET] [/YES]
| ||||||||||||||||||||||||||
NET USE | Connects or disconnects your computer from a shared resource or displays information about your connections. NET USE [drive: | *] [\\computer\directory [password | ?]] NET USE drive: | \\computer\directory /DELETE [/YES] NET USE drive: | * /HOME
To list all of your connections, type NET USE without options. | ||||||||||||||||||||||||||
NET VER | Displays the type and version number of the workgroup redirector you are using. NET VER | ||||||||||||||||||||||||||
NET VIEW | Displays a list of computers in a specified workgroup or the shared resources available on a specified computer. NET VIEW [\\computer] [/YES]
To display a list of computers in your workgroup that share |
net use z: \\computer\folder
Map the Z: drive to the network path //computer/folder.
net send mrhope "There is hope!"
Send a text message to the computer with a host name of mrhope the message There is hope!. Note: This command only works for Windows versions that support this command.
Note: Many computers today have also disabled the messenger service, if this service is disabled you will be unable to send/receive net send messages. Additional information about how this service is disabled can be found on document CH0000519. If you need this service enabled, follow the instructions on this page and choose to enable the service instead of disabling it.
net send * "There is hope!"
The above command would send There is hope! to all users in your current domain. This command should be used with caution since if you're on a school or work network many of the computers on that network if not all well be sent a message if the messenger service is enabled on the computers.
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
0 C0Mm3nTs:
Posting Komentar