This command is used to start a network service or to display a list of all services that are currently running. It is most often used to restart a service that was previously stopped using the Net Stop command.
First, Net Start is usually executed without parameters to view the list of active services and determine the exact name of the desired service. After that, you can stop the service and, if necessary, restart it by specifying its name.
For example, if you need to restart the DNS service, first find its exact name, then stop and restart it using the appropriate commands.
Net Statistics command
This command displays statistics on the operation of the local Workstation or Server service.
The syntax allows you to select which service you want to display data for.
For Workstation, the report displays:
- computer name;
- date and time of the last statistics update;
- number of bytes and SMB packets received and transmitted;
- successful and unsuccessful read and write operations;
- number of network errors;
- number of session failures and reconnections;
- number of successful and unsuccessful connections to shared resources.
For Server, the following is displayed:
- computer name;
- date and time of the last statistics update;
- number of sessions started and completed, including emergency shutdowns;
- amount of data transferred and received, average response time;
- number of password errors and access violations;
- number of accesses to shared files, printers, and communication devices;
- number of times the memory buffer size was exceeded.
Net Stop command
This command can be used to stop a network service. To use it correctly, you need to specify the exact name of the service in advance, usually via Net Start. If there are spaces in the name, enclose it in quotation marks.
A stopped service can be restarted later using Net Start.
Net Time command
This command is used to synchronize the computer’s system time with the clock of another device.
There are several ways to use it:
- synchronizing the time with another computer in the domain or workgroup;
- linking the time to the domain or RTS time domain;
- using an NTP server to set or request synchronization parameters.
- This allows you to automatically maintain the correct time on your workstation.
Net Use command
This command is used to connect to or disconnect from shared resources on another computer. It allows you to assign a drive letter or device name to a network resource.
With its help, you can:
- connect to a network folder or printer;
- specify a username and password for access;
- save credentials for reuse;
- connect using a smart card;
- create or delete persistent connections;
- view a list of all active network connections.
For example, you can assign a specific drive letter to a network folder, make the connection permanent, or, conversely, delete it.