Skip to content

Instantly share code, notes, and snippets.

@filimonov
Last active December 1, 2018 20:39
Show Gist options
  • Save filimonov/cd9c41f8eff1f0900312d90e51fbb081 to your computer and use it in GitHub Desktop.
Save filimonov/cd9c41f8eff1f0900312d90e51fbb081 to your computer and use it in GitHub Desktop.
Allow creating symlinks in Windows 10 Home for users
1. Download https://gallery.technet.microsoft.com/scriptcenter/Grant-Revoke-Query-user-26e259b0#content
2. powershell as admin
3.
Import-Module .\UserRights.psm1
Grant-UserRight -Account "BUILTIN\Users" -Right SeCreateSymbolicLink
Get-AccountsWithUserRight -Right SeCreateSymbolicLink
Account Right SID
------- ----- ---
BUILTIN\Users SeCreateSymbolicLinkPrivilege S-1-5-32-545
BUILTIN\Administrators SeCreateSymbolicLinkPrivilege S-1-5-32-544
# logout / login
λ whoami /priv
export MSYS=winsymlinks:nativestrict
git clone -c core.symlinks=true ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment