Skip to content
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr

Written By Deepak Rai
Last Updated June 26, 2024
Posted In SCCM
SHARE

Let’s find the fix for the SCCM Update Prerequisite Check Failed Issue. As the heading indicates, it’s about the new KB released, “KB4560496,” for ConfigMgr 2002.

There is no magic solution to fix the SCCM update or upgrade prerequisite check failures or errors. In this post, I’ll give two examples of prerequisite check errors and solutions for those issues.

I have documented DotNet errors in the prerequisite check and explained how you can solve them in another step-by-step guide. Fix SCCM Dot NET Version Warning Error During Prerequisite Checks.

Read all about KB4560496 for MECM 2002. It’s a deep dive with known issues and bug fixes by Anoop Nair https://www.anoopcnair.com/sccm-2002-hotfix-rollup-kb4560496/ – Very briefly explained.

Patch My PC
Index
Errors: FIX SCCM Update Prerequisite Check Failed Issue
Max Test Repl Size of SQL Server Always On Availability
Using SQL Server Management Studio
Using Transact-SQL
SQL Server Configuration for Site Upgrade
FIX SCCM Update Prerequisite Check Failed Errors Issue
Using Transact-SQL – FIX SCCM Update Prerequisite check Failed Issue
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr – Table 1

Errors: FIX SCCM Update Prerequisite Check Failed Issue

I installed it in my test lab the day it was released, and everything went well. But when I tried installing it in the production standalone primary site, the prerequisite failed with the below error:

FIX SCCM Update Prerequisite Check Failed Errors Issue | ConfigMgr -Fig.1
FIX SCCM Update Prerequisite Check Failed Errors Issue | ConfigMgr -Fig.1

So, there are two failed prerequisite checks, and we will fix them.

  1. Max Test Repl (Replication) Size of SQL Server Always On Availability.
  2. SQL Server Configuration for Site Upgrade.

One step at a time. This is going to be interesting.

Max Test Repl Size of SQL Server Always On Availability

First, we will check the existing value in DB of “Max Test Repl Size”. Connect the SCCM DB using Management Studio and execute the query “SP_Configure” to get the value. It will populate the value as below:

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.2
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.2
NameMinimumMaximumConfig_valuerun_value
Max Server Memory (MB)12821474836479830498304
Max Text Replication Size (B)-121474836476553665536
Max Worker Threads1286553500
Media retention036500
Min Memory Per Query (KB)512214748364710241024
Min Memory Per Query (MB)021474836471000010000
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr – Table 2

You will see the correct value now because I already changed it. There are now two options to change this value.

Using SQL Server Management Studio

Now, let’s understand how to fix the SCCM Update Prerequisite Check Failed Errors Issue using SQL Server Management Studio.

  • In Object Explorer, right-click a server and select Properties.
  • Click the Advanced node.
  • Under Miscellaneous, change the Max Text Replication Size option to the desired value.
    • (Recommended 2147483647).
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.3
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.3

Using Transact-SQL

FIX SCCM Update Prerequisite Check Failed Error Issue | ConfigMgr using the SQL management studio.

  • Connect to the Database Engine.
  • From the Standard bar, click New Query.
  • Copy and Paste the following example into the query window and click Execute.
    • This example shows how to use sp_configure to configure the max text repl size option to -1.
USE AdventureWorks2012 ;
GO
EXEC sp_configure 'show advanced options', 1 ;
RECONFIGURE ;
GO
EXEC sp_configure 'max text repl size', -1 ;
GO
RECONFIGURE;
GO

This error will disappear now. However, don’t run the Prerequisites check yet because you have to fix another mistake.

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.4
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.4

NOTE: MS Doesn’t support the alteration of DB. Perform actions under the supervision of SQL Experts.

SQL Server Configuration for Site Upgrade

Moving on to the second Issue, where the SCCM upgrade has failed.

  • To fix this one, we need to read the logs and get more information about the reason for this failure.
  • Check ConfigMgrPrereq.log in the C drive root of your Primary/CAS.
  • This is what I got when checking the log.
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.5
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.5

It’s saying the AG (Availability Group) replica has READ_Only as a readable secondary state should be ALL. Before we start how to fix we should check a few more things. Execute the below SQL Queries to get more information.

  • select * from sys.availability_replicas
  • select * from sys.availability_read_only_routing_lists
  • select * from sys.dm_tcp_listener_states

It will populate the information shown in screenshots.

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.6
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.6
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.7
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.7

FIX SCCM Update Prerequisite Check Failed Errors Issue

Now let’s fix the SCCM Update Prerequisite Check Failed Errors Issue using SQL Server Management Studio.

To configure access to an available replica

  1. In Object Explorer, connect to the server instance that hosts the primary replica and expand the server tree.
  2. Expand the Always On High Availability node and the Availability Groups node.
  3. Click the availability group whose replica you want to change.
  4. Right-click the availability replica, and click Properties.
  5. In the Availability Replica Properties dialogue box, you can change the connection access for the primary role and for the secondary role as follows:

For the secondary role, select a new value from the Readable secondary drop-down menu, such as No.

No user connections are allowed to this replica’s secondary databases, which are unavailable for reading access. The default setting is read-intent only.

Only read-only connections are allowed to this replica’s secondary databases. The secondary database(s) are all available for read access—yes.

All connections are allowed to this replica’s secondary databases, but only read access is allowed. The secondary database(s) are all available for read access.

  1. For the primary role, select a new value from the Connections in the primary role drop list, which is as follows: Allow all connections.
    • The primary replica’s default setting allows all database connections, including read and write connections.
    • The connection is allowed when the Application Intent property is set to ReadWrite, or the Application Intent connection property is not set.
    • Connections where the Application Intent connection property is set to ReadOnly are prohibited.
    • This can help prevent customers from connecting a read-intent workload to the primary replica by mistake.
    • For more information about the Application Intent connection property,

Using Transact-SQL – FIX SCCM Update Prerequisite check Failed Issue

To configure access to an available replica 

  1. Connect to the server instance that hosts the primary replica.
  2. If you are specifying a replica for a new availability group, use the CREATE AVAILABILITY GROUP Transact-SQL statement. If you add or modify a replica of an existing availability group, use the ALTER AVAILABILITY GROUP Transact-SQL statement.
    • To configure connection access for the secondary role, in the ADD REPLICA or MODIFY REPLICA WITH clause, specify the SECONDARY_ROLE option, as follows: SECONDARY_ROLE ( ALLOW_CONNECTIONS = { NO | READ_ONLY | ALL } )where, NO
    • This replica’s secondary databases are not available for read access, and no direct connections are allowed. This is the default setting.
    • READ_ONLY Only read-only connections are allowed to secondary databases of this replica.
    • The secondary database(s) are all available for read access.
    • ALL connections are allowed to this replica’s secondary databases, but only for read access. The secondary database(s) are all available for read access.

To configure connection access for the primary role, in the ADD REPLICA or MODIFY REPLICA WITH clause, specify the PRIMARY_ROLE option, as follows: PRIMARY_ROLE ( ALLOW_CONNECTIONS = { READ_WRITE | ALL } )where READ_WRITE

Connections where the Application Intent connection property is set to ReadOnly are disallowed.

The connection is allowed when the Application Intent property is set to ReadWrite, or the Application Intent connection property is not set.

All connections are allowed to the databases in the primary replica. This is the default setting.

NOTE: MS Doesn’t support the alteration of DB. Perform actions under the supervision of SQL Experts.

Disclaimer – The information provided on the site is for general informational purposes only. All information on the site is provided in good faith, however, we make no representation or warranty of any kind, express or implied regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the website.

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Deepak Rai is a Technical Lead with over 14 years of experience in IT. He specializes in SCCM, Intune, and Azure. Throughout his career, he has worked on various platforms such as Active Directory, Exchange, Veritas NETBACKUP, Symantec Backup Exec, NDMP devices like Netapp, EMC Data Domain, Quantum using Backup Exec 2010 and 2012, and HP StorageWorks 4048 MSL G3. He also has experience in data deduplication-related troubleshooting. Ultimately, he returned to his roots as an IT Engineer focusing on SCCM technology.

Written by

My name is Deepak Rai and i am Technical Lead on SCCM and Intune with more than 14 years of experience in IT. My main domain is SCCM 2012, CB, MECM, Intune and Azure (Runbooks). I have worked on several platforms (Active Directory, Exchange, Veritas NETBACKUP, Symantec Backup Exec NDMP devices Like Netapp, EMC Data Domain, Quantam using Backup Exec 2010 and 2012, HP storage works 4048 MSL G3 , Data Deduplication related troubleshooting.) in these 13 years but finally ended up to the technology from which i started as IT Engineer (SCCM).

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read