.netuse (Control Network Connections)
The .netuse command adds a connection to a network share.
.netuse /a "[Local]" "Remote" "[User]" "[Password]"
Parameters
/a
Adds a new connection. You must always use the /a switch.
Local
Specifies the drive letter to use for the connection. You must enclose Local in quotation marks. If you omit this parameter, you must include an empty pair of quotation marks as the parameter.
Remote
Specifies the UNC path of the share that is being connected. You must enclose Remote in quotation marks.
User
Specifies the user name of an account that is authorized to establish the connection. You must enclose User in quotation marks. If you omit this parameter, you must include an empty pair of quotation marks as the parameter.
Password
Specifies the password that is associated with the User account. You must enclose Password in quotation marks. If you omit this parameter, you must include an empty pair of quotation marks as the parameter.
Environment
Item | Description |
---|---|
Modes | User mode, kernel mode |
Targets | Live, crash dump |
Platforms | All |
Remarks
The .netuse command behaves like the net use Microsoft MS-DOS command.
If you use .netuse during a remote debugging session, this command affects the debugging server, not the debugging client.
The following example shows this command.
0:000> .netuse "m:" "\\myserver\myshare" "" ""