none
WSUS安装后续任务启动失败 RRS feed

  • 问题

  • 安装完WSUS之后需要启动后续配置任务,但是无法启动后续任务

    截图:https://social.technet.microsoft.com/Forums/getfile/1216894

    日志文件内容如下:

     

    2018-01-22 08:56:27  Postinstall started
    2018-01-22 08:56:27  Detected role services: Api, UI, WidDatabase, Services
    2018-01-22 08:56:27  Start: LoadSettingsFromXml
    2018-01-22 08:56:27  Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
    2018-01-22 08:56:27  Value is true
    2018-01-22 08:56:27  End: GetConfigValue
    2018-01-22 08:56:27  Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
    2018-01-22 08:56:27  Config file did not contain a value "ContentDirectory"
    2018-01-22 08:56:27  Microsoft.UpdateServices.Administration.CommandException: 在系统中找不到所需的配置值。这通常是由于通过 PowerShell 安装 WSUS 而没有指定配置文件造成的。有关使用 PowerShell 执行 WSUS 安装的建议步骤的详细信息,请参阅 TechNet 库(http://go.microsoft.com/fwlink/?LinkId=235499)中的“使用 PowerShell 管理 WSUS”文章。
       在 Microsoft.UpdateServices.Administration.PostInstall.GetConfigValue(String filename, String item)
       在 Microsoft.UpdateServices.Administration.PostInstall.LoadSettingsFromXml()
       在 Microsoft.UpdateServices.Administration.PostInstall.Initalize(Parameters parameters)
       在 Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
    严重错误: 在系统中找不到所需的配置值。这通常是由于通过 PowerShell 安装 WSUS 而没有指定配置文件造成的。有关使用 PowerShell 执行 WSUS 安装的建议步骤的详细信息,请参阅 TechNet 库(http://go.microsoft.com/fwlink/?LinkId=235499)中的“使用 PowerShell 管理 WSUS”文章。

    配置时的日志文件:

    2018-01-22 11:00:24  Postinstall started
    2018-01-22 11:00:24  Detected role services: Api, UI, WidDatabase, Services
    2018-01-22 11:00:24  Start: LoadSettingsFromParameters
    2018-01-22 11:00:24  Content local is: True
    2018-01-22 11:00:24  Content directory is: D:\wsus
    2018-01-22 11:00:24  SQL instname is: 
    2018-01-22 11:00:24  End: LoadSettingsFromParameters
    2018-01-22 11:00:24  Start: Run
    2018-01-22 11:00:24  Configuring content directory...
    2018-01-22 11:00:24  Configuring groups...
    2018-01-22 11:00:25  Starting group configuration for WSUS Administrators...
    2018-01-22 11:00:25  Found group in regsitry, attempting to use it...
    2018-01-22 11:00:25  Writing group to registry...
    2018-01-22 11:00:25  Finished group creation
    2018-01-22 11:00:25  Starting group configuration for WSUS Reporters...
    2018-01-22 11:00:25  Found group in regsitry, attempting to use it...
    2018-01-22 11:00:25  Writing group to registry...
    2018-01-22 11:00:25  Finished group creation
    2018-01-22 11:00:25  Configuring permissions...
    2018-01-22 11:00:25  Fetching content directory...
    2018-01-22 11:00:25  Fetching ContentDir from registry store
    2018-01-22 11:00:25  Value is D:\wsus
    2018-01-22 11:00:25  Fetching group SIDs...
    2018-01-22 11:00:25  Fetching WsusAdministratorsSid from registry store
    2018-01-22 11:00:25  Value is S-1-5-21-415492648-40414119-1637647710-1005
    2018-01-22 11:00:25  Fetching WsusReportersSid from registry store
    2018-01-22 11:00:25  Value is S-1-5-21-415492648-40414119-1637647710-1006
    2018-01-22 11:00:25  Creating group principals...
    2018-01-22 11:00:25  Granting directory permissions...
    2018-01-22 11:00:25  Granting permissions on content directory...
    2018-01-22 11:00:25  Granting registry permissions...
    2018-01-22 11:00:25  Granting registry permissions...
    2018-01-22 11:00:25  Granting registry permissions...
    2018-01-22 11:00:25  Configuring shares...
    2018-01-22 11:00:25  Configuring network shares...
    2018-01-22 11:00:25  Fetching content directory...
    2018-01-22 11:00:25  Fetching ContentDir from registry store
    2018-01-22 11:00:25  Value is D:\wsus
    2018-01-22 11:00:25  Fetching WSUS admin SID...
    2018-01-22 11:00:25  Fetching WsusAdministratorsSid from registry store
    2018-01-22 11:00:25  Value is S-1-5-21-415492648-40414119-1637647710-1005
    2018-01-22 11:00:25  Content directory is local, creating content shares...
    2018-01-22 11:00:26  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."
    2018-01-22 11:00:26  Deleting existing share...
    2018-01-22 11:00:26  Creating share...
    2018-01-22 11:00:26  Share successfully created
    2018-01-22 11:00:26  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."
    2018-01-22 11:00:26  Deleting existing share...
    2018-01-22 11:00:26  Creating share...
    2018-01-22 11:00:26  Share successfully created
    2018-01-22 11:00:26  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-22 11:00:26  Deleting existing share...
    2018-01-22 11:00:26  Creating share...
    2018-01-22 11:00:26  Share successfully created
    2018-01-22 11:00:26  Finished creating content shares
    2018-01-22 11:00:26  Configuring WID database...
    2018-01-22 11:00:26  Configuring the database...
    2018-01-22 11:00:26  Establishing DB connection...
    2018-01-22 11:00:26  Checking to see if database exists...
    2018-01-22 11:00:26  Database exists
    2018-01-22 11:00:26  Switching database to single user mode...
    2018-01-22 11:00:31  Loading install type query...
    2018-01-22 11:00:31  DECLARE @currentScriptVersion   int
    DECLARE @currentDBVersion       int
    IF NOT EXISTS(SELECT * FROM sys.databases WHERE name='SUSDB')
    BEGIN
        SELECT 1
    END
    ELSE
    BEGIN
        SET @currentScriptVersion = (9200 + 22167)
        SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
        IF @currentDBVersion < 926
        BEGIN
            SELECT 3
        END
        ELSE IF @currentDBVersion < @currentScriptVersion
        BEGIN
            SELECT 2
        END
        ELSE IF @currentDBVersion = @currentScriptVersion
        BEGIN
            SELECT 0
        END
        ELSE
        BEGIN
            SELECT 4
        END
    END

    2018-01-22 11:00:31  Install type is: Reinstall
    2018-01-22 11:00:31  Creating logins...
    2018-01-22 11:00:31  Fetching account info for S-1-5-20
    2018-01-22 11:00:31  Found principal
    2018-01-22 11:00:31  Found account
    2018-01-22 11:00:31  Got binary SID
    2018-01-22 11:00:31  Fetching WsusAdministratorsSid from registry store
    2018-01-22 11:00:31  Value is S-1-5-21-415492648-40414119-1637647710-1005
    2018-01-22 11:00:31  Fetching account info for S-1-5-21-415492648-40414119-1637647710-1005
    2018-01-22 11:00:31  Found principal
    2018-01-22 11:00:31  Found account
    2018-01-22 11:00:31  Got binary SID
    2018-01-22 11:00:31  Setting content location...
    2018-01-22 11:00:31  Fetching ContentDir from registry store
    2018-01-22 11:00:31  Value is D:\wsus
    2018-01-22 11:00:31  Swtching DB to multi-user mode......
    2018-01-22 11:00:34  Finished setting multi-user mode
    2018-01-22 11:00:34  Writing DB settings to registry...
    2018-01-22 11:00:34  Marking PostInstall done for UpdateServices-WidDatabase in the registry...
    2018-01-22 11:00:34  Configuring IIS...
    2018-01-22 11:00:34  Start: ConfigureWebsite
    2018-01-22 11:00:34  System.Runtime.InteropServices.COMException (0x80070003): 系统找不到指定的路径。

       在 System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       在 System.DirectoryServices.DirectoryEntry.Bind()
       在 System.DirectoryServices.DirectoryEntry.get_AdsObject()
       在 System.DirectoryServices.PropertyValueCollection.PopulateList()
       在 System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       在 System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       在 Microsoft.UpdateServices.Administration.UseCustomWebSite..ctor()
       在 Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
       在 Microsoft.UpdateServices.Administration.PostInstall.Run()
       在 Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
    2018年1月22日 1:24

全部回复

  • 你好,

    我们似乎打不开你提供的截图的路径。

    根据报错显示, 是由于你在使用Powershell命令安装WSUS的时候没有指定所需的配置值导致,请问你确实是用Powershell命令安装WSUS的吗?

    你的这台WSUS server是一个Core或者nano版本必须要用Powershell来安装角色的吗?如果是的话,请将你使用的Powershell的命令贴上来,我们来检查一下这个命令是否有问题。

    如果这台Server有GUI界面的话,我们建议您尝试用GUI界面来安装配置,看看是否有报错。

    Best Regards,

    Anne


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

    2018年1月22日 5:46
    版主
  • 是通过GUI安装的,截图无法在正文显示

    2018年1月22日 6:41
  • 你好,

    1. 请问你的WSUS server的系统是什么?

    2. 这是你第一次安装WSUS server 还是在进行重装?看上去似乎是重装,如果是重装的话,请问之前的WSUS组件是否全部都删除了。

    3. 最好可以将截图放在一个共享路径下供我们参考。

    4. 请按照下述步骤将原来的WSUS 卸载,然后做一个全新的安装,看看有没有用:

    1)在Server Manager中卸载掉WSUS 角色;

    2)删除WSUS content和WSUS site(IIS中);

    3)删除SUSDB, 在C:\Windows\WID\data中删掉SUSDB_mdf和SUSDB_log.ldf;

    4)安装SQL server management studio, 连接到WID, 查看SUSDB是否真的删除,没有的话,右击detach SUSDB:

    https://blogs.msdn.microsoft.com/vedvyas/2014/08/19/following-is-the-steps-to-connect-to-these-windows-internal-database-on-windows-2012-machine-this-to-access-the-wap-configuration-from-the-adfs-configuration-database/

    Best Regards,

    Anne


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

    2018年1月23日 2:39
    版主
  • 你好,

    请问上述问题对你有帮助吗,你的问题有进展吗,欢迎反馈。

    Best Regards,

    Anne


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

    2018年1月24日 2:39
    版主