king_kobra
Posts: 8
Joined: Tue Feb 20, 2007 12:06 am

Local Security Policy Settings

Is there any way to have the MSI modify local security policy settings or does this have to be done through a script or .exe via a custom action? Specifically, I would like to add "LOCAL SERVICE" to the "Back up files and directories" and "Restore files and directories" setting. To do this manually in XP, I go to the Control Panel->Administrative Tools->Local Security Policy mmc app. Then I can select Local Policies->User Rights Assignment and modify the policy.

Thank you.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Local Security Policy Settings

Hi,

This can be done by using the ntrights.exe utility from the Windows Server 2003 Resource Kit Tools as a custom action. Note that "SeBackupPrivilege" is associated with the "Back up files and directories" policy and "SeRestorePrivilege" with the "Restore files and directories" policy.

Please note that the User Guide contains the Install a service for a custom user how-to which explains a similar approach that sets the "Log on as an user" policy (you can use the same method).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”