Windows: "net use" equivalent that shows the username used to mount a share?
- by Jeroen Wiert Pluimers
Sometimes you need to use different credentials to map different shares, for instance
net use z: \\myserver\myshare /user:mydomain\myusername mypassword
You can use net use to show you the shares that are mapped, but it does not show the mydomain\myusername.
What can I use to show that information?
I'm looking for output like this from the imaginary command NetUseX:
H:\>NetUseX
New connections will be remembered.
Status Local Remote Username Network
----------------------------------------------------------------------------------------------------------
OK D: \\MyServer1234\SomeData MyServer1234\MyUserA Microsoft Windows Network
Unavailable E: \\MyServer4321\SomeApps MyDomain\MyUserB Microsoft Windows Network
OK H: \\MyServer4321\HomeDAta MyDomain\MyUserB Microsoft Windows Network
Disconnected W: \\MyServer6789\WorkData MyDomain\MyUserB Microsoft Windows Network
OK \\MyServer9876\Shortcuts MyServer9876\MyUserC Microsoft Windows Network
The command completed successfully.