2

When I type net use as Admin on my Windows 7 Machine, I see no shared drives mounted. However, there are drives connected by users. When I start the windows cmd shell with one of these users, I see these drives listed with net use.

How do you list the drives mounted by all users on Windows 7?

oz123
  • 1,338
  • 5
  • 18
  • 34

2 Answers2

5

The net use command refers to the currently logged in user(*). Nothing more, nothing less.

It is possible to authenticate as another user as part of a net use command of course, but that's about as multi-user as it gets.

The NET command is an old lan manager command, essentially, and commands like net use are designed to allow a user to manage their connections, not a sysadmin to manage a machine.

Rob Moir
  • 32,154
3

This really probably belongs on SuperUser, but:

You could write a script that searches through the HKEY_USERS hive in the registry. In particular, the HKEY_USERS\<UserSID>\Network has keys for each drive mapped.

Rex
  • 7,945