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, Action
1 logWriter, Boolean contentLocal)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)