Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Group Policy logon scripts do not run in Windows 7 or in Windows Server 2008 R2


View products that this article applies to.

Symptoms

Consider the following scenario in an Active Directory domain environment:
  • You deploy logon scripts by using Group Policy.
  • You set logon scripts to run synchronously.
  • You try to log on to a client computer that is running Windows 7 or Windows Server 2008 R2.
In this scenario, the logon scripts do not run before the logon process.

↑ Back to the top


Cause

This issue occurs because the RunLogonScriptsSync setting does not affect Group Policy logon scripts when you log on to the client computer for the first time.

No Group Policy Objects are applied for the first-time logon process. Therefore, no registry entries for script synchronicity exist. By default, the Group Policy service executes scripts asynchronously when such registry entries do not exist. Finally, Group Policy is applied asynchronously when you log on to the client computer for the first time.

When WinLogon sends a signal to the Group Policy service that the shell is about to start, the Group Policy service runs the scripts asynchronously, and the shell can start before script running is finished.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem that is described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not exist, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:
  • Windows 7
  • Windows 7 with Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 with Service Pack 1 (SP1)
For more information about how to obtain a Windows 7 service pack or a Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

976932

Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information notes
  • The files that apply to a specific product, milestone (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table:
    VersionProductMilestoneService branch
    6.1.760
    0.16xxx
    Windows 7 and Windows Server 2008 R2RTMGDR
    6.1.760
    0.20xxx
    Windows 7 and Windows Server 2008 R2RTMLDR
    6.1.760
    1.21xxx
    Windows 7 and Windows Server 2008 R2SP1LDR
  • GDR service branches contain only those fixes that are widely released to address widespread, very important issues. LDR service branches contain hotfixes in addition to widely released fixes.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are very important to maintaining the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Gpapi.dll6.1.7600.1638579,87214-Jul-200901:15x86
Gpsvc.dll6.1.7600.20969591,87219-May-201105:33x86
Gpapi.dll6.1.7600.1638579,87214-Jul-200901:15x86
Gpsvc.dll6.1.7601.21730593,40819-May-201106:04x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Gpapi.dll6.1.7600.1638596,76814-Jul-200901:40x64
Gpsvc.dll6.1.7600.20969776,70419-May-201105:56x64
Gpapi.dll6.1.7600.1638596,76814-Jul-200901:40x64
Gpsvc.dll6.1.7601.21730777,72819-May-201105:51x64
Gpapi.dll6.1.7600.2096979,87219-May-201105:33x86
Gpapi.dll6.1.7601.2173079,87219-May-201106:04x86
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Gpapi.dll6.1.7600.20969168,96019-May-201105:00IA-64
Gpsvc.dll6.1.7600.209691,323,00819-May-201105:00IA-64
Gpapi.dll6.1.7601.21730168,96019-May-201104:59IA-64
Gpsvc.dll6.1.7601.217301,323,00819-May-201104:59IA-64
Gpapi.dll6.1.7600.2096979,87219-May-201105:33x86
Gpapi.dll6.1.7601.2173079,87219-May-201106:04x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about how to use startup, shutdown, logon, and logoff scripts, visit the following Microsoft TechNet website:

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684

Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7
File nameUpdate.mum
File versionNot applicable
File size2,773
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameX86_0cbea2865c7fc3b1ad23d67bdd5481bf_31bf3856ad364e35_6.1.7601.21730_none_7b9d7b9e4b8a6b87.manifest
File versionNot applicable
File size704
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameX86_fcdaff831377c0f214e18d1e64fffa4b_31bf3856ad364e35_6.1.7600.20969_none_8a75ee2cbbf44c57.manifest
File versionNot applicable
File size704
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameX86_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_289cff4b615ffa7d.manifest
File versionNot applicable
File size135,849
Date (UTC)19-May-2011
Time (UTC)21:12
PlatformNot applicable
File nameX86_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_2a9ac97b5e762e87.manifest
File versionNot applicable
File size135,849
Date (UTC)19-May-2011
Time (UTC)21:12
PlatformNot applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_0f385b79fec965fd5225931b9bfe5244_31bf3856ad364e35_6.1.7601.21730_none_a0926530423503c7.manifest
File versionNot applicable
File size708
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_2dbc0da1ee6ed52c5afd5be10cb11731_31bf3856ad364e35_6.1.7600.20969_none_b76345a240de1ce6.manifest
File versionNot applicable
File size1,058
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_2ebbcd58044d3280b59536547f3806b6_31bf3856ad364e35_6.1.7600.20969_none_9fb6e4eb00f588f6.manifest
File versionNot applicable
File size708
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_6e332da4a5be21c2151c6744b2ae721a_31bf3856ad364e35_6.1.7600.20969_none_ed59f5f16fc327d0.manifest
File versionNot applicable
File size708
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_cc86d2b46fbe7e1f5607418c26e1146e_31bf3856ad364e35_6.1.7601.21730_none_1e63fdeda671bda7.manifest
File versionNot applicable
File size1,058
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_e2800e48541da3a3c36524398d4d7681_31bf3856ad364e35_6.1.7601.21730_none_9c81427ab8dac97e.manifest
File versionNot applicable
File size708
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameAmd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_84bb9acf19bd6bb3.manifest
File versionNot applicable
File size135,855
Date (UTC)19-May-2011
Time (UTC)21:14
PlatformNot applicable
File nameAmd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_86b964ff16d39fbd.manifest
File versionNot applicable
File size135,855
Date (UTC)19-May-2011
Time (UTC)21:14
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size4,059
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameWow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_8f1045214e1e2dae.manifest
File versionNot applicable
File size60,362
Date (UTC)19-May-2011
Time (UTC)05:53
PlatformNot applicable
File nameWow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_910e0f514b3461b8.manifest
File versionNot applicable
File size60,362
Date (UTC)19-May-2011
Time (UTC)06:27
PlatformNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File nameIa64_6e332da4a5be21c2151c6744b2ae721a_31bf3856ad364e35_6.1.7600.20969_none_913cfe63b763bf96.manifest
File versionNot applicable
File size707
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameIa64_862126545218b323c47b6964840ac306_31bf3856ad364e35_6.1.7601.21730_none_b66005583d7abfbb.manifest
File versionNot applicable
File size706
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameIa64_cbc385f15f0ee538d2126014681c2f7d_31bf3856ad364e35_6.1.7600.20969_none_31bb4676ae3503ca.manifest
File versionNot applicable
File size706
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameIa64_e2800e48541da3a3c36524398d4d7681_31bf3856ad364e35_6.1.7601.21730_none_40644aed007b6144.manifest
File versionNot applicable
File size707
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameIa64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_289ea341615e0379.manifest
File versionNot applicable
File size130,896
Date (UTC)19-May-2011
Time (UTC)18:42
PlatformNot applicable
File nameIa64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_2a9c6d715e743783.manifest
File versionNot applicable
File size130,896
Date (UTC)19-May-2011
Time (UTC)19:11
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,169
Date (UTC)19-May-2011
Time (UTC)21:04
PlatformNot applicable
File nameWow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_8f1045214e1e2dae.manifest
File versionNot applicable
File size60,362
Date (UTC)19-May-2011
Time (UTC)05:53
PlatformNot applicable
File nameWow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_910e0f514b3461b8.manifest
File versionNot applicable
File size60,362
Date (UTC)19-May-2011
Time (UTC)06:27
PlatformNot applicable

↑ Back to the top


Keywords: kb, kbautohotfix, kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 2550944
Revision : 2
Created on : 9/20/2018
Published on : 9/20/2018
Exists online : False
Views : 259