net use [{DeviceName | *}] [\\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName
UserName] [/user: [UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]
net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]
net use [/persistent:{yes | no}]
Here are several examples I use a lot
To connect the user UserName as if the connection were made from the DomainName domain
net use \\ServerName /u:DomainName\UserName
Similar as the one above, but also assign (map) the disk-driver device name z: to the directory letters
net use z: \\ServerName\letters /u:DomainName\UserName
To restore the current connections at each logon, regardless of future changes (use it with extreme caution)
net use /persistent:yes
To disconnect from the \\Financial\Public directory and delete cached credential of the server Financial
net use f: \\Financial\Public /delete
To disconnect from all connected networks and delete all cached credential
net use * /d
Of course, log out the current the user is the easiest way to delete all cached credential of shared network. However, when you don't the condition to perform a logout, net use * \d becomes handy!
The IPC$ share is used with temporary connections between clients and servers by using named pipes for communication among network programs. It is primarily used for to remotely administer network servers. I tried to use net use z: \\ServerName\$IPC /delete, but got error message - the solution from google search is "I have to logoff"! Any suggestion? Windows right-click trick did not work - I cannot find the "Stop sharing" item ...

- 作者:cail
- 版权声明:署名-非商业性使用-禁止演绎 CC BY-NC-ND 3.0
- 原文网址:http://en.dogeno.us/?p=6632
- 最后修改时间:2010年3月4日 09:41 PDT
Previous:
小虎队 现身 2010 CCTV (春晚+元宵晚会)
Next:
Skiing and Tree Skiing in Heavenly, Lake Tahoe
blog by cail
- » the Paper Link - my latest Creation for PubMed users
- » How to use ImageJ to analyze images?
- » 2shRNA - design oligos for RNAi
- » Play background music
- » about this blog
- » about me
Hot in 'How-To'
- analog - analog/digital - digital, VGA - DVI - HDMI - 74,662 views
- Ez-12 windsurfer antenna - 54,088 views
- Import custom ringtones to iPhone via iTunes (no jailbreaking required) - 47,126 views
- How to add new ringtones to iPhone - 42,524 views
- Use GParted to align partitions on a SSD hard drive for better performance - 41,039 views
Leave a Reply