Create symbolic links in shared folders without administrator priviledges using new Windows 10 Developer Mode
|Reported by:||asmala||Owned by:|
|Component:||shared folders||Version:||VirtualBox 6.0.8|
|Guest type:||Linux||Host type:||Windows|
Starting with Windows 10 Insiders build 14972 symlinks can be created without needing to elevate the console as administrator. The prerequisite is to enable Developer Mode, and after that any user on the machine can
- Run the
mklinkcommand without elevating a command-line console
- Use CreateSymbolicLink API if additional dwFlags option
SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATEis set to
Since even after enabling the Developer Mode VirtualBox has to be run as Administrator in order to create symlinks in shard folders, I assume the method 2 i.e. API calls are used to create them.
My enhancement request: Please add the
SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE to the API call when creating symlinks to shared folders under Windows 10 so Administrator priviledges are not required when Developer Mode is enabled.