简体   繁体   中英

script for Local Security Policy

I'm looking for some guidance on how to automat applying a set of permissions withn the local security policy to a multiple users on multiple servers.

For example, via a script, I want to apply "act as part of the operating system" and "adjust memoroy quotas for a process" to user TEST1 and TEST2.

Any feedback on how to get started would be appreciated. thanks!

From a command line, the Microsoft-provided solution is secedit. AppDeploy is a great resource for packaging in general, and they have a good page on secedit here: http://www.osdeploy.com/tips/detail.asp?id=23

In short, change your policies using the Local Security Settings MMC snap-in, then export with secedit as in this page ( http://www.webservertalk.com/message534715.html -- also assuming this computer isn't a member of a domain), then import as usual.

Is this machine domain joined? If so, you'll need to make sure no domain policies are applied. Otherwise the domain policies will be exported along with the local ones.

Simpler answer here:

Scripting Local Security Policy

Use ntrights.exe from the Windows 2003 Resource Kit.

However, this doesn't seem to help with the "adjust memory quotas for a process" right.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM