Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my understanding of security, an administrator should be able to view all connections to and from a computer - just as they can view all processes/owner, network connections/owning process. However, Windows 8 seems to have disabled this.

As administrator running an elevated in Win Vista+ when you run net use you get back all drives mapped, listed as unavailable. In Windows 8, the same command run from an elevated prompt returns "There are no entries in the list". The behavior is identical for powershell Get-WmiObject Win32_LogonSessionMappedDisk.

A workaround for persistent mappings is to run Get-ChildItem Registry::HKU*\Network*. This does not include temporary mappings (in my particular example it was created through explorer on an administrator account and I did not select "Reconnect at sign-in")

Is there a direct/simple way for Administrator to view connections of any user (short of a script that runs under each user context)? I have read Some Programs Cannot Access Network Locations When UAC Is Enabled but I do not think it particularly applies.

I have seen this answer, but it still does not address non-persistent drives How can I tell what network drives users have mapped?

share|improve this question
    
Does the Powershell Cmdlet Get-SmbMapping help? –  Ryan Ries Oct 29 '13 at 23:54
    
No, same result. I also tested it on Win7 last night (wrong version of powershell) and it gives the same results when you get an elevated prompt through a standard user. –  kskid19 Oct 30 '13 at 13:09
    
A command with a more verbose output is wmic netuse. You'll likely want to write this to a file and open it as tab-separated values. –  Jason Nov 12 '13 at 22:58

1 Answer 1

On Windows 7, if UAC is enabled and you open Command Prompt with "Run as Administrator", you won't see the mapped drives either. On Windows 8, you'll notice that even when UAC is disabled, you still have to "Run as Administrator".

The reason why Administrator doesn't see the mapped drives is explained in the Technet article you linked. In a nutshell, you are running with only an Administrator token, and the mapped drives are given to the Standard user token. Windows 7 with UAC disabled runs the Command Prompt with both tokens.

The resolution in that article also works with Windows 8. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System, create a DWORD value of EnableLinkedConnections, set it to 1, and restart.

Administrator Command Prompt

share|improve this answer
    
This addresses viewing the drives if you are the administrator on the system and the user at the same time. What about viewing non-persistent connections of any user on a system/network? (Which is why I asked here instead of superuser) –  kskid19 Nov 26 '13 at 5:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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