New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolic link creation always requires elevation on Windows #7967
Comments
Am I missing something, or is this still an issue on Win 10 2004? Developer mode enabled.
|
Still an issue on Windows 10 21390.1, with developer mode activated.
|
Now new .Net API follow this. So we can consider replacing internal PowerShell code with the new API.
|
The .Net API gives "A required privilege is not held by the client", when you are an administrator and not running an elevated PowerShell. I'm on Win 10 build 19044. Powershell 7.2.7 |
Yep, still an issue:
|
Hello @microsoft-github-policy-service @iSazonov, this is still an issue. Should we to open a new issue instead of keeping this one? That can't be good “housekeeping.” |
Please I just want to create a simple symlink without requiring administrator permission. What are the security concerns about creating a symlink? Why is it required to be admin to use this tool? |
@lzybkr Can you reopen it again and stop the bot somehow? |
I don't know anything about the bot. |
Issue still exists in Windows 10 + PowerShell v7.4.2 Message $PSVersionTable prompt:
|
Creating a symbolic link does not require elevation on Windows 10 if developer mode is enabled, but only if the link is created with SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE (see the docs). PowerShell appears to not pass this flag.
Steps to reproduce
In an unelevated session:
Expected behavior
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: