Delete all opened Network Connections: net use */d
Run the following command to open the network connection: net use // 192.168.0.29/User: Administrator.
The following are all references for the net use command (from Windows Help)
Net use
Connect a computer to a shared resource or disconnect it, or display information about the computer connection. This command also controls permanent network connections. If no parameter is specifiedNet useRetrieve the network connection list.
Syntax
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}]
Parameters
-
Devicename
-
Assign a name to connect to the resource or specify the device to be disconnected. There are two device names: disk drive (from D: to Z :) and printer (from LPT1: To lpt3 :). Enter an asterisk (*) instead of the specified device name to specify the name of the next available device.
-
//
Computername
/
Sharename
-
Specify the name of the server and shared resource. If
ComputernameContains spaces. Use quotation marks to enclose the entire computer name.
//Start to the end of the computer name (for example
"//
Computer Name
/
Share Name
"). The computer name can contain 1 to 15 characters. If this parameter is omitted
/Sharename, The connection will try to connect
IPC $Share.
-
/
Volume
-
Specify the NetWare volume on the server. You must install and run the "Netware Client Service" to connect to the NetWare server.
-
Http ://
Computername
/
Sharename[
/
Volume]
-
Specify the name of the WebDAV server and shared resource. If
ComputernameContains spaces. Use quotation marks to enclose the entire computer name, that is, from the HTTP prefix (http: //) to the end of the computer name.
-
Password
-
Password required to access shared resources. Enter the asterisk (*) to prompt the password. The password is not displayed when you type the password at the password prompt.
-
/User
-
Specify other user names used to establish the connection. This parameter cannot be used with/savecred.
-
Domainname
-
Specify other domains. If you ignore
Domainname, Then
Net useThe currently logged on domain will be used.
-
Username
-
Specifies the username used for logon.
-
Dotteddomainname
-
Specifies the domain name in which the user account is located.
-
/Savecred
-
If the system prompts the user to enter the password, store the creden。 provided for reuse. This parameter cannot be used with/smartcard or/user.
-
/Smartcard
-
Specify the creden。 on the smart card to be used for network connection. If multiple smart cards are available, you are required to specify creden. This parameter cannot be used with/savecred.
-
/Delete
-
Cancels the specified network connection. If you specify a connection with an asterisk (*), all network connections are canceled.
-
/Persistent:{
Yes|
No}
-
Controls the use of permanent network connections. The default value is the last one. The connection without a device is not permanent.
YesAfter the connection is complete, all connections are saved and restored during the next logon.
NoDo not save the established connection or subsequent connection. The existing connection will be restored at next login. Use
/DeleteDelete a permanent connection.
-
/Home
-
Connect the user to the home directory.
-
NET Help
Command
-
Show specified
NetCommand help.
Note
- UseNet useYou can connect to and disconnect from network resources and view the connections to network resources. If you use it as the current drive or an active process is using it, you should not disconnect from the shared directory.
- To view information about a connection, you can perform any of the following operations:
- TypeNet use DevicenameObtain information about a specific connection.
- TypeNet useObtain the list of all computer connections.
- The connection without a device is not permanent.
- After "Netware Client Service" is installed and running, you can connect to the NetWare server on the Novell Network. Use the same syntax as that used to connect to the Windows networking server, but must include the volume to be connected.
- IfServernameContains spaces. Use quotation marks ("Server Name"). If quotation marks are ignored, an error message is displayed.
Example
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 Mike in the letters volume on the // financial NetWare server, type:
Net use M: // financial/Letters/Mike
To connect to the user ID Dan, as if the connection is completed from the "accounts" domain, type:
Net use D: // server/share/User: Accounts/Dan
To use a passport accountUsername@ Passport.com: Assign (ing) the disk drive device name fTargetnameIn the MSN Internet access community, 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 the resource memorandum shared on the // 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