2018-09-13 09:26:29 Postinstall started 2018-09-13 09:26:29 Detected role services: Api, Database, UI, Services 2018-09-13 09:26:29 Start: LoadSettingsFromParameters 2018-09-13 09:26:29 Content local is: True 2018-09-13 09:26:29 Content directory is: F:\WSUS 2018-09-13 09:26:29 SQL instname is: msk01-sccmdb02.uralsibins.ru 2018-09-13 09:26:29 End: LoadSettingsFromParameters 2018-09-13 09:26:29 Start: Run 2018-09-13 09:26:29 Fetching WsusAdministratorsSid from registry store 2018-09-13 09:26:29 Value is S-1-5-21-4233506059-2911020337-590670743-1009 2018-09-13 09:26:29 Fetching WsusReportersSid from registry store 2018-09-13 09:26:29 Value is S-1-5-21-4233506059-2911020337-590670743-1010 2018-09-13 09:26:29 Configuring content directory... 2018-09-13 09:26:29 Configuring groups... 2018-09-13 09:26:29 Starting group configuration for WSUS Administrators... 2018-09-13 09:26:29 Found group in regsitry, attempting to use it... 2018-09-13 09:26:32 Writing group to registry... 2018-09-13 09:26:32 Finished group creation 2018-09-13 09:26:32 Starting group configuration for WSUS Reporters... 2018-09-13 09:26:32 Found group in regsitry, attempting to use it... 2018-09-13 09:26:32 Writing group to registry... 2018-09-13 09:26:32 Finished group creation 2018-09-13 09:26:32 Configuring permissions... 2018-09-13 09:26:32 Fetching content directory... 2018-09-13 09:26:32 Fetching ContentDir from registry store 2018-09-13 09:26:32 Value is F:\WSUS 2018-09-13 09:26:32 Fetching group SIDs... 2018-09-13 09:26:32 Fetching WsusAdministratorsSid from registry store 2018-09-13 09:26:32 Value is S-1-5-21-4233506059-2911020337-590670743-1009 2018-09-13 09:26:32 Fetching WsusReportersSid from registry store 2018-09-13 09:26:32 Value is S-1-5-21-4233506059-2911020337-590670743-1010 2018-09-13 09:26:32 Creating group principals... 2018-09-13 09:26:32 Granting directory permissions... 2018-09-13 09:26:32 Granting permissions on content directory... 2018-09-13 09:26:32 Granting registry permissions... 2018-09-13 09:26:32 Granting registry permissions... 2018-09-13 09:26:32 Granting registry permissions... 2018-09-13 09:26:32 Configuring shares... 2018-09-13 09:26:32 Configuring network shares... 2018-09-13 09:26:32 Fetching content directory... 2018-09-13 09:26:32 Fetching ContentDir from registry store 2018-09-13 09:26:32 Value is F:\WSUS 2018-09-13 09:26:32 Fetching WSUS admin SID... 2018-09-13 09:26:32 Fetching WsusAdministratorsSid from registry store 2018-09-13 09:26:32 Value is S-1-5-21-4233506059-2911020337-590670743-1009 2018-09-13 09:26:32 Content directory is local, creating content shares... 2018-09-13 09:26:32 Creating share "UpdateServicesPackages" with path "F:\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." 2018-09-13 09:26:32 Deleting existing share... 2018-09-13 09:26:32 Creating share... 2018-09-13 09:26:32 Share successfully created 2018-09-13 09:26:32 Creating share "WsusContent" with path "F:\WSUS\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system." 2018-09-13 09:26:32 Deleting existing share... 2018-09-13 09:26:32 Creating share... 2018-09-13 09:26:32 Share successfully created 2018-09-13 09:26:32 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." 2018-09-13 09:26:32 Deleting existing share... 2018-09-13 09:26:32 Creating share... 2018-09-13 09:26:32 Share successfully created 2018-09-13 09:26:32 Finished creating content shares 2018-09-13 09:26:32 Stopping service WSUSService 2018-09-13 09:26:32 Stopping service W3SVC 2018-09-13 09:26:34 Configuring database... 2018-09-13 09:26:34 Configuring the database... 2018-09-13 09:26:34 Establishing DB connection... 2018-09-13 09:26:34 Checking to see if database exists... 2018-09-13 09:26:34 Database exists 2018-09-13 09:26:34 Switching database to single user mode... 2018-09-13 09:26:35 Loading install type query... 2018-09-13 09:26:35 DECLARE @currentDBVersion int DECLARE @scriptMajorVersion int = (14393) DECLARE @scriptMinorVersion int = (0) 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 2018-09-13 09:26:35 Install type is: Reinstall 2018-09-13 09:26:35 Creating logins... 2018-09-13 09:26:35 Fetching machine account info 2018-09-13 09:26:35 Found principal 2018-09-13 09:26:35 Found account 2018-09-13 09:26:35 Got binary SID 2018-09-13 09:26:35 Setting content location... 2018-09-13 09:26:35 Fetching ContentDir from registry store 2018-09-13 09:26:35 Value is F:\WSUS 2018-09-13 09:26:35 Swtching DB to multi-user mode...... 2018-09-13 09:26:35 Finished setting multi-user mode 2018-09-13 09:26:35 Writing DB settings to registry... 2018-09-13 09:26:35 Disposing Connection 2018-09-13 09:26:35 Clearing Connection Pools 2018-09-13 09:26:35 Marking PostInstall done for UpdateServices-Database in the registry... 2018-09-13 09:26:35 Starting service W3SVC 2018-09-13 09:26:35 Configuring IIS... 2018-09-13 09:26:35 Start: ConfigureWebsite 2018-09-13 09:26:35 Configuring website on port 8530 2018-09-13 09:27:10 2018-09-13 09:26:45 Info IISCustomAction Performing Setup Action, Command /Install 2018-09-13 09:27:09 Info IISCustomAction Command /Install Succeeded 2018-09-13 09:27:10 End: ConfigureWebsite 2018-09-13 09:27:10 Configuring performance counters... 2018-09-13 09:27:10 Configuring Stats.NET perf counter... 2018-09-13 09:27:10 Configuring reporting perf counter... 2018-09-13 09:27:10 Configuring client webservice perf counter... 2018-09-13 09:27:10 Configuring server sync webservice perf counter... 2018-09-13 09:27:10 Configuring API remoting perf counter... 2018-09-13 09:27:10 Bringing services online... 2018-09-13 09:27:10 Checking initialization status... 2018-09-13 09:27:10 Database needs initialization. 2018-09-13 09:27:10 StartServer starting... 2018-09-13 09:27:10 Generating encryption key to write to the registry... 2018-09-13 09:27:10 Generating encryption key to write to the database... 2018-09-13 09:27:10 Generation of encryption key to save to the database failed. Error=System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccess.ExecuteSPGetConfiguration() at Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration.Load() at Microsoft.UpdateServices.Setup.StartServer.StartServer.GenerateNewDatabaseEncryptionKey() 2018-09-13 09:27:10 StartServer encountered errors. Exception=Index was outside the bounds of the array. 2018-09-13 09:27:10 Microsoft.UpdateServices.Administration.CommandException: Failed to start and configure the WSUS service at Microsoft.UpdateServices.Administration.PostInstall.Run() at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)