I'm using Windows 10 Pro 64-bit.
My application (that was run as administrator) maps a folder from D drive to a network drive Z using the Windows Network API
When I opened File Explorer, I couldn't see the Z drive. However, when I opened other applications (e.g., Visual Studio) in Admin mode and browse to This PC folder, I'm able to see the Z drive under Network Location.
Why and how to solve this issue of mapped drives not showing up straight away after being mapped?
This issue does not happen
- in Windows 7 OR
- when my application is not run as administrator OR
- after I restart explorer.exe OR
- in Open file dialog in other applications (such as Word, Paint, Visual Studio, etc.)
Note: I have EnabledLinkedConnections set to 1, EnableLUA set to 1.
One solution is to look into a program in Administrative tools called Local Security Policy and disable all the policies related to UAC in Security Settings > Local Policies > Security Options (Located in the bottom 15 policies of the list) except UAC:Behaviour..., UAC:Switch... and UAC: Virtualize...
However, I do not want to go down that route due to several issues occuring such as cannot open windows 10 app like Calculator etc.