Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Mapped Network Drives are Not Available in Elevated Apps

July 20, 2026

Mapped Network Drives are Not Available in Elevated Apps

If you use mapped network drives (folders), you’ve probably noticed that they aren’t showing up in programs (including the CMD and PowerShell prompts), then those apps are running with administrator privileges. This is because the default User Account Control (UAC) settings restrict access to mapped network drives for applications running in an elevated (Run as administrator) context. This means that when you run the command prompt or a file manager (like Total Commander) with elevated privileges, they won’t display the drive for your mapped shared folders.

Contents:
  • Mapped Drives are Not Visible in Apps Running As Administrator
  • Enable Access to Mapped Drive from Elevated Apps

You may face such a problem if the following conditions are true:

  • Network drives are mapped in the user’s session via GPO or manually using the net use command or with the New-SmbMapping cmdlet.
  • UAC is enabled on the computer (the GPO parameter User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode is set to the default value “Prompt for credentials”).UAC GPO parameter - prompt for elevation
  • The current user has local administrator permissions on the computer and runs the app in “Run as administrator” mode.
Consequently, the opposite is also true. A network drive mapped from the command prompt or an app running as an administrator will not be visible from a normal (unprivileged) user session.

In this post, I will demonstrate how to allow access to mapped network drives from programs running with administrative privileges in Windows.

Important. It is strongly not recommended to completely disable UAC, even for a specific program

Mapped Drives are Not Visible in Apps Running As Administrator

Let’s check that you cannot access the mapped network drive connected in normal mode from an elevated application with UAC enabled. For example, let’s open a command prompt with user permissions and check if you can access the contents of the mapped network drive Z:\.

Net use
Dir z:

The command should list the contents of the shared network folder.

Can't access mapped network folder from elevated cmd

If you open the Command Prompt in the current session as an administrator and try to access the same mapped drive, you’ll receive an error stating that the drive path cannot be found.

The system cannot find the path specified.

The system cannot find the path specified.

The screenshot below shows an example of the 7Zip app with one program instance running as an administrator (elevated) and the other running with standard user rights. None of the mapped network drives are displayed in the app, which is run with administrator rights. Only local drives are available.

Mapped drives are not showing up in elevated apps that running as an administrator

This default Windows behavior can be inconvenient if you frequently run applications in privileged mode. Although it is possible to run applications without administrator privileges, this is not always applicable.

Why does it happen? This peculiarity is related to the UAC mechanism for users with local administrator privileges.  When a user with administrator privileges logs into Windows, the system creates two access tokens. One is a filtered token with disabled administrator privileges, which most programs run under. The other is a full administrator token, which is used for any process elevated through User Account Control.

When UAC is enabled, applications run by the same user may be run in two contexts: privileged and unprivileged. When you map shared network folders, the system creates symbolic links (DosDevices) that store the drive letter mapping to the UNC paths. These links are associated with the current process access token and are not available to other tokens.

Tip. You can use a simple trick to run the File Explorer in Windows with admin rights (elevated).

Enable Access to Mapped Drive from Elevated Apps

To make network drives mapped in a user session accessible to elevated apps running with administrative permissions, you must create the EnableLinkedConnections registry value on the computer:

  1. Open the registry editor (regedit.exe).
  2. Go to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. Create a new DWORD parameter with the name EnableLinkedConnections and the value 1  EnableLinkedConnections key in registry
    Tip. This registry option can be created using the command:reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLinkedConnections" /t REG_DWORD /d 0x00000001 /f or with PowerShell:
    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name EnableLinkedConnections -Value 1 -PropertyType 'DWord'
  4. Restart your computer (or restart the LanmanWorkstation service with the command: get-service LanmanWorkstation |Restart-Service –Force, and re-logon Windows).

Make sure that the user’s network drives are now visible in elevated apps running with admin privileges. Such processes are displayed in Task Manager with the property Elevated=Yes.

Access mapped drive from elevated app when EnableLinkedConnections option is enabled

This works on all versions of Windows, starting from Vista and up to Windows 11 and Windows Server 2025.

Access mapped network drive from elevated applications

This also works in reverse: any network drives mapped in the context of an elevated session will also be available in a regular (unprivileged) user session as well.

Note. Unfortunately, there is no built-in GPO option to enable the EnableLinkedConnections mode. To apply this setting to domain computers, you can deploy the specified registry parameter via GPP.

How does it work? Enabling the EnableLinkedConnections registry option causes the LanmanWorkstation service and LSA (lsass.exe) to check for a second access token associated with the current user’s session. If this token is found, the list of the mapped network drives will be copied from one token to another. This will make network drives that are mapped in privileged mode visible in normal mode, and vice versa.

Tip. As an alternative solution, you can create a symbolic link to the target shared network folder. For example, as follows:

mklink /D c:\docs \\dublin-fs1\docs

This drive can be accessed as a symlink to a local folder in both normal and elevated modes. Note that with this method, you can only access the shared folder under the current user’s credentials. It is not possible, as in the case of net use command, to use another user’s account credentials.

After enabling the EnableLinkedConnections registry option, mapped drives will be available in Scheduled Tasks running under the current user. If the scheduled task is run as LocalSystem or another user, the mapped network will be unavailable in the current user session. The reason is that network drives are mapped for each user individually (on a per-user basis).

4 comments
10
Facebook Twitter Google + Pinterest
Windows 10Windows 11Windows Server 2022Windows Server 2025
previous post
Reduce Virtual Machine Disk Size (VMDK) on VMWare ESXi
next post
How to Clean Up the WinSxS Folder on Windows

Related Reading

How to Repair Windows Boot Manager, BCD and...

March 11, 2024

PowerShell: Get Folder Size on Windows

April 2, 2024

Fix: The Computer Restarted Unexpectedly or Encountered an...

May 16, 2024

How to Download Offline Installer (APPX/MSIX) for Microsoft...

February 20, 2026

Network Computers are not Showing Up in Windows...

March 15, 2024

Windows Doesn’t Automatically Assign Drive Letters

March 15, 2024

How to Clean Up System Volume Information Folder...

March 17, 2024

Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)

March 17, 2024

4 comments

Vandrey Trindade July 19, 2018 - 6:23 pm

Great! Well explained!
I remember having a hard work to understand why my mapped drives were not appearing in the elevated prompts… Until I found a technet post that saved my life lol

Reply
Shlomi April 22, 2021 - 2:43 pm

I faced this issue before and had to change the registry parameter to solve it.
Now is more clear and understood.
Many thanks!

Reply
Damon July 15, 2022 - 8:52 pm

did not work for Quickbooks Desktop Enterprise

Reply
Ric Walker July 14, 2023 - 5:44 pm

This did not work for me. Environment: VirutalMachine: Guest: Win 10 Pro, Host: Win 10 Pro, Mapped Network Drives: “\\vmware-host\Shared Folders\*”.

I found that by creating a batch file that causes and elevated “Administrator: Command Prompt” and a All users Startup (shell:common startup”) I am able to automate the mapping. Note that the normal File Manager mapping works.

The code to get an elevated command prompt can be found at: https://stackoverflow.com/questions/11525056/how-to-create-a-batch-file-to-run-cmd-as-administrator

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Inactive TS Ports in Windows: Causes and Fixes

    July 20, 2026
  • Add Wireless Wi-Fi Profiles on Windows Devices via Export/Import or GPO

    July 13, 2026
  • CrowdSec on Windows: From Installation to Threat Blocking

    July 3, 2026
  • Manage Microsoft Store Apps with Store CLI in Windows 11 from Terminal

    July 2, 2026
  • Windows Sandbox on Windows 11: Enable, Configure, and Use

    June 10, 2026
  • How to Monitor Windows Machines with Zabbix

    May 26, 2026
  • Fixing Duplicate Security Identifier (SID) Issues in Windows

    May 25, 2026
  • Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

    May 15, 2026
  • Protect Windows Server from DDoS and Brute-Force Attacks with IPBan

    May 12, 2026
  • How to Force Uninstall ANY Stubborn Program in Windows

    May 7, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
  • How to Download Offline Installer (APPX/MSIX) for Microsoft Store App
  • How to Update Trusted Root Certificates in Windows: Manual and Automatic Methods Explained
  • Fix: Windows Cannot Connect to a Shared Printer
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top