RunasCs icon indicating copy to clipboard operation
RunasCs copied to clipboard

EnableAllPrivileges can be optimized

Open antonioCoco opened this issue 2 years ago • 0 comments

The current implementation of EnableAllPrivileges() enable a list of hardcoded privileges by their names.

The code should be refactored to dynamically retrieves the privileges from the token leveraging the function GetTokenPrivileges() and enables only the disabled ones.

antonioCoco avatar Dec 02 '23 18:12 antonioCoco