java for 重新安装_WSUS for windows 2012 安装及重装意外处理

1. WSUS 完整安装步骤网址,含PowerShell及GUI两种方式

https://www.rootusers.com/install-and-configure-windows-server-update-services-wsus/

2. WSUS 安装后默认服务端口是8530,如果需要改为80端口,步骤如下:

2.1 IIS Manager -> Sites -> WSUS Administration -> Properties - > Edit Bindings

Change the port which you want.

2.2 Open IIS, go to 'Advanced Settings' of the website, Changed ID from 11682 (or something like that), to '1'  (hinted at by Lawrence above)

2.3 Modify regedit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup], key "PortNumber"=dword:00000050

2.4 除了上述修改端口的方式外,微软另提供了[wsusutil]指令修改

- 指令路径在  C:\Program Files\Update Services\Tools\

- 查询指令用法:Wsusutil.exe help usecustomwebsite

- Server 2012 WSUS 修改port

Wsusutil usecustomwebsite false  # 从默认端口修改为80 port

Wsusutil usecustomwebsite true   # 从现有端口修改为默认8530 port

3. Database Maintenance

In order to keep your WSUS server functioning correctly, you should have a maintenance plan that includes re-indexing the database on a regular basis, preferably at least once a month.

The WsusDBMaintenance script (http://go.microsoft.com/fwlink/?LinkId=87027) allows you to re-index any version of the WSUS database, either SQL Server or Windows Internal Database.

4. WSUS卸载后重装,可能会有类似报错:

2015-02-04 09:47:25  System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.

---http://blog.islamgomaa.com/?p=432

Log file at C:\Users\%username%\AppData\Local\Temp\2, Found the in the logs that it fails during the IIS Configuration.

On that server I had deleted the default web site with ID 1, as I never use the default site , so I thought it might WSUS requires the default site for the initial setup . Once I had recreated the site  I was able to successfully complete the Post installation

意思是, WSUS安装过程中,设定IIS时候,会检查是否有ID为1的 web site, 如果被删除,IIS初始化设定将失败。 需手动新增任意站点并在该站点高级设定中,将ID修改为1;

5. WSUS常规GUI方式重装,如果反复遇到不可期错误,可按照下述步骤处理

https://ittherapist.net/2018/02/10/how-to-fix-windows-server-2012-and-2012-r2-wsus-post-install-fails-immediately/

To resolve the issue, I performed the following steps (in order):

1) Open a PowerShell session as Administrator and uninstall WSUS completely with the following command:

Remove-WindowsFeature -Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI -IncludeManagementTools

2) Delete the registry key HKLM\SOFTWARE\Microsoft\Update Services

3) Delete the WSUS file from %appdata%\Microsoft\MMC

4) Delete the Folder %ProgramFiles%\Update Services along with all of its subfolders and files.

5) Reboot the server

6) Run the System File Checker to find and repair any inconsistencies by typing the command below into the PowerShell prompt.

SFC /scannow

7) Reboot the server

8) Verify IIS is installed and working without errors

9) Open a Powershell session as Administrator an install WSUS with the following command:

Install-WindowsFeature -Name UpdateServices -IncludeManagementTools

Install-WindowsFeature -Name UpdateServices,UpdateServices-WidDB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI,UpdateServices-Services -IncludeManagementTools

10) Once WSUS installation has completed, change the current working directory to %programfiles%\Update Services\Tools and run one of the following post-installation commands:

.\wsusutil postinstall CONTENT_DIR=D:\WSUS

11) Wait for the command to complete successfully.

转载至链接:https://my.oschina.net/u/3362827/blog/1863664

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值