Hacker (eight)----NET command

Source: Internet
Author: User
Tags net command net time net send

NET command is a network-based command that is powerful and can manage local and remote information such as the network environment, services, users, and logins. Common NET commands are mainly net
View, net user, net use, net time, net share, and net send.

1. NET view

This command is used to display a list of domains, a list of computers, or a shared resource for a specified computer . The format is:

NET view[\\computername][/domain[:D Omainname]]

-[\\computername]: Specifies the computer for which you want to view shared resources;

-[/domain[:D Omainname]: Specifies the domain for which you want to view the available computers.

When you enter a net view command without parameters, you can use it to view all the computer names in the current domain.

    • View all computers in the current domain

NET view

Note: server name and comment

When you use the net VIEW command to view your computer, the server name and comments are computer names and descriptive information that are displayed in the System window.

    • View shared resources for a specified computer

NET view \\192.168.31.3

2. NET USE command

This command is used to establish a connection to a shared resource that is disconnected from the computer. Format:

NET use[devicename|*][\\computername\sharename[\volume][password|*]][/user:[domainname\]username][[/delete]|[ /persistent:{yes|no}]]

[devicename|*]: Connect or disconnect the current computer with the specified name of the device. There are typically two types of device names: Disk drives (D: to Z:) and Printers (LPT1: to LPT3:)

\\computername: The computer name of the shared resource, if the name contains null characters, you need to enclose the double backslash (\ \) with the computer name in quotation marks (""). The maximum length of a computer name is 15 characters;

\sharename: Refers to the name of the workgroup or domain where the resource is shared;

\volume: Specifies the drive letter of the shared resource on the computer where the resource is shared;

Password: Refers to the password required to access the shared resource.

*: Password prompt. When a password is entered at the password prompt, the password is not displayed;

[Domainname\]: Specifies the name of the domain where the shared resource computer resides. Default setting is the current computer's domain;

Username: Specifies the user name of the login;

/delete: Cancels a network connection and removes the connection from the list of persistent connections;

/persistent: Controls the use of persistent network connections. The default value is the most recently used setting. Yes indicates that the setting is saved when the connection is made and the connection is replied by default at the next logon, no means that no established or later connections are saved, and existing connections are automatically resumed at the next logon.

3. NET user command

This command is used to create and modify user accounts on the computer . Format:

NET user[username[password|*][options]][/domain]username{password|*}/add[options][/domain]username[/delete][/ DOMAIN]

Username: Indicates the name of the user account that needs to be added, deleted, changed, or viewed;

Password: Used to set or change the password for a user account. It has a maximum length of 14 characters;

/add: Add an account to the local computer;

/delete: Delete the account on the local computer;

/DOMAIN: Indicates that the operation is performed on the primary domain controller of the computer's primary domain.

4. NET TIME command

This command allows the current computer's clock to synchronize with the time of another computer or domain. Command format:

NET time[\\computername|/domain[:D omainname]|/rtsdomain[:D Omainname]][/set]

\\ComputerName: Specifies the name of the server to check or synchronize with;

/domain[:D Omainname]: Specifies the name of the domain to synchronize the clock with;

/rtsdomain[:D Omainname]: Specifies the name of the domain where the trusted time server is to synchronize the clock with;

/set: Synchronizes the computer's clock with the time specified by the computer or domain

Hacker (eight)----NET command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.