Privileges can also be manipulated/assigned to users in bulk using the secedit tool
- Dump system privileges:
secedit /export /cfg config.inf
. - Edit config.inf, appending the user you want to have a given privilege to that privilege’s assignment line (comma-delineated list).
- Re-import the system privileges:
secedit /import /cfg config.inf /db config.sdb & secedit /configure /db config.sdb /cfg config.inf