Module 5: Lab B: Designing Customized Security Templates

Exercise 1: Verifying Current Settings for DNS Dynamic Updates

Tasks Detailed Steps
  1. Load the Security Templates and Security Configuration and Analysis modules in MMC and save the console as Security Toolset.
  1. Log on to your domain as Administrator with a password of password.
  1. On the Start menu, click Run, type mmc and then click OK.
  1. On the Console menu, select Add/Remove Snap-in.
  1. In the Add/Remove Snap-in dialog box, click Add.
  1. In the Available Standalone Snap-ins list, select Security Templates, and then click Add.
  1. From the Available Standalone Snap-ins list, select Security Configuration and Analysis, click Add, and then click Close.
  1. Click OK to close the Add/Remove Snap-in dialog box.
  1. On the Console menu, select Save As.
  1. In the Save As dialog box, in the File name box, type Security Toolset and then click Save.
  1. Create a new security template named DNS Update.
  1. In the console tree, expand Security Templates.
  1. Expand C:\WINNT\Security\Templates.
  1. Right-click C:\WINNT\Security\Templates, and then click New Template.
  1. In the Template Name box, type DNS Update and then click OK.
Notice that DNS Update now appears in the listing of available templates.
(continued)
Tasks Detailed Steps
  1. Verify that there is currently no setting to disable dynamic DNS updates.
  1. Under DNS Update, expand Local Policies, and then click Security Options.
Does Prevent Dynamic DNS Updates appear in the list of security options? Why or why not?

Answer

No. Prevent Dynamic DNS Updates is not one of the default security options included in the Security Configuration Tool Set.

  1. Verify that the registry value for disabling dynamic updates for DNS does not currently exist in the Registry Editor.
  1. On the Start menu, click Run, type Regedt32 and then click OK.
  1. In the Registry Editor, maximize the HKEY_LOCAL_MACHINE on Local Machine window.
  1. In the HKEY_LOCAL_MACHINE window, navigate to the following registry key:
    \System\CurrentControlSet\Services\Tcpip\Parameters
Does the registry value DisableDynamicUpdate exist in the list of Transmission Control Protocol/Internet Protocol (TCP/IP) parameters? Why or why not?

Answer

No. The registry value is not included by default in the list of TCP/IP parameters. A full description of this registry value can be found in the regentry.chm file that is included in the Windows 2000 Resource Kit.

  1. (continued)
  1. Close all open windows.

Exercise 2: Extending the Security Configuration Tool Set

Tasks Detailed Steps
  1. Configure the view options to show hidden files and open the Sceregvl.inf file in the c:\moc\win2150a\labfiles folder.
  1. On the Start menu, click Programs, then click Accessories, and then click Windows Explorer.
  1. On the Tools menu, select Folder options.
  1. In the Folder Options dialog box, click the View tab.
  1. In Advanced settings, under Hidden files and folders, click Show hidden files and folders.
  1. In Advanced settings, under Files and Folders, clear the Hide file extensions for known file types check box, and then click OK.
  1. In the directory tree, expand My Computer, expand Local Disk (C:), expand moc, expand win2150a, and then click labfiles.
  1. In the details pane, double-click sceregvl.inf.
Notepad loads and displays the file Sceregvl.inf
What line was added to the [Register Registry Values] sections by the outside consultant?

Answer

MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\DisableDynamicUpdate,4,
%Nodynamic%,0

Tasks Detailed Steps
Examine the display type for the new registry entry. How will the Security Configuration Tool Set display this option?

Answer

Boolean (0). The Security Configuration Tool Set will only provide the option to either enable or disable the registry setting.

What function does the %Nodynamic% setting perform? What will be displayed in the Security Configuration Tool Set for the new security option?

Answer

The %Nodynamic% setting refers to the display name to be read from the [Strings] section. In the Security Configuration Tool Set, the new option will be listed as Prevent Dynamic DNS Updates.

  1. Save the modified version of the Sceregvl.inf file to the C:\WINNT\inf folder.
  1. On the File menu, click Save As.
  1. In the File name box, type c:\winnt\inf\sceregvl.inf and then click Save.
  1. In the Save As dialog box, click Yes to replace the existing copy of the file.
  1. Close Notepad.
  1. Re-register the scecli.dll dynamic link library to implement the new security configuration settings.
  1. Click Start, and then click Run.
  1. Type regsvr32 scecli.dll and then click OK.
  1. In the RegSvr32 box, click OK.
  1. In the Security Toolset console that you created in exercise 1, verify that an option to Prevent Dynamic DNS Updates now exists for Security Options in the DNS Update template.
  1. On the Start menu, click Programs, click Administrative Tools, and then click Security Toolset.
  1. In the console tree, expand Security Templates, and then expand c:\winnt\Security\Templates.
  1. Expand DNS Update, expand Local Policies, and then click Security Options.
Tasks Detailed Steps
Does a policy to Prevent Dynamic DNS Updates now exist? Why or why not?

Answer

Yes. Re-registering the scecli.dll dynamic link library imported the Prevent Dynamic DNS Updates option into the Security Configuration Tool Set.

  1. (continued)
  1. Double-click the Prevent Dynamic DNS Updates policy.
What values can be set for the Prevent Dynamic DNS Updates policy? Where did these values come from?

Answer

The dialog box allows the ability to define the policy setting in the template. After the value is defined, it can either be enabled or disabled due to the configuration of the display type as Boolean (0).

How do you use this security configuration template to add the registry value to the TCP/IP parameters in the registry of the Windows 2000 Professional-based computers?

Answer

The security template would have to be applied to the computer by using either local policy or Group Policy before it is applied to the registry.

  1. (continued)
  1. Click OK.
  1. Close all open windows.

Exercise 3: Configuring the Security Template

Tasks Detailed Steps
  1. In the Security Toolset console created in exercise 1, configure the DNS Update template to enable the Prevent Dynamic DNS Updates policy.
  1. On the Start menu, click Programs, click Administrative Tools, and then click Security Toolset.
  1. In the console tree, navigate to Security Templates|c:\WINNT\Security\Templates|DNS Update|Local Policies|Security Options.
  1. In the details pane, double-click Prevent Dynamic DNS Updates.
  1. In the Template Security Policy Setting dialog box, select the Define this policy setting in the template check box, click Enabled, and then click OK.
The option to prevent DNS dynamic updates is now enabled in the DNS Update security template.
  1. Save the changes to the DNS Update security template.
  1. In the console tree, right-click DNS Update, and then click Save.

Exercise 4: Applying the DNS Update Security Template

Tasks Detailed Steps
  1. In Security Configuration and Analysis, create a security database based on the DNS Update security template.
  1. If necessary, expand the Security Toolset console.
  1. In the console tree, click Security Configuration and Analysis.
  1. Right-click Security Configuration and Analysis, and then click Open database.
  1. In the Open database dialog box, type security in the File name box, and then click Open.
  1. In the Import Template dialog box, click DNS Update, and then click Open.
  1. Analyze your current security configuration against the DNS Update security template.
  1. Right-click Security Configuration and Analysis, and then click Analyze Computer Now.
  1. In the Perform Analysis dialog box, click OK to accept the default security log settings.
The Analyzing System Security dialog box displays the progress as the analysis proceeds.
  1. In the console tree, expand Security Configuration and Analysis, expand Local Policies, and then click Security Options.
What is the current computer setting for Prevent Dynamic DNS Updates?

Answer

Not Available. This means that the setting is not configured at all on the current computer.

Tasks Detailed Steps
  1. Verify that the registry value HKEY_LOCAL_MACHINE\
    System\CurrentControlSet\ Services\Tcpip\Parameters\ DisableDynamicUpdate does not exist.
  1. Click Start, and then click Run
  1. In the Run box, type Regedt32 and then click OK.
  1. In the Registry Editor, maximize the HKEY_LOCAL_MACHINE on Local Machine window.
  1. In the HKEY_LOCAL_MACHINE window, navigate to the following registry key:
    \System\CurrentControlSet\Services\Tcpip\Parameters
  1. Verify that the DisableDynamicUpdate value does not exist.
  1. Minimize Registry Editor.
What needs to be done to have the registry value set on the current computer?

Answer

The local computer must be configured to apply the DNS Update security template.

  1. Configure your computer to match the DNS Update security template.
  1. In the Security Toolset console, right-click Security Configuration and Analysis, and then click Configure Computer Now.
  1. In the Configure System dialog box, click OK to accept the default security log settings.
The Configuring System Security dialog box displays the progress as the configuration proceeds.
  1. Verify that your computer now meets the security template.
  1. Right-click Security Configuration and Analysis, and then click Analyze Computer Now.
  1. In the Perform Analysis dialog box, click OK to accept the default security log settings.
The Analyzing System Security dialog box displays the progress as the analysis proceeds.
  1. In the console tree, expand Security Configuration and Analysis, expand Local Policies, and then click Security Options.
What is the current computer setting for Prevent Dynamic DNS Updates?

Answer

Enabled. The current computer setting is set to disable dynamic DNS updates.

Tasks Detailed Steps
  1. Verify that the registry entry HKEY_LOCAL_MACHINE\
    System\CurrentControlSet\ Services\Tcpip\Parameters\ disabledynamicupdate now exists.
  1. Restore the Registry Editor.
  1. In the HKEY_LOCAL_MACHINE window, navigate to the following registry key:
    \System\CurrentControlSet\Services\Tcpip\Parameters
  1. Verify that the disabledynamicupdate value now exists.
Although the Sceregvl.inf file capitalized this entry as DisableDynamicUpdate, the registration process stores this value as disabledynamicupdate.
What potential disadvantage is there with deploying the security template by using Security Configuration and Analysis?

Answer

If the registry is edited, the changes will be lost on the local computer. To ensure that the policy is always set, the security template must be deployed by using Group Policy to ensure that the policy is maintained on all computers in the OU, domain, or site where the GPO is deployed.

  1. (continued)
  1. Close all open windows.

Exercise 5: Reversing the Dynamic Update Setting in the Security Template

Tasks Detailed Steps
  1. Save the DNS Update security template as Enable DNS Update.
  1. On the Start menu, click Programs, click Administrative Tools, and then click Security Toolset.
  1. In the console tree, expand Security Templates, and then expand c:\winnt\security\templates.
  1. In the console tree, right-click DNS Update, and then click Save As.
  1. In the Save As dialog box, in the File name box, type Enable DNS Update, and then click Save.
  1. In the Security Toolset console, configure the Enable DNS Update template to enable the policy to Prevent Dynamic DNS Updates.
  1. In the console tree, navigate to Security Templates|c:\WINNT\Security\Templates|Enable DNS Update|Local Policies|Security Options.
  1. In the details pane, double-click Prevent Dynamic DNS Updates.
  1. In the Template Security Policy Setting dialog box, ensure that the Define this policy setting in the template check box is selected.
  1. Click Disabled, and then click OK.
This disables the option to prevent DNS dynamic updates in the DNS Update security template.
  1. In the console tree, right-click Enable DNS Update in the console tree, and then click Save.

Exercise 6: Importing a Security Template into Group Policy

Tasks Detailed Steps

Important:
The following steps must be performed on only one of the partner computers.
  1. Open Active Directory Users and Computers.
  1. Ensure that you are logged on as the Administrator of your domain with a password of password.
  1. On the Start menu, click Programs, click Administrative Tools, and then click Active Directory Users and Computers.
Where must Group Policy be applied to only affect domain controllers?

Answer

If the default OUs are used, Group Policy must be applied at the Domain Controllers OU to only affect domain controllers.

  1. Import the DNS Update security template into the Security Settings for the Default Domain Controllers Policy.
  1. In the console tree, if necessary, expand domain.nwtraders.msft (where domain is the NetBIOS name of your domain), and then select Domain Controllers.
  1. Right-click Domain Controllers, and then click Properties.
  1. In the Domain Controllers Properties dialog box, on the Group Policy tab, ensure that the Default Domain Controllers Policy is selected, and then click Edit.
  1. In Group Policy, expand Computer Configuration if necessary, expand Windows Settings, and then click Security Settings.
  1. Right-click Security Settings, and then click Import Policy.
  1. In the Import Policy From dialog box, select Enable DNS Update, and then click Open.
Tasks Detailed Steps
  1. Verify that the Prevent Dynamic DNS Updates policy is disabled.
  1. In the console tree, expand Security Settings, expand Local Policies, and then click Security Options.
  1. Verify that the Prevent Dynamic DNS Updates policy is set to Disabled.
  1. Close all open windows.

Important:
The remaining steps must be performed on both partner computers.
  1. Force replication between both partner computers to ensure that the modified Group Policy is replicated.
  1. Open Active Directory Sites and Services from the Administrative Tools menu.
  1. If necessary, expand Sites, expand Default-First-Site-Name, expand Servers, expand computer (where computer is the NetBIOS name of your computer), and then click NTDS Settings.
  1. Right-click the connection object that represents the link to your partner's computer, and then click Replicate Now.
  1. In the Replicate Now dialog box, click OK.
  1. Close Active Directory Sites and Services.
  1. Force the application of the Group Policy to your computer by using secedit.
  1. Click Start, click Run, type cmd and then click OK.
  1. At the command prompt, type secedit /refreshpolicy MACHINE_POLICY /enforce and then press ENTER.
A message appears stating that Group Policy propagation from the domain has been initiated for this computer.
  1. Close the command prompt window.
  1. Verify in Local Security Settings that the effective setting for the Prevent Dynamic DNS Updates policy is disabled.
  1. On the Start menu, click Programs, click Administrative Tools, and then click Local Security Policy.
  1. In the console tree, expand Local Policies, and then click Security Options.
  1. In the details pane, ensure that the Prevent Dynamic DNS Updates policy is set to Disabled in the Effective Settings column.
Why is the Local Setting column for the Prevent Dynamic DNS Updates policy set to Not Defined?

Answer

The DNS Update security template was never imported into the local security settings.

Tasks Detailed Steps
If the local security policy is set to enable the Prevent Dynamic DNS Updates policy, and the Default Domain Controllers Policy is set to disable the Prevent Dynamic DNS Updates policy, what would be the effective setting on a domain controller?

Answer

The effective setting for a domain controller would be for the setting to be disabled. This is because policies are applied in the following order: local policy, site policy, domain policy, and then OU policies. The OU policy will always override contradictory settings in a local policy.

  1. (continued)
  1. Close all open windows and log off the computer.

 

©2000 Microsoft Corporation. All rights reserved. Legal Notices.
Last Updated: June 20, 2000