How do I force Windows Server 2012 to update?

  • Home
  • Anonymous
  • Sign in to post
  • Post
  • Explore
  • Tags
  • Questions
  • Site feedback
  • Articles
  • Users

Skip to main content

How do I force Windows Server 2012 to update?

    • Tags
    • Questions
    • Site feedback
    • Articles
    • Users
  • Sign in to post

  • Home

question

Hi,

I upgraded Win Server 2008 to Win Server 2012 R2. After upgrade Win Update is not working.

When I press Check for updates, I receive following messages: Windows Update can't check for updates because the service is not running. You may need to restart your PC.

I tried all the possibilities that I could find on the internet.

Do you have any suggestions what to do?
Thank you.

windows-server-2012windows-server-migration

In-place upgrades are never recommended, but I'd check The Windows Update (wuauserv) is set to manual trigger, or try starting it. Also check the system event log for related errors.

--please don't forget to Accept as answer if the reply is helpful--

Hi DSPatrick!

Thank you for answer. Windows Update service is on manual. I tried start on Automatic but nothing happened.

I checked logs and don't have any errors.

I tried all options but not working.

Can I install manually all updates for Win Server 2012 R2? If yes, please send me link for updates.

question details

Overview

We had this issue on some virtual servers migrated from a "cloud" provider back to our internal data center. The root cause was permissions to the %SystemRoot%\System32\catroot2 folder. There were a number of differences between the permissions on that folder on a healthy server vs those on the migrated server. I believe the key one was that TrustedInstaller didn't have full access.

Additional Symptoms

Looking at the Application log in the event viewer, we saw a number of errors:

Source: CAPI2
EventId: 257
Text: The Cryptographic Services service failed to initialize the Catalog Database. The ESENT error was: -1032.

Source: ESENT
EventId: 490
Text: Catalog Database (416) Catalog Database: An attempt to open the file "C:\Windows\system32\CatRoot2\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}\catdb" for read / write access failed with system error 5 (0x00000005): "Access is denied. ".  The open file operation will fail with error -1032 (0xfffffbf8).

The clue is in the ESENT error's text; i.e. permissions issue accessing a file under the catroot2 folder.

Resolution

Give the Trusted Installer account full control to the catroot2 folder and its children.

In case that's not enough, for comparison, running icacls %systemroot%\system32\catroot2 on a healthy server gives this:

C:\Windows\system32\catroot2 NT SERVICE\CryptSvc:(F)
                         NT SERVICE\CryptSvc:(OI)(CI)(IO)(F)
                         NT SERVICE\TrustedInstaller:(I)(F)
                         NT SERVICE\TrustedInstaller:(I)(CI)(IO)(F)
                         NT AUTHORITY\SYSTEM:(I)(F)
                         NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F)
                         BUILTIN\Administrators:(I)(F)
                         BUILTIN\Administrators:(I)(OI)(CI)(IO)(F)
                         BUILTIN\Users:(I)(RX)
                         BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
                         CREATOR OWNER:(I)(OI)(CI)(IO)(F)
                         APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(I)(RX)
                         APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(I)(OI)(CI)(IO)(GR,GE)

NB: To add Trusted Installer, you'll need to search on the local computer accounts for nt service\trustedinstaller.

After replacing permissions on catroot2, ensure you click the replace permissions on child objects & containers checkbox to ensure that child items have their permissions resolved also.

No reboot is required for the fix itself (though obviously, once updates start working again, you'll likely need to reboot for those).

How do I force Windows server to update?

Open an Administrative (elevated) command prompt..
Run “sconfig” to launch the “Server Configuration” application..
Select option “6” to “Download and Install Windows Updates”.
Choose “A” for all updates, or “R” for recommended updates, and a scan will start..

How do I manually install Windows Server 2012 updates?

Windows Server 2012 R2: Click on the 'Start' menu. Open the Control Panel. Select 'System and Security' (this will only appear if the control panel is in 'Category' view but if it isn't then 'Windows Update' will be one of the items listed under 'All Control Panel Items') Click on 'Windows Update'

How do I manually push Windows updates?

Select Start > Control Panel > System and Security > Windows Update. In the Windows Update window, select either important updates are available or optional updates are available.

How do I force update?

You can use https://appupgrade.dev/ service to force update you mobile apps. You need to create new version for your app versions you want to update in the app upgrade service and select whether you want to force it or just want to let users know that new version is available.