WSUS for SCCM post configuration failing on server 2019

midhun PS 21 Reputation points
2020-09-15T12:23:13.08+00:00

HI

I was installing WSUS in Server 2019 for SCCM primary site server, post installation tasks failing wit below error, please check.

Log file is located at C:\Users\svc_ust_Srvsccmsql\AppData\Local\Temp\WSUS_PostInstall_20200915T120401.log
Post install is starting
Fatal Error: The specified directory service attribute or value does not exist.

Log contains error "System.Runtime.InteropServices.COMException (0x8007200A): The specified directory service attribute or value does not exist."

=========================================================================================
Log File

2020-09-15 05:04:01 Postinstall started
2020-09-15 05:04:01 Detected role services: Api, Database, UI, Services
2020-09-15 05:04:01 Start: LoadSettingsFromParameters
2020-09-15 05:04:01 Content local is: True
2020-09-15 05:04:01 Content directory is: E:\wsuscontent
2020-09-15 05:04:01 SQL instname is: TRVMPGPFSCMSQL1
2020-09-15 05:04:01 End: LoadSettingsFromParameters
2020-09-15 05:04:01 Start: Run
2020-09-15 05:04:01 Fetching WsusAdministratorsSid from registry store
2020-09-15 05:04:01 Value is S-1-5-21-572018152-713307264-2591177499-1000
2020-09-15 05:04:01 Fetching WsusReportersSid from registry store
2020-09-15 05:04:01 Value is S-1-5-21-572018152-713307264-2591177499-1001
2020-09-15 05:05:00 Configuring content directory...
2020-09-15 05:05:00 Configuring groups...
2020-09-15 05:05:00 Starting group configuration for WSUS Administrators...
2020-09-15 05:05:00 Found group in regsitry, attempting to use it...
2020-09-15 05:05:03 Writing group to registry...
2020-09-15 05:05:03 Finished group creation
2020-09-15 05:05:03 Starting group configuration for WSUS Reporters...
2020-09-15 05:05:03 Found group in regsitry, attempting to use it...
2020-09-15 05:05:03 Writing group to registry...
2020-09-15 05:05:03 Finished group creation
2020-09-15 05:05:03 Configuring permissions...
2020-09-15 05:05:03 Fetching content directory...
2020-09-15 05:05:03 Fetching ContentDir from registry store
2020-09-15 05:05:03 Value is E:\wsuscontent
2020-09-15 05:05:03 Fetching group SIDs...
2020-09-15 05:05:03 Fetching WsusAdministratorsSid from registry store
2020-09-15 05:05:03 Value is S-1-5-21-572018152-713307264-2591177499-1000
2020-09-15 05:05:03 Fetching WsusReportersSid from registry store
2020-09-15 05:05:03 Value is S-1-5-21-572018152-713307264-2591177499-1001
2020-09-15 05:05:03 Creating group principals...
2020-09-15 05:05:03 Granting directory permissions...
2020-09-15 05:05:03 Granting permissions on content directory...
2020-09-15 05:05:03 Granting registry permissions...
2020-09-15 05:05:03 Granting registry permissions...
2020-09-15 05:05:03 Granting registry permissions...
2020-09-15 05:05:03 Configuring shares...
2020-09-15 05:05:03 Configuring network shares...
2020-09-15 05:05:03 Fetching content directory...
2020-09-15 05:05:03 Fetching ContentDir from registry store
2020-09-15 05:05:03 Value is E:\wsuscontent
2020-09-15 05:05:03 Fetching WSUS admin SID...
2020-09-15 05:05:03 Fetching WsusAdministratorsSid from registry store
2020-09-15 05:05:03 Value is S-1-5-21-572018152-713307264-2591177499-1000
2020-09-15 05:05:03 Content directory is local, creating content shares...
2020-09-15 05:05:03 Creating share "UpdateServicesPackages" with path "E:\wsuscontent\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system."
2020-09-15 05:05:03 Deleting existing share...
2020-09-15 05:05:03 Creating share...
2020-09-15 05:05:03 Share successfully created
2020-09-15 05:05:03 Creating share "WsusContent" with path "E:\wsuscontent\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2020-09-15 05:05:03 Deleting existing share...
2020-09-15 05:05:03 Creating share...
2020-09-15 05:05:04 Share successfully created
2020-09-15 05:05:04 Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
2020-09-15 05:05:04 Deleting existing share...
2020-09-15 05:05:04 Creating share...
2020-09-15 05:05:04 Share successfully created
2020-09-15 05:05:04 Finished creating content shares
2020-09-15 05:05:04 Stopping service WSUSService
2020-09-15 05:05:04 Stopping service W3SVC
2020-09-15 05:05:04 Configuring database...
2020-09-15 05:05:04 Configuring the database...
2020-09-15 05:05:04 Establishing DB connection...
2020-09-15 05:05:04 Checking to see if database exists...
2020-09-15 05:05:04 Database exists
2020-09-15 05:05:04 Switching database to single user mode...
2020-09-15 05:05:04 Loading install type query...
2020-09-15 05:05:04 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (17763)
DECLARE @scriptMinorVersion int = (107)
DECLARE @databaseMajorVersion int
DECLARE @databaseMinorVersion int
DECLARE @databaseBuildNumber nvarchar(10)
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name='SUSDB')
BEGIN
SELECT 1
END
ELSE
BEGIN
SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
SET @databaseBuildNumber = (SELECT BuildNumber FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
DECLARE @delimiterPosition INT = CHARINDEX('.', @databaseBuildNumber)
IF (@delimiterPosition = 0)
BEGIN
RAISERROR('Invalid schema version number', 16, 1) with nowait
return
END
SET @databaseMajorVersion = SUBSTRING(@databaseBuildNumber, 1, @delimiterPosition - 1)
SET @databaseMinorVersion = SUBSTRING(@databaseBuildNumber, (@delimiterPosition + 1), (10 - @delimiterPosition))
IF @currentDBVersion < 926
BEGIN
SELECT 3
END
ELSE
BEGIN
IF (@scriptMajorVersion > @databaseMajorVersion OR
(@scriptMajorVersion = @databaseMajorVersion AND @scriptMinorVersion > @databaseMinorVersion))
BEGIN
SELECT 2
END
ELSE IF (@scriptMajorVersion = @databaseMajorVersion AND
@scriptMinorVersion = @databaseMinorVersion)
BEGIN
SELECT 0
END
ELSE
BEGIN
SELECT 4
END
END
END

2020-09-15 05:05:04 Install type is: Reinstall
2020-09-15 05:05:04 Creating logins...
2020-09-15 05:05:04 Fetching machine account info
2020-09-15 05:05:04 Ensuring SUSDB is set to Multi-User Mode ...
2020-09-15 05:05:04 Disposing Connection
2020-09-15 05:05:04 Clearing Connection Pools
2020-09-15 05:05:04 System.Runtime.InteropServices.COMException (0x8007200A): The specified directory service attribute or value does not exist.

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_SchemaEntry()
at System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry de)
at System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry ctxBase, Boolean ownCtxBase, String username, String password, ContextOptions options)
at System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable1 identityType, String identityValue, DateTime refDate) at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue) at System.DirectoryServices.AccountManagement.ComputerPrincipal.FindByIdentity(PrincipalContext context, String identityValue) at Microsoft.UpdateServices.Administration.ConfigureDB.GetMachineAccountInfo(Byte[]& binarySid, String& accountName) at Microsoft.UpdateServices.Administration.ConfigureDB.Configure() at Microsoft.UpdateServices.Administration.ConfigureDB.Run(String instanceName, Action1 logWriter, Boolean contentLocal)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,945 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rita Hu -MSFT 9,641 Reputation points
    2020-09-16T02:43:41.493+00:00

    Hi midhunPS,

    Thanks for your posting on Q&A.

    I found a related case for your reference:
    https://social.technet.microsoft.com/Forums/lync/en-US/85aacb7f-970e-42d1-83af-f1d069638909/wsus-post-installation-fails-specified-directory-service-attribute-or-value-does-not-exist?forum=winserverwsus

    Please check the account logged on the WSUS server and whether there is a "Read" permissions or not. Please refer to the following picture:
    Log on the DC and check the following option:
    25075-1.png

    Navigate to the OU which the WSUS server located in and refer to the below picture to check the permissions:
    25059-2.png

    Regards,
    Rita


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.