Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,579 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to install WSUS Role on a Server 2012r2 machine, and receiving:
System.Runtime.InteropServices.COMException (0x80080005): Server execution failed
I tried removing WSUS and the folder it crates, and reinstalling, same result.
Here's the log output:
2023-09-03 10:16:01 Postinstall started
2023-09-03 10:16:01 Detected role services: Api, UI, WidDatabase, Services
2023-09-03 10:16:01 Start: LoadSettingsFromXml
2023-09-03 10:16:01 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2023-09-03 10:16:01 Value is true
2023-09-03 10:16:01 End: GetConfigValue
2023-09-03 10:16:01 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2023-09-03 10:16:01 Value is C:\WSUS
2023-09-03 10:16:01 End: GetConfigValue
2023-09-03 10:16:01 Content directory is C:\WSUS
2023-09-03 10:16:01 Database roleservice is not installed
2023-09-03 10:16:01 End: LoadSettingsFromXml
Post install is starting
2023-09-03 10:16:01 Start: Run
2023-09-03 10:16:01 Fetching WsusAdministratorsSid from registry store
2023-09-03 10:16:01 Value is S-1-5-21-3878998998-1977764492-1286656935-1020
2023-09-03 10:16:01 Fetching WsusReportersSid from registry store
2023-09-03 10:16:01 Value is S-1-5-21-3878998998-1977764492-1286656935-1021
2023-09-03 10:16:07 Configuring content directory...
2023-09-03 10:16:07 Configuring groups...
2023-09-03 10:16:07 Starting group configuration for WSUS Administrators...
2023-09-03 10:16:07 Found group in regsitry, attempting to use it...
2023-09-03 10:16:11 Writing group to registry...
2023-09-03 10:16:11 Finished group creation
2023-09-03 10:16:11 Starting group configuration for WSUS Reporters...
2023-09-03 10:16:11 Found group in regsitry, attempting to use it...
2023-09-03 10:16:11 Writing group to registry...
2023-09-03 10:16:11 Finished group creation
2023-09-03 10:16:11 Configuring permissions...
2023-09-03 10:16:11 Fetching content directory...
2023-09-03 10:16:11 Fetching ContentDir from registry store
2023-09-03 10:16:11 Value is C:\WSUS
2023-09-03 10:16:11 Fetching group SIDs...
2023-09-03 10:16:11 Fetching WsusAdministratorsSid from registry store
2023-09-03 10:16:11 Value is S-1-5-21-3878998998-1977764492-1286656935-1020
2023-09-03 10:16:11 Fetching WsusReportersSid from registry store
2023-09-03 10:16:11 Value is S-1-5-21-3878998998-1977764492-1286656935-1021
2023-09-03 10:16:11 Creating group principals...
2023-09-03 10:16:11 Granting directory permissions...
2023-09-03 10:16:11 Granting permissions on content directory...
2023-09-03 10:16:11 Granting registry permissions...
2023-09-03 10:16:11 Granting registry permissions...
2023-09-03 10:16:11 Granting registry permissions...
2023-09-03 10:16:11 Configuring shares...
2023-09-03 10:16:11 Configuring network shares...
2023-09-03 10:16:11 Fetching content directory...
2023-09-03 10:16:11 Fetching ContentDir from registry store
2023-09-03 10:16:11 Value is C:\WSUS
2023-09-03 10:16:11 Fetching WSUS admin SID...
2023-09-03 10:16:11 Fetching WsusAdministratorsSid from registry store
2023-09-03 10:16:11 Value is S-1-5-21-3878998998-1977764492-1286656935-1020
2023-09-03 10:16:11 Content directory is local, creating content shares...
2023-09-03 10:16:11 Creating share "UpdateServicesPackages" with path "C:\WSUS\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system."
2023-09-03 10:16:12 Deleting existing share...
2023-09-03 10:16:12 Creating share...
2023-09-03 10:16:12 Share successfully created
2023-09-03 10:16:12 Creating share "WsusContent" with path "C:\WSUS\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2023-09-03 10:16:12 Deleting existing share...
2023-09-03 10:16:12 Creating share...
2023-09-03 10:16:12 Share successfully created
2023-09-03 10:16:12 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."
2023-09-03 10:16:12 Deleting existing share...
2023-09-03 10:16:12 Creating share...
2023-09-03 10:16:12 Share successfully created
2023-09-03 10:16:12 Finished creating content shares
2023-09-03 10:16:12 Stopping service WSUSService
2023-09-03 10:16:12 Stopping service W3SVC
2023-09-03 10:16:12 Configuring WID database...
2023-09-03 10:16:12 Configuring the database...
2023-09-03 10:16:12 Establishing DB connection...
2023-09-03 10:16:12 Checking to see if database exists...
2023-09-03 10:16:12 Database exists
2023-09-03 10:16:12 Switching database to single user mode...
2023-09-03 10:16:15 Loading install type query...
2023-09-03 10:16:15 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (9600)
DECLARE @scriptMinorVersion int = (18694)
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
2023-09-03 10:16:15 Install type is: Reinstall
2023-09-03 10:16:15 Creating logins...
2023-09-03 10:16:15 Fetching account info for S-1-5-20
2023-09-03 10:16:15 Found principal
2023-09-03 10:16:15 Found account
2023-09-03 10:16:15 Got binary SID
2023-09-03 10:16:15 Fetching WsusAdministratorsSid from registry store
2023-09-03 10:16:15 Value is S-1-5-21-3878998998-1977764492-1286656935-1020
2023-09-03 10:16:15 Fetching account info for S-1-5-21-3878998998-1977764492-1286656935-1020
2023-09-03 10:16:15 Found principal
2023-09-03 10:16:15 Found account
2023-09-03 10:16:15 Got binary SID
2023-09-03 10:16:15 Setting content location...
2023-09-03 10:16:15 Fetching ContentDir from registry store
2023-09-03 10:16:15 Value is C:\WSUS
2023-09-03 10:16:15 Swtching DB to multi-user mode......
2023-09-03 10:16:16 Finished setting multi-user mode
2023-09-03 10:16:16 Writing DB settings to registry...
2023-09-03 10:16:16 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2023-09-03 10:16:16 Starting service W3SVC
2023-09-03 10:16:16 Configuring IIS...
2023-09-03 10:16:16 Start: ConfigureWebsite
2023-09-03 10:18:16 System.Runtime.InteropServices.COMException (0x80080005): Server execution failed
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at Microsoft.UpdateServices.Administration.UseCustomWebSite..ctor()
at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: Server execution failed
Run through my guide on how to completely remove and reinstall WSUS
https://www.ajtek.ca/wsus/how-to-remove-wsus-completely-and-reinstall-it/
Follow it and if you still have problems, look specifically at the section
Troubleshooting Steps If You Still Have Problems