Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


June 2005

Creating a Security Template


RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Ask the Experts

We have a server configured with exactly the security settings we want. However, we didn't configure the settings from within a security template. Is there any way to capture all the settings so that they're documented and can be repeated for other servers or to rebuild this server if necessary?

The Secedit command's /export function has an option called /mergedpolicy that should give you just what you need. Without the /mergedpolicy option, the /export function exports a security database to a security template .inf file. But when you specify /mergedpolicy, Secedit uses the computer's effective settings as the data for the security template it builds. For each policy, Secedit exports the effective setting, whether it comes from the computer's local Group Policy Object (GPO) or from a GPO in Active Directory (AD). Policies undefined in both the local GPO and AD GPOs are set to Windows' default settings, which are typically documented in Windows' Help facility.

For example, if you enter the command

secedit /export /mergedpolicy
 /cfg c:\baseline.inf

you'll get a security template named baseline.inf with all the computer's current defined settings. These include system services, registry and file permissions, and other policies that don't show up in the computer's local GPO but are available for configuration in security templates and in AD GPOs.

The /generaterollback function is similar to /mergedpolicy. When you use the /generaterollback function with Secedit, the utility compares the policies defined in your new template with the computer's current effective settings and creates a "rollback" security template. The only difference I've found between /mergedpolicy and /generaterollback is that /generaterollback doesn't support file and registry permissions. Therefore, I recommend sticking with /mergedpolicy.

End of Article



Reader Comments
I have tried the secedit /export /mergedpolicy /cfg string (on a WXP Pro machine. But all I get is an almost empty 316 byte file with the entry "Description=Default Security Settings (Windows Professional".

What do I need to do to get this to work?

Barry Hill
hillbd@telus.net

Anonymous User June 20, 2005 (Article Rating: )


The above works on W2000. Does not work on WXP or W2003. See TechNet 897327 for a hotfix for WXP, but have to contact Microsoft to obtain!

Barry Hill hillbd@telus.net

Anonymous User June 20, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Security Summit

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing