大网数据广告活动
域与目录服务

Reset user rights in the default domain GPO

· 52CE 我爱测

Describes how to reset user rights in the default domain Group Policy object (GPO) in Windows Server.

This article describes how to reset user rights in the default domain Group Policy object (GPO) in Windows Server.

Applies to:   Supported versions of Windows Server
Original KB number:   324800

Summary

The default domain GPO contains many default user-rights settings. Sometimes, if you change the default settings, unexpected restrictions may be put on user rights. If the changes are unexpected or if the changes were not recorded so that you do not know which changes were made, you may have to reset the user-rights settings to their default values.

Reset User Rights for the Default Domain GPO

To restore user rights to use the default settings for the default domain GPO, follow the procedures that are described in this section in the order that they are presented.

Warning: Make sure that you use caution when you perform the following procedures. If you configure the GPO template incorrectly, you may cause your domain controllers to be inoperable.

Edit the Gpttmpl.inf File

To edit the Gpttmpl.inf file, follow these steps.

Important: Back up the Gpttmpl.inf file before you perform this procedure.

  1. Start Windows Explorer and open the following folder, where <Sysvol_path> is the path of the Sysvol folder:

    <Sysvol_path>\Sysvol\<DomainName>\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT\SecEdit

    [!NOTE] The default path of the Sysvol folder is %SystemRoot%\Sysvol.

  2. Right-click Gpttmpl.inf, and then select Open.

  3. To completely reset the user rights to the default settings, replace the existing information in the Gpttmpl.inf file with the following default user-rights information. To do so, paste the following text in the appropriate section of your current Gpttmpl.inf file:

    [Unicode]
    Unicode=yes  
    [System Access]  
    MinimumPasswordAge = 1  
    MaximumPasswordAge = 42  
    MinimumPasswordLength = 7  
    PasswordComplexity = 1  
    PasswordHistorySize = 24  
    LockoutBadCount = 0  
    RequireLogonToChangePassword = 0  
    ForceLogoffWhenHourExpire = 0  
    ClearTextPassword = 0
    LSAAnonymousNameLookup = 0  
    [Kerberos Policy]  
    MaxTicketAge = 10  
    MaxRenewAge = 7  
    MaxServiceAge = 600  
    MaxClockSkew = 5  
    TicketValidateClient = 1
    [Registry Values]
    MACHINE\System\CurrentControlSet\Control\Lsa\NoLMHash=4,1  
    [Version]  
    signature="$CHICAGO$"  
    Revision=1
    
  4. On the File menu, select Save, and then select Exit.

Edit the Gpt.ini File

The Gpt.ini file controls the GPO template version numbers. You must edit the Gpt.ini file to increase the GPO template version number. To do so:

  1. Start Windows Explorer and open the following folder, where <Sysvol_path> is the path of the Sysvol folder: <Sysvol_path>\Sysvol\Domain\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}

    [!NOTE] The default path of the Sysvol folder is %SystemRoot%\Sysvol.

  2. Right-click Gpt.ini, and then select Open.

  3. Increase the version number to a number that is sufficient to guarantee that typical replication does not outdate the new version number before the policy is reset. Increment the number either by adding the number "0" to the end of the version number or the number "1" to the beginning of the version number.

  4. On the File menu, select Save, and then select Exit.

Use GPUpdate to Refresh the Group Policy

Apply the new GPO by using the GPUpdate tool to manually reapply all policy settings. To do so:

  1. Select Start, and then select Run.
  2. In the Open box, type cmd, and then select OK.
  3. At the command prompt, type GPUpdate /Force, and then press <kbd>Enter</kbd>.
  4. Type exit and then press <kbd>Enter</kbd> to quit the command prompt.

Note: To look for errors in policy processing, review the event log.

Use Event Viewer to verify that the GPO was successfully applied. To do so:

  1. Select Start, point to Administrative Tools, and then select Event Viewer.
  2. Select Application.

Look for Event ID 1704 to verify that the GPO was successfully applied.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。