开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜