locked
Disable WSUS postinstall prompt - WSUS up and running but prompt still appears RRS feed

  • Question

  • Hello,

    We have a problem with a WSUS installation on a 2012 R2 Server. 

    I have moved the SUSDB to a SQL Server for a while, but after changes in infrastructure decided to move it back to our file server which also hosts the wsus installation. 

    After several errors I have managed to get it to work. The postinstall routine in command prompt was successful, the log shows it did all tasks with no error. 

    Then when I run the wsus console, it asks me to complete postinstall.

    This also shown in the server manager. 

    When I close this message, I can connect to wsus console and clients pull their updates, everything seems to work ok. 

    But the prompt just won't go away. 

    Is there a way to manually disable this prompt, through powershell or maybe a registry setting?


    • Edited by Finzlbrother Thursday, January 18, 2018 11:48 AM
    Thursday, January 18, 2018 11:47 AM

All replies

  • PLease send error message
    Thursday, January 18, 2018 1:06 PM
  • That's the point. 

    I do not get an error message. It completes the postinstall process successful.

    But when you then try to run the console it prompts for the postinstall again. 

    I can do this over and over. 

    This is what the log shows when running postinstall.

    2018-01-18 16:26:57  Postinstall started
    2018-01-18 16:26:57  Detected role services: Api, Database, UI, WidDatabase, Services
    2018-01-18 16:26:57  Start: LoadSettingsFromParameters
    2018-01-18 16:26:57  Content local is: True
    2018-01-18 16:26:57  Content directory is: F:\WSUS
    2018-01-18 16:26:57  SQL instname is: MICROSOFT##WID
    2018-01-18 16:26:57  End: LoadSettingsFromParameters
    2018-01-18 16:26:57  Start: Run
    2018-01-18 16:26:57  Fetching WsusAdministratorsSid from registry store
    2018-01-18 16:26:57  Value is S-1-5-21-3771808170-4264433333-1892110659-1002
    2018-01-18 16:26:57  Fetching WsusReportersSid from registry store
    2018-01-18 16:26:57  Value is S-1-5-21-3771808170-4264433333-1892110659-1003
    2018-01-18 16:26:59  Configuring content directory...
    2018-01-18 16:26:59  Configuring groups...
    2018-01-18 16:26:59  Starting group configuration for WSUS Administrators...
    2018-01-18 16:26:59  Found group in regsitry, attempting to use it...
    2018-01-18 16:27:02  Writing group to registry...
    2018-01-18 16:27:02  Finished group creation
    2018-01-18 16:27:02  Starting group configuration for WSUS Reporters...
    2018-01-18 16:27:02  Found group in regsitry, attempting to use it...
    2018-01-18 16:27:02  Writing group to registry...
    2018-01-18 16:27:02  Finished group creation
    2018-01-18 16:27:02  Configuring permissions...
    2018-01-18 16:27:02  Fetching content directory...
    2018-01-18 16:27:02  Fetching ContentDir from registry store
    2018-01-18 16:27:02  Value is F:\WSUS
    2018-01-18 16:27:02  Fetching group SIDs...
    2018-01-18 16:27:02  Fetching WsusAdministratorsSid from registry store
    2018-01-18 16:27:02  Value is S-1-5-21-3771808170-4264433333-1892110659-1002
    2018-01-18 16:27:02  Fetching WsusReportersSid from registry store
    2018-01-18 16:27:02  Value is S-1-5-21-3771808170-4264433333-1892110659-1003
    2018-01-18 16:27:02  Creating group principals...
    2018-01-18 16:27:02  Granting directory permissions...
    2018-01-18 16:27:02  Granting permissions on content directory...
    2018-01-18 16:27:04  Granting registry permissions...
    2018-01-18 16:27:04  Granting registry permissions...
    2018-01-18 16:27:04  Granting registry permissions...
    2018-01-18 16:27:04  Configuring shares...
    2018-01-18 16:27:04  Configuring network shares...
    2018-01-18 16:27:04  Fetching content directory...
    2018-01-18 16:27:04  Fetching ContentDir from registry store
    2018-01-18 16:27:04  Value is F:\WSUS
    2018-01-18 16:27:04  Fetching WSUS admin SID...
    2018-01-18 16:27:04  Fetching WsusAdministratorsSid from registry store
    2018-01-18 16:27:04  Value is S-1-5-21-3771808170-4264433333-1892110659-1002
    2018-01-18 16:27:04  Content directory is local, creating content shares...
    2018-01-18 16:27:04  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-01-18 16:27:04  Deleting existing share...
    2018-01-18 16:27:04  Creating share...
    2018-01-18 16:27:04  Share successfully created
    2018-01-18 16:27:04  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-01-18 16:27:04  Deleting existing share...
    2018-01-18 16:27:04  Creating share...
    2018-01-18 16:27:04  Share successfully created
    2018-01-18 16:27: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."
    2018-01-18 16:27:04  Deleting existing share...
    2018-01-18 16:27:05  Creating share...
    2018-01-18 16:27:05  Share successfully created
    2018-01-18 16:27:05  Finished creating content shares
    2018-01-18 16:27:05  Stopping service WSUSService
    2018-01-18 16:27:05  Stopping service W3SVC
    2018-01-18 16:27:05  Configuring database...
    2018-01-18 16:27:05  Configuring the database...
    2018-01-18 16:27:05  Establishing DB connection...
    2018-01-18 16:27:05  Checking to see if database exists...
    2018-01-18 16:27:05  Database exists
    2018-01-18 16:27:05  Switching database to single user mode...
    2018-01-18 16:27:08  Loading install type query...
    2018-01-18 16:27:08  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

    2018-01-18 16:27:08  Install type is: Reinstall
    2018-01-18 16:27:08  Creating logins...
    2018-01-18 16:27:08  Fetching account info for S-1-5-20
    2018-01-18 16:27:08  Found principal
    2018-01-18 16:27:08  Found account
    2018-01-18 16:27:08  Got binary SID
    2018-01-18 16:27:08  Fetching WsusAdministratorsSid from registry store
    2018-01-18 16:27:08  Value is S-1-5-21-3771808170-4264433333-1892110659-1002
    2018-01-18 16:27:08  Fetching account info for S-1-5-21-3771808170-4264433333-1892110659-1002
    2018-01-18 16:27:08  Found principal
    2018-01-18 16:27:08  Found account
    2018-01-18 16:27:08  Got binary SID
    2018-01-18 16:27:08  Setting content location...
    2018-01-18 16:27:08  Fetching ContentDir from registry store
    2018-01-18 16:27:08  Value is F:\WSUS
    2018-01-18 16:27:08  Swtching DB to multi-user mode......
    2018-01-18 16:27:09  Finished setting multi-user mode
    2018-01-18 16:27:09  Writing DB settings to registry...
    2018-01-18 16:27:09  Marking PostInstall done for UpdateServices-Database in the registry...
    2018-01-18 16:27:09  Starting service W3SVC
    2018-01-18 16:27:09  Configuring IIS...
    2018-01-18 16:27:09  Start: ConfigureWebsite
    2018-01-18 16:27:11  Configuring website on port 8530
    2018-01-18 16:28:11  2018-01-18 16:27:26  Info      IISCustomAction    Setupaktion wird ausgeführt, Befehl "/Install" 
    2018-01-18 16:28:09  Info      IISCustomAction    Der Befehl "/Install" wurde erfolgreich ausgeführt.

    2018-01-18 16:28:11  End: ConfigureWebsite
    2018-01-18 16:28:11  Configuring performance counters...
    2018-01-18 16:28:11  Configuring Stats.NET perf counter...
    2018-01-18 16:28:11  Configuring reporting perf counter...
    2018-01-18 16:28:11  Configuring client webservice perf counter...
    2018-01-18 16:28:11  Configuring server sync webservice perf counter...
    2018-01-18 16:28:11  Configuring API remoting perf counter...
    2018-01-18 16:28:11  Bringing services online...
    2018-01-18 16:28:11  Checking initialization status... 
    2018-01-18 16:28:13  StartServer starting...
    2018-01-18 16:28:13  Generating encryption key to write to the registry...
    2018-01-18 16:28:13  Generating encryption key to write to the database...
    2018-01-18 16:28:14  Generating encryption key succeeded...
    2018-01-18 16:28:14  Setting WSUSService to autostart...
    2018-01-18 16:28:14  WSUSService is set to autostart.
    2018-01-18 16:28:14  Starting WSUSService...
    2018-01-18 16:28:14  WSUSService is now started.
    2018-01-18 16:28:14  Importing default detectoids.
    2018-01-18 16:28:14  Importing CriticalUpdates.xml...
    2018-01-18 16:28:15  Importing Drivers.xml...
    2018-01-18 16:28:16  Importing FeaturePacks.xml...
    2018-01-18 16:28:16  Importing MicrosoftCorporation.xml...
    2018-01-18 16:28:17  Importing SecurityUpdates.xml...
    2018-01-18 16:28:17  Importing ServicePacks.xml...
    2018-01-18 16:28:17  Importing Tools.xml...
    2018-01-18 16:28:17  Importing UpdateRollups.xml...
    2018-01-18 16:28:17  Importing Updates.xml...
    2018-01-18 16:28:17  Importing Windows.xml...
    2018-01-18 16:28:17  Importing Windows2000family.xml...
    2018-01-18 16:28:17  Importing WindowsServer2003DatacenterEdition.xml...
    2018-01-18 16:28:17  Importing WindowsServer2003Family.xml...
    2018-01-18 16:28:17  Importing WindowsXPfamily.xml...
    2018-01-18 16:28:17  Importing LocalPublisher.xml...
    2018-01-18 16:28:17  Importing LocallyPublishedPackages.xml...
    2018-01-18 16:28:17  Importing Applications.xml...
    2018-01-18 16:28:17  Importing Exchange.xml...
    2018-01-18 16:28:17  Importing Office.xml...
    2018-01-18 16:28:17  Importing SQL.xml...
    2018-01-18 16:28:17  Importing Exchange2000Server.xml...
    2018-01-18 16:28:17  Importing ExchangeServer2003.xml...
    2018-01-18 16:28:17  Importing OfficeXP.xml...
    2018-01-18 16:28:17  Importing Office2003.xml...
    2018-01-18 16:28:17  Importing SQLServer.xml...
    2018-01-18 16:28:18  Importing WindowsXP64BitEditionVersion2003.xml...
    2018-01-18 16:28:18  Importing DefinitionUpdateSusXml.xml...
    2018-01-18 16:28:18  Importing ClientServicingApiDetectoid.xml...
    2018-01-18 16:28:18  Importing default detectoids succeeded.
    2018-01-18 16:28:24  StartServer completed successfully.
    2018-01-18 16:28:24  Marking PostInstall done for UpdateServices-Services in the registry...
    2018-01-18 16:28:24  Mark initialization done in database...
    2018-01-18 16:28:24  End: Run
    2018-01-18 16:28:24  Postinstall completed

    Thursday, January 18, 2018 3:18 PM
  • Hi,

    AFAIK , it is a not supported scenario when migrate WSUS DB from SQL to WID .

    Is it possible to follow the wizard to finish the "postinstall" ?

     

    Best Regards,

    Elton


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, January 22, 2018 2:28 AM
  • No, it does the same. Finishes postinstall successfully then asks for postinstall again. 

    As I said, it does work, clients pull updates and you can connect to the console, you just have to quit the post install message every time, which is really annoying. 

    Wednesday, January 24, 2018 8:53 AM
  • I experienced this issue....

    After referencing the above log, Issue is so clear.. This is happening due to unsuccessful installation...

    1. Please uninstall WSUS role from server.... 

    2. Then Delete pre created WID Database for WSUS or rename it... (C:\Windows\WID\Data\SUSDB.mdf)

    3. Install and configure WSUS again....

    It's better before installing the role, keep fully patch the Server.

    If you used SQL Express server DB for WSUS, keep remind that there is a limitation


    Wednesday, January 24, 2018 10:03 AM