How to manage Windows has turned on network connections

Source: Internet
Author: User
Tags fully qualified domain name
Remove all network connections that are already open: net use */d
To open a network connection using a command: NET use //192.168.0.29/user:administrator

The following are all reference documents for the net use command (excerpted from Windows Help) net use

Connect a computer to a shared resource or disconnect it, or display information about a computer connection. This command also controls persistent network connections. If used without parameters, net use retrieves a list of network connections. Grammar

Net use [{devicename | *}] [{//ComputerName[/sharename[/Volume]]] | [http://ComputerName/sharename[/Folder]}] [{Password | *}]] [/user:[domainname/]username] [/user:[dotteddomainname/]username] [/user: [UserName@dotteddomainname] [/savecred] [/smartcard] [{/ Delete | /persistent: {Yes | no}}]

Net use [DeviceName [/home] [{Password | *}] [/delete:{Yes | no}]]

Net use[/persistent:{Yes|No}]ParametersDeviceName assigns a name to connect to a resource or specify a device to disconnect. There are two device names: disk drives (that is, from D: to Z:) and printers (that is, from LPT1: to LPT3:). Type an asterisk (*) to assign the next available device name instead of the specified device name.//ComputerName/SHARENAME specifies the name of the server and the shared resource. If ComputerName contains spaces, enclose the entire computer name in quotes, starting with the//Starts at the end of the computer name, such as"//Computer Name/Share Name")。 The computer name can have 1 to 15 characters. If/sharename is omitted, the connection attempts to connect to the ipc$ share./Volume the NetWare volume on the specified server. NetWare Client Service must be installed and running to connect to a NetWare server.http://ComputerName/sharename[/Volume] Specifies the name of the WebDAV server and the shared resource. If ComputerName contains spaces, enclose the entire computer name in quotation marks, from the HTTP prefix (http://) to the end of the computer name. PASSWORD Specifies the password required to access the shared resource. Typing an asterisk (*) will give you a hint of the password. The password is not displayed when you type the password at the password prompt Xia Chu./userSpecifies the other user name with which to establish a connection. This parameter cannot be used with/savecred. domainname specifies the other domain. If DomainName is ignored, theNet useThe domain you are currently logged on to will be used. USERNAME Specifies the user name to use when logging in. DOTTEDDOMAINNAME specifies a fully qualified domain name for the domain in which the user account resides./savecredIf the user is prompted for a password, store the credentials provided for reuse. This parameter cannot be used with/smartcard or/user./smartcardSpecifies that the network connection will use credentials on the smart card. If more than one smart card is available, you will be asked to specify credentials. This parameter cannot be used with/savecred./deleteCancels the specified network connection. If you specify a connection with an asterisk (*), all network connections are canceled./persistent:{Yes|NoControls the use of persistent network connections. The default value is the last set used. A device-less connection is not permanent.YesAll connections are saved after the connection is completed and restored at the next logon.NoDo not save the completed connection or subsequent connection. The existing connection will be restored the next time you log on. Use/deleteDeletes a permanent connection./homeConnect the user to the home directory.Net HelpCommand Displays the specifiedNetThe help of the command.NotesUseNet useYou can connect to and disconnect from network resources and view connections that are currently connected to network resources. If you use it as the current drive, or if an active process is using it, you should not disconnect from the shared directory. To view information about a connection, you can do any of the following: typeNet useDeviceName to get information about a particular connection. TypeNet useGets a list of all computer connections. A device-less connection is not permanent. After you install and run the NetWare Client service, you can connect to a NetWare server on the Novell network. Use the same syntax that you used to connect to the Windows networking server, but you must include the volume you want to connect to. If the supplied ServerName contains spaces, use quotation marks around the text (that is,"Server Name")。 If you omit quotation marks, an error message appears.Sample

To assign the disk drive device name E: to the letters shared directory on the//financial server, type:

net use e://financial/letters

To assign (map) the disk drive device name M: to the Directory on the letters volume on the//financial NetWare server, type:

net use m://financial/letters/mike

To connect the user identifier Dan, as if the connection was completed from the "Accounts" field, type:

net use D://server/share/user:accounts/dan

To use the Passport account UserName@passport.com the disk drive device name F: Assign (map) to a package in the MSN Internet access community called TargetName, type:

net use f:http://www.msnusers.com/targetname/user:username@passport.com

To disconnect from the//financial/public directory, type:

net use f://financial/public/delete

To connect to a resource memo that is shared on a//financial 2 server, type:

net use K: "//financial 2"/memos

To restore the current connection every time you log on without considering future changes, type:

NET Use/persistent:yes

Related Article

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.