2

The command:

NET USE

Will display open connections by any process of current user. But, if command prompt (cmd.exe, or any shell) is non-elevated, it would display only connections opened by non-elevated processes. To see shares open by elevated processes, we need to use Command Prompt elevated.

How to view all shares/connections opened by same user (i.e. current user) - irrespective of elevation of processes which opened the remote share (for example, from (non-elevated) Windows Explorer) ?

3

There isn't built-in functionality to do what you're looking for. The elevated context's "mappings" are separate from the limited-user context, as you're seeing. You could write a script to perform the NET USE as both the limited and elevated contexts and concatenate the results, but there's no single API or command-line tool that I'm aware of that does what you're looking for.

  • How to write such script, that runs elevated as well as non elevated? A Batch file, A PowerShell script? – Ajay Nov 24 '14 at 15:40
  • Whatever you're comfortable with. I'd use a batch script (because I'm lazy). I like to use this little snippet of code to cause my batch files to prompt for elevation: stackoverflow.com/a/12264592 – Evan Anderson Nov 24 '14 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.