Hello.
I recently upgraded my WSUS host (WID) from Server 2012 to 2012R2.
After upgrade is finished I found, that WSUS Post-deployment configuration failed with the following error:
--------
Log file is located at C:\Users\xxx\AppData\Local\Temp\tmp7AA1.tmp
Post install is starting
Fatal Error: The system cannot find the path specified.
--------
I tried to launch postinstall using Powershell and got the same result.
I also checked if UpdateServices-Services.xml is placed in C:\Windows\System32\ServerManager\ComponentConfiguration folder and contains correct path to WSUS files - everything was OK.
There is the full log:
2014-05-12 15:40:17 Postinstall started
2014-05-12 15:40:17 Detected role services: Api, UI, WidDatabase, Services
2014-05-12 15:40:17 Start: LoadSettingsFromParameters
2014-05-12 15:40:17 Content local is: False
2014-05-12 15:40:17 SQL instname is:
2014-05-12 15:40:17 End: LoadSettingsFromParameters
2014-05-12 15:40:18 Start: Run
2014-05-12 15:40:18 Fetching WsusAdministratorsSid from registry store
2014-05-12 15:40:18 Value is S-1-5-21-3606383621-533361507-1611783712-1001
2014-05-12 15:40:18 Fetching WsusReportersSid from registry store
2014-05-12 15:40:18 Value is S-1-5-21-3606383621-533361507-1611783712-1002
2014-05-12 15:40:18 Configuring content directory...
2014-05-12 15:40:18 Configuring groups...
2014-05-12 15:40:18 Starting group configuration for WSUS Administrators...
2014-05-12 15:40:18 Found group in regsitry, attempting to use it...
2014-05-12 15:40:20 Writing group to registry...
2014-05-12 15:40:20 Finished group creation
2014-05-12 15:40:20 Starting group configuration for WSUS Reporters...
2014-05-12 15:40:20 Found group in regsitry, attempting to use it...
2014-05-12 15:40:20 Writing group to registry...
2014-05-12 15:40:20 Finished group creation
2014-05-12 15:40:20 Configuring permissions...
2014-05-12 15:40:20 Fetching content directory...
2014-05-12 15:40:20 Fetching ContentDir from registry store
2014-05-12 15:40:20 Value is D:\WSUS
2014-05-12 15:40:20 Fetching group SIDs...
2014-05-12 15:40:20 Fetching WsusAdministratorsSid from registry store
2014-05-12 15:40:20 Value is S-1-5-21-3606383621-533361507-1611783712-1001
2014-05-12 15:40:20 Fetching WsusReportersSid from registry store
2014-05-12 15:40:20 Value is S-1-5-21-3606383621-533361507-1611783712-1002
2014-05-12 15:40:20 Creating group principals...
2014-05-12 15:40:20 Granting directory permissions...
2014-05-12 15:40:21 Granting permissions on content directory...
2014-05-12 15:41:24 Granting registry permissions...
2014-05-12 15:41:24 Granting registry permissions...
2014-05-12 15:41:24 Granting registry permissions...
2014-05-12 15:41:24 Configuring shares...
2014-05-12 15:41:24 Configuring network shares...
2014-05-12 15:41:24 Fetching content directory...
2014-05-12 15:41:24 Fetching ContentDir from registry store
2014-05-12 15:41:24 Value is D:\WSUS
2014-05-12 15:41:24 Fetching WSUS admin SID...
2014-05-12 15:41:24 Fetching WsusAdministratorsSid from registry store
2014-05-12 15:41:24 Value is S-1-5-21-3606383621-533361507-1611783712-1001
2014-05-12 15:41:24 Content directory is local, creating content shares...
2014-05-12 15:41:24 Creating share "UpdateServicesPackages" with path "D:\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."
2014-05-12 15:41:24 Deleting existing share...
2014-05-12 15:41:24 Creating share...
2014-05-12 15:41:24 Share successfully created
2014-05-12 15:41:24 Creating share "WsusContent" with path "D:\WSUS\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2014-05-12 15:41:24 Deleting existing share...
2014-05-12 15:41:24 Creating share...
2014-05-12 15:41:24 Share successfully created
2014-05-12 15:41:24 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."
2014-05-12 15:41:24 Deleting existing share...
2014-05-12 15:41:24 Creating share...
2014-05-12 15:41:24 Share successfully created
2014-05-12 15:41:24 Finished creating content shares
2014-05-12 15:41:24 Stopping service WSUSService
2014-05-12 15:41:25 Stopping service W3SVC
2014-05-12 15:41:27 Configuring WID database...
2014-05-12 15:41:27 Configuring the database...
2014-05-12 15:41:27 Establishing DB connection...
2014-05-12 15:41:27 Checking to see if database exists...
2014-05-12 15:41:27 Database exists
2014-05-12 15:41:27 Switching database to single user mode...
2014-05-12 15:41:30 Loading install type query...
2014-05-12 15:41:30 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (9600)
DECLARE @scriptMinorVersion int = (16384)
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
2014-05-12 15:41:31 Install type is: Reinstall
2014-05-12 15:41:31 Creating logins...
2014-05-12 15:41:31 Fetching account info for S-1-5-20
2014-05-12 15:41:31 Found principal
2014-05-12 15:41:31 Found account
2014-05-12 15:41:31 Got binary SID
2014-05-12 15:41:31 Fetching WsusAdministratorsSid from registry store
2014-05-12 15:41:31 Value is S-1-5-21-3606383621-533361507-1611783712-1001
2014-05-12 15:41:31 Fetching account info for S-1-5-21-3606383621-533361507-1611783712-1001
2014-05-12 15:41:33 Found principal
2014-05-12 15:41:33 Found account
2014-05-12 15:41:33 Got binary SID
2014-05-12 15:41:33 Setting content location...
2014-05-12 15:41:33 Fetching ContentDir from registry store
2014-05-12 15:41:33 Value is D:\WSUS
2014-05-12 15:41:33 Swtching DB to multi-user mode......
2014-05-12 15:41:40 Finished setting multi-user mode
2014-05-12 15:41:40 Writing DB settings to registry...
2014-05-12 15:41:40 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2014-05-12 15:41:40 Starting service W3SVC
2014-05-12 15:41:40 Configuring IIS...
2014-05-12 15:41:40 Start: ConfigureWebsite
2014-05-12 15:41:41 System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.
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)
Could anyone please help with this issue?
Thank you.