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.

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.

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:

http://support.microsoft.com/contactus/?ws=supportNote 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:

    Version

    Product

    Milestone

    Service branch

    6.1.760
    0.16xxx

    Windows 7 and Windows Server 2008 R2

    RTM

    GDR

    6.1.760
    0.20xxx

    Windows 7 and Windows Server 2008 R2

    RTM

    LDR

    6.1.760
    1.21xxx

    Windows 7 and Windows Server 2008 R2

    SP1

    LDR

  • 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 name

File version

File size

Date

Time

Platform

Gpapi.dll

6.1.7600.16385

79,872

14-Jul-2009

01:15

x86

Gpsvc.dll

6.1.7600.20969

591,872

19-May-2011

05:33

x86

Gpapi.dll

6.1.7600.16385

79,872

14-Jul-2009

01:15

x86

Gpsvc.dll

6.1.7601.21730

593,408

19-May-2011

06:04

x86

For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2

File name

File version

File size

Date

Time

Platform

Gpapi.dll

6.1.7600.16385

96,768

14-Jul-2009

01:40

x64

Gpsvc.dll

6.1.7600.20969

776,704

19-May-2011

05:56

x64

Gpapi.dll

6.1.7600.16385

96,768

14-Jul-2009

01:40

x64

Gpsvc.dll

6.1.7601.21730

777,728

19-May-2011

05:51

x64

Gpapi.dll

6.1.7600.20969

79,872

19-May-2011

05:33

x86

Gpapi.dll

6.1.7601.21730

79,872

19-May-2011

06:04

x86

For all supported IA-64-based versions of Windows Server 2008 R2

File name

File version

File size

Date

Time

Platform

Gpapi.dll

6.1.7600.20969

168,960

19-May-2011

05:00

IA-64

Gpsvc.dll

6.1.7600.20969

1,323,008

19-May-2011

05:00

IA-64

Gpapi.dll

6.1.7601.21730

168,960

19-May-2011

04:59

IA-64

Gpsvc.dll

6.1.7601.21730

1,323,008

19-May-2011

04:59

IA-64

Gpapi.dll

6.1.7600.20969

79,872

19-May-2011

05:33

x86

Gpapi.dll

6.1.7601.21730

79,872

19-May-2011

06:04

x86

Status

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

More Information

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

Startup, shutdown, logon, and logoff scripts

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 name

Update.mum

File version

Not applicable

File size

2,773

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

X86_0cbea2865c7fc3b1ad23d67bdd5481bf_31bf3856ad364e35_6.1.7601.21730_none_7b9d7b9e4b8a6b87.manifest

File version

Not applicable

File size

704

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

X86_fcdaff831377c0f214e18d1e64fffa4b_31bf3856ad364e35_6.1.7600.20969_none_8a75ee2cbbf44c57.manifest

File version

Not applicable

File size

704

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

X86_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_289cff4b615ffa7d.manifest

File version

Not applicable

File size

135,849

Date (UTC)

19-May-2011

Time (UTC)

21:12

Platform

Not applicable

File name

X86_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_2a9ac97b5e762e87.manifest

File version

Not applicable

File size

135,849

Date (UTC)

19-May-2011

Time (UTC)

21:12

Platform

Not applicable

Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2

File name

Amd64_0f385b79fec965fd5225931b9bfe5244_31bf3856ad364e35_6.1.7601.21730_none_a0926530423503c7.manifest

File version

Not applicable

File size

708

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_2dbc0da1ee6ed52c5afd5be10cb11731_31bf3856ad364e35_6.1.7600.20969_none_b76345a240de1ce6.manifest

File version

Not applicable

File size

1,058

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_2ebbcd58044d3280b59536547f3806b6_31bf3856ad364e35_6.1.7600.20969_none_9fb6e4eb00f588f6.manifest

File version

Not applicable

File size

708

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_6e332da4a5be21c2151c6744b2ae721a_31bf3856ad364e35_6.1.7600.20969_none_ed59f5f16fc327d0.manifest

File version

Not applicable

File size

708

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_cc86d2b46fbe7e1f5607418c26e1146e_31bf3856ad364e35_6.1.7601.21730_none_1e63fdeda671bda7.manifest

File version

Not applicable

File size

1,058

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_e2800e48541da3a3c36524398d4d7681_31bf3856ad364e35_6.1.7601.21730_none_9c81427ab8dac97e.manifest

File version

Not applicable

File size

708

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Amd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_84bb9acf19bd6bb3.manifest

File version

Not applicable

File size

135,855

Date (UTC)

19-May-2011

Time (UTC)

21:14

Platform

Not applicable

File name

Amd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_86b964ff16d39fbd.manifest

File version

Not applicable

File size

135,855

Date (UTC)

19-May-2011

Time (UTC)

21:14

Platform

Not applicable

File name

Update.mum

File version

Not applicable

File size

4,059

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Wow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_8f1045214e1e2dae.manifest

File version

Not applicable

File size

60,362

Date (UTC)

19-May-2011

Time (UTC)

05:53

Platform

Not applicable

File name

Wow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_910e0f514b3461b8.manifest

File version

Not applicable

File size

60,362

Date (UTC)

19-May-2011

Time (UTC)

06:27

Platform

Not applicable

Additional files for all supported IA-64-based versions of Windows Server 2008 R2

File name

Ia64_6e332da4a5be21c2151c6744b2ae721a_31bf3856ad364e35_6.1.7600.20969_none_913cfe63b763bf96.manifest

File version

Not applicable

File size

707

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Ia64_862126545218b323c47b6964840ac306_31bf3856ad364e35_6.1.7601.21730_none_b66005583d7abfbb.manifest

File version

Not applicable

File size

706

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Ia64_cbc385f15f0ee538d2126014681c2f7d_31bf3856ad364e35_6.1.7600.20969_none_31bb4676ae3503ca.manifest

File version

Not applicable

File size

706

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Ia64_e2800e48541da3a3c36524398d4d7681_31bf3856ad364e35_6.1.7601.21730_none_40644aed007b6144.manifest

File version

Not applicable

File size

707

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Ia64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_289ea341615e0379.manifest

File version

Not applicable

File size

130,896

Date (UTC)

19-May-2011

Time (UTC)

18:42

Platform

Not applicable

File name

Ia64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_2a9c6d715e743783.manifest

File version

Not applicable

File size

130,896

Date (UTC)

19-May-2011

Time (UTC)

19:11

Platform

Not applicable

File name

Update.mum

File version

Not applicable

File size

2,169

Date (UTC)

19-May-2011

Time (UTC)

21:04

Platform

Not applicable

File name

Wow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7600.20969_none_8f1045214e1e2dae.manifest

File version

Not applicable

File size

60,362

Date (UTC)

19-May-2011

Time (UTC)

05:53

Platform

Not applicable

File name

Wow64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.21730_none_910e0f514b3461b8.manifest

File version

Not applicable

File size

60,362

Date (UTC)

19-May-2011

Time (UTC)

06:27

Platform

Not applicable

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×