Downloads:

4,099

Downloads of v 1.0.4:

1,509

Last Update:

27 Apr 2019

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

Microsoft Windows Update KB2534366 admin SP1 Service Pack 1

Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2

1.0.4 | Updated: 27 Apr 2019

Downloads:

4,099

Downloads of v 1.0.4:

1,509

Maintainer(s):

Software Author(s):

  • Microsoft

Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 1.0.4

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2, run the following command from the command line or from PowerShell:

>

To upgrade Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2, run the following command from the command line or from PowerShell:

>

To uninstall Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade kb2534366 -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade kb2534366 -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure kb2534366 installed
  win_chocolatey:
    name: kb2534366
    state: present
    version: 1.0.4
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'kb2534366' do
  action    :install
  version  '1.0.4'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: kb2534366,
    Version: 1.0.4,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller kb2534366
{
   Name     = 'kb2534366'
   Ensure   = 'Present'
   Version  = '1.0.4'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'kb2534366':
  provider => 'chocolatey',
  ensure   => '1.0.4',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install kb2534366 version="1.0.4" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 21 May 2020.

Description

When you try to install Windows 7 Service Pack 1 (SP1) or Windows Server 2008 R2 Service Pack 1 (SP1) on a computer that has more than 10 language packs installed, the computer stops responding at a black screen. Additionally, you receive an "0xC000009A" error message. This issue occurs because the number of open registry key handles for subkeys that have the same name is limited to 65,535 in the registry. Each language pack that is installed on the computer increases the number of open registry key handles. This update resolves this issue.

This update is one of the recommended updates to install before installing Service Pack 1 for Windows 7 or Windows Server 2008 R2.

On systems other than Windows 7 or Windows Server 2008 R2, this package installs successfully, but does nothing.


Tools\ChocolateyInstall.ps1
$msuData = @{
    '6.1' = @{
        Url = "https://download.microsoft.com/download/8/9/9/8991AB32-BFC9-4ECE-B27C-E5799D5B7ECE/Windows6.1-KB2534366-x86.msu"
        Checksum = '6739D91CBAC534E26C9E263539B6DB8AA8000A5354C65DE489BF56089B8A64DC'
        Url64 = "https://download.microsoft.com/download/1/F/7/1F726FD8-3437-424E-8158-4E961F7CE52E/Windows6.1-KB2534366-x64.msu"
        Checksum64 = 'C3DAD72962F6FD4D3919B74578DFE0569C7E1E1C96A21CE97D4E809F7C20F8A9'
    }
}

chocolateyInstaller\Install-WindowsUpdate -Id 'KB2534366' -MsuData $msuData -ChecksumType 'SHA256'

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 1.0.3 959 Thursday, October 11, 2018 Approved
Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 1.0.2 926 Thursday, June 8, 2017 Approved
Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 1.0.1 422 Sunday, February 5, 2017 Approved
Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 1.0.0 283 Thursday, October 27, 2016 Approved

1.0.4: update extension dependency to fix exit code handling on licensed Chocolatey.

Discussion for the Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 Package

Ground Rules:

  • This discussion is only about Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 and the Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2 package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Fix for error 0xC000009A when installing SP1 for Windows 7 / Server 2008 R2, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus