Virindi Posted April 19, 2004 Share Posted April 19, 2004 Hi all,I'd like to apply a local security policy template, sometime during install.Here's what I've dug up so far:1) To create a security template, I found instructions here:http://appdeploy.com/tips/detail.asp?id=222) After creating and saving said template, I found it in:C:\WINDOWS\security\templates\CustomXP.inf3) I copied the policy template to \temp, and tried following the instructions to apply the template:http://appdeploy.com/tips/detail.asp?id=23Here is where I'm running into problems; every time I try to apply the template, it doesn't appear to work - it just pops up with the help menu.c:\> Secedit /configure /db secedit.sdb /cfg"c:\temp\customxp.inf" /silent >nulc:\> Secedit /refreshpolicy machine_policy /enforce /quietI think if I can get these steps to work, I can maybe put this in cmdlines.txt and have it auto-apply the local security policy template during install. If there is someone out there that is more familiar with policies, I would really appreciate some help with this -J Link to comment Share on other sites More sharing options...
pup Posted April 19, 2004 Share Posted April 19, 2004 I hope it's this simple - but don't you have to use '/quiet' not '/silent' (on the first secedit call)? Link to comment Share on other sites More sharing options...
Virindi Posted April 20, 2004 Author Share Posted April 20, 2004 Thanks for the reply - the extra set of eyes really helped. This worked:C:\>secedit /configure /db secedit.sdb /cfg customxp.inf /quiet >nulThen, I wanted to force the system to apply the new policy immediately (hopefully when cmdlines.txt is read, so way before the user logs in). It turns out they have moved away from secedit and to "gpupdate" to force applying policy:C:\>gpupdate /forceRefreshing Policy...User Policy Refresh has completed.Computer Policy Refresh has completed.I didn't want any output text, so I changed it a tiny bit to:C:\>gpupdate /force >nulI'm going to try putting the appropriate commands and paths into cmdlines.txt, to see if this works out. It looks like it will! Thanks again for the reply.-J Link to comment Share on other sites More sharing options...
pup Posted April 20, 2004 Share Posted April 20, 2004 No problems,Glad it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now