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.