Reputation: 74654
I'd like to enable my standard user account (i.e. not elevated) to be able to call CreateSymbolicLink.
However, on Win8, even adding "Everyone" to the SeCreateSymbolicLinkPrivilege ("Create Symbolic Links" in secpol.msc) under local group policy still results in STATUS_PRIVILEGE_NOT_HELD. Why?
Upvotes: 29
Views: 9754
Reputation: 74654
It is indeed UAC, as Christian suspected.
MSDN: Windows Vista Application Development Requirements for User Account Control Compatibility:
What privileges the filtered token contain are based on whether the original token contained any of the restricted RIDS listed above (ed: AKA if you're a non-elevated Admin). If any of the restricted RIDs were in the token, all of the privileges are removed except:
- SeChangeNotifyPrivilege
- SeShutdownPrivilege
- SeUndockPrivilege
- SeReserveProcessorPrivilege
- SeTimeZonePrivilege
Upvotes: 24