
596
Net Commands
The Net Start command
This command lets you start a networking service or display a list of all the
services that are currently running. The syntax is
net start [service]
In most cases, you’ll use this command to start a service that you’ve previ-
ously stopped with the Net Stop command. In that case, you should first
run the Net Start command without any parameters to find the name of the
service that you want to stop. Make a note of the exact spelling of the service
that you want to stop. Then, use the Net Stop command to stop the service.
When you want to restart the service, use the Net Start command again —
this time specifying the service to start.
For example, suppose that you need to stop your DNS server. Using Net
Start, you discover that the name of the service is “DNS Server,” so you use
the following command to stop it:
C:\>net stop “DNS Server”
Then, you can later use this command to restart the service:
C:\>net start “DNS Server”
The Net Statistics command
This command lists the statistics log for the local Workstation or Server
service. The syntax is
net statistics [{workstation | server}]
You can specify Workstation or Server to indicate for which service
you’d like to view statistics.
If you use Net Statistics Workstation, the following information
appears:
✦ The computer name.
✦ The date and time the statistics were last updated.
✦ The number of bytes and server message blocks (SMB) received and
transmitted.
✦ The number of read and write operations that succeeded or failed.
✦ The number of network errors.
✦ The number of sessions that failed, disconnected, or were reconnected.
✦ The number of connections to shared resources that succeeded or
failed.
56_625873-bk07ch08.indd 59656_625873-bk07ch08.indd 596 9/21/10 10:41 PM9/21/10 10:41 PM