Заметки сисадмина » Windows 8 Issue with Drive Mapping and UAC Enabled (EnableLinkedConnections)

Заметки сисадмина о интересных вещах из мира IT, инструкции и рецензии. Настраиваем Компьютеры/Сервера/1С/SIP-телефонию в Москве

Windows 8 Issue with Drive Mapping and UAC Enabled (EnableLinkedConnections)

2013-08-22 · Posted in Windows - 8

Do a fresh install – Vanilla Settings. No customization except for the Computer Name.

1) “Disable” UAC by going into User Account Control settings and dragging the slider to the bottom. (I’m aware this doesn’t completely disable UAC. Completely disabling UAC in the registry kills the App ecosystem, which is something I’m hoping to avoid)

2) Enable Linked Connections by creating a DWORD named EnableLinkedConnections with a value of 1 inHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

3) Reboot the computer.

4) Open a command prompt and map H: to something (If you don’t have a network in your test environment, map it to \\localhost\c$\windows) – net use h: \\localhost\c$\windows

5) In the same command prompt, change to H:, and do a DIR and see the contents of the folder as expected. (In my example, I get the contents of c:\windows)

6) Open a command prompt, but this time, Open as Administrator.

7) Run a “net use” and verify that the drive mapping is there. (Should see H: mapped)

8) Change to H: do a DIR and see that the contents are actually the root folder of the drive mapping. (In my example, dir h: lists everything in c:\ and not c:\windows)

9) Figuring this was a minor glitch, I decided to map the H: drive as administrator. (In the command prompt, net use h: /delete, then net use h: \\localhost\c$\windows – awesome. Now dir h: in the admin prompt works. Then, I go back to the non admin prompt and dir h: gives me a listing of the root directory again!

This is completely broken! There are many applications that need drive letter access to be consistent between security contexts from a “Run as Administrator” standpoint. This USED to work in Windows Vista and 7.

I know that turning off UAC using the registry (EnableLUA to 0) fixes this, but what’s the point of Windows 8 if all the apps tell me that they won’t run under the admin account? It just becomes an ugly version of Windows 7 with a bunch of non-functional icons.

I also realize that I could completely disable “EnableLinkedConnections” and double-map each drive, but that’s a pretty crappy workaround to accomplish something simple that’s always just worked. I get that it could make the system more vulnerable, but it’s Opt-In. I have to turn off UAC, I have to create a registry key, so it’s not something I’ve done accidentally.

Leave a Reply