Windows: "net use" equivalent that shows the username used to mount a share?

Posted by Jeroen Wiert Pluimers on Super User See other posts from Super User or by Jeroen Wiert Pluimers
Published on 2012-07-10T07:51:16Z Indexed on 2012/07/10 9:17 UTC
Read the original article Hit count: 251

Filed under:
|

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.

© Super User or respective owner

Related posts about Windows

Related posts about network-shares