Reapply Default SYSVOL Security Settings
Updated: April 25, 2011
Applies To: Windows Server 2008, Windows Server 2008 R2
When you relocate the entire SYSVOL directory, you can use a robocopy command that transfers all security settings with the files when you copy them. Therefore, when you use the procedure in Administering the Windows Time Service to relocate SYSVOL, updating security settings is not required.
However, if security settings are in question, you can use this procedure to reapply the default security settings to SYSVOL folders. The settings will be the equivalent of the settings that are set by default during installation of Active Directory Domain Services (AD DS). If additional security settings have been applied to SYSVOL folders since AD DS was installed, you must reapply those settings manually after you complete this procedure.
|Failure to reapply security changes that were made after AD DS was installed might result in unauthorized access to logon and logoff scripts and Group Policy objects (GPOs).|
Membership in Domain Admins, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (http://go.microsoft.com/fwlink/?LinkId=83477).
Open Notepad, and then enter the following information:
Description=default perms for sysvol
Use this file to apply the security settings to the new SYSVOL folders.
Note Do not include a space between the sets of parentheses.
Save this file as Sysvol.inf.
Open a new Command Prompt. Do not use an existing command prompt that has been open on your desktop because it will not have the proper environment settings. Change the directory to the folder where you saved the Sysvol.inf file in step 11.
At the new command prompt, type the following command all on one line, and then press ENTER:
secedit /configure /cfg <path>\sysvol.inf /db <path>\sysvol.db /overwrite
Performs directed configurations.
/cfg <path> (to security template)
Specifies the path where you saved Sysvol.inf in step 11.
/db <path> (to database)
Specifies the path to the database that is used to perform the security configuration. This should be the new path for the SYSVOL folder.
Specifies that the database should be emptied before it is imported into the security template. If this parameter is not specified, the settings in the security template are accumulated into the database. If this parameter is not specified and there are conflicting settings in the database and the template that is being imported, the template settings take precedence.
Click Y to confirm the overwrite.