The fact of sharing the computer with other people makes it necessary to create new user accounts. This is something that Windows itself allows us to do from the system configuration, but we can also manage our user accounts from the command prompt or CMD.
Net user is the command that will facilitate the task of creating a user account in the system. Its syntax is very simple, but we can always check it by running net user / ?. However, to create a new user account, we will have to execute:
net user User Password/add
Where User and Password, we must replace it with the username we want to create and the password to use.
This same command also allows us to enable or disable a user account; for this we will use the command as follows:
net user User / active: no or net user User / active: yes
Basic Network Commands
From the command line, it is also possible to access some network resources such as our IP address, DNS addresses, or perform some quite useful tasks at certain times, such as cleaning the DNS cache, among others.
This command allows us to know the status of the network by establishing a communication with a website, for example and checking if packet delivery is successful. Its use is very simple, just write ping followed by a site, for example, Google, and check if the necessary packages are sent and received to establish communication and navigate. Example:
ping www.google.eswww . google. it is
Ipconfig is the command that allows us to know the current TCP / IP network configuration settings, such as the name of the adapter or network card used in the connection, the IP address assigned to the device, the IP address of the device that functions as server or proxy and that is the one that has access to the internet, as well as DNS servers and DHCP configuration and status. To do this, just go to the command line, type ipconfig, and press Enter.
This command also allows us to clear the DNS cache if we use it as follows, ipconfig / flushdns. Although these are other options also used with the ipconfig command: ipconfig / all to display information on our network card, ipconfig / release releases the IP address of the adapter and ipconfig / renew, renews the IP address of the network adapter.
This command allows us to know exactly the route of the packets before reaching the destination computer, which makes it easier for us to detect possible routing failures of the packets in the connection. Its syntax is also very simple, all we have to do is write the tracert command followed by the website with which we want to check the route or IP address of the destination computer.
It is also possible to monitor the status of network activity using this command, which allows you to see network behavior easily and know the number of active connections on the PC. The syntax of the command is very simple; next to the command, we can add an option, the protocol, and the time interval with which the connections are monitored.