顯示具有 WSUS 標籤的文章。 顯示所有文章
顯示具有 WSUS 標籤的文章。 顯示所有文章

2018年3月28日 星期三

WSUS - Not able to Complete the install of WSUS


Symptom
==========
WSUS post installation task failed.
Cause
===========
The port 8530 was listening to the IP 127.0.0.1

Error:
----------
2018-03-27 11:38:31.478 UTC Error       WsusService.9        HmtWebServices.CheckDssAuthWebService      DssAuth WebService WebException:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:8530

Resolution
==========
Deleted this IP mapping using the following command.
netsh http del iplisten ipaddress=127.0.0.1


2018年3月11日 星期日

Win 10 duo scan

Cause
=====
Windows 10 Duo Scan功能讓使用該作業系統會向WSUS和網際網路取的更新。

 Action Plan
==============
-請在Windows 10的電腦上打開edit group policy,將以下兩個GPO給開啟

-在命令提示字元套用在電腦上執行gpupdate /force直接套用GPO

-打開regedit,檢查HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate下是否有以下兩個key

-測試windows update是否運作正常  

必須開啟的GPO
  1. Do not connect to any Windows Update Internet locations

Even when Windows Update is configured to receive updates from an intranet update service, it will periodically retrieve information from the public Windows Update service to enable future connections to Windows Update, and other services like Microsoft Update or the Microsoft Store.

Use Computer Configuration\Administrative Templates\Windows Components\Windows update\Do not connect to any Windows Update Internet locations to enable this policy. When enabled, this policy will disable the functionality described above, and may cause connection to public services such as the Microsoft Store, Windows Update for Business and Delivery Optimization to stop working.
  1. Do not allow update deferral policies to cause scans against Windows Update

The new policy, Do not allow update deferral policies to cause scans against Windows Update, when enabled, will disable Dual Scan. This allows enterprises that wish to configure deferral policies, the ability to do so without being concerned that Dual Scan will override administrator intent.

Use Computer Configuration\Administrative Templates\Windows Components\Windows update\Do not allow update deferral policies to cause scans against Windows Update to enable this policy. When enabled, this policy will disable the functionality described above, and may cause connection to public services such as the Microsoft Store, Windows Update for Business and Delivery Optimization to stop working.

若要使用Do not allow update deferral policies to cause scans against Windows UpdateGPOWindows 10版本須在1607build1593之上,請參考以下連結
https://support.microsoft.com/en-us/help/4034658/windows-10-update-kb4034658
 

More Information
==============
 

2017年10月18日 星期三

2017年9月28日 星期四

High CPU/High Memory in WSUS - Windows update will not download updates - stuck at 0% downloading

A WSUS update is now available that includes improvements for update metadata processing. This update should be applied to all WSUS servers in your environment.
Windows Server 2016 (KB4039396)
Windows Server 2012 R2 (KB4039871)
Windows Server 2012 (KB4039873)
WSUS 3.0 SP2 (KB4039929)

If you still occasionally experience thread abort exceptions, you can increase ASP.NET’s default timeout.
Increase the ASP.NET timeout
  • Make a copy of \Program Files\Update Services\WebServices\ClientWebService\Web.Config.
  • Open \Program Files\Update Services\WebServices\ClientWebService\Web.Config.
  • Find the element “<httpRunTime”. It will look like this (in an unmodified web.config):
<httpRuntime maxRequestLength="4096" />
  • Modify httpRunTime by adding an executionTimeout attribute:
<httpRuntime maxRequestLength="4096" executionTimeout="3600" />
  • Save the web.config to a different location and copy the modified one into the directory.
  • From an elevated command prompt, run IISReset to restart IIS

2017年7月26日 星期三

After applying update KB4025336 to our WSUS servers clients are no longer able to communicate with WSUS.

Cause
========
the virtual directories were throwing internal server error 500's for the WSUS


Analysis
=========

2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: GetCookie_WithRecovery failed : 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: RefreshCookie failed: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: RefreshPTState failed: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: PTError: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   Report           WARNING: Reporter failed to upload events with hr = 80244008.

Action Plan
=============

1. Open the elevated command prompt, and cd to the directory: C:\Program Files\Update Services\Tools;
2. Run the command: wsusutil.exe usecustomwebsite true,  to change the 80 port usage to 8530;
3. Run the command: wsusutil.exe usecustomwebsite false,  to change the 8530 port usage to 80 again.

2017年5月24日 星期三

Windows 10 Shows Windows Vista on Windows Server 2008R2 WSUS

請在WSUSDB裡面執行以下的語法,會將所有的Windows 10 Client MachineOS Description 修改成Windows 10
UPDATE [SUSDB].[dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10'
WHERE [OSMajorVersion] = '10'
AND [OSMinorVersion] = '0'
AND [OldProductType] = '1'

AND ([OSDescription] <> 'Windows 10' or [OSDescription] IS NULL) 

2017年1月11日 星期三

Size increasing on disk at "C:\PROGRAMDATA\MICROSOFT\WINDOWS\WER\REPORTQUEUE"

Symptom
=========
Size increasing on disk at "C:\PROGRAMDATA\MICROSOFT\WINDOWS\WER\REPORTQUEUE"


Resolution
===========
We followed the below steps to resolve the issue.
1. Delete C:\Windows\WinSxS\pending.xml and pending.xml.01xxxxxxxxxxxxxxxxxxxxxx
2. HKLM\COMPONENTS\Value - PendingXmlIdentifier and Value - AdvancedInstallersNeedResolving  and Value - NextQueueEntryIndex existed. Deleted them.
3. Rebooted the machine.
4. Ran sfc /scannow

5. Deleted the contents of :\PROGRAMDATA\MICROSOFT\WINDOWS\WER\REPORTQUEUE 

2017年1月9日 星期一

Change The default maximum size of XML WSUS Server

To adjust the maximum size of XML allowed per request, you will need to adjust a setting within the WSUS SUSDB database.

You can adjust this setting by running the following SQL script on the WSUS server:
==========
USE SUSDB
GO
UPDATE tbConfigurationC SET MaxXMLPerRequest = 0
==========
NOTE: You will need to run this on the WSUS/SUP. You should check to see if the SUSDB is hosted by the default Windows Internal Database (WIDS) or by full SQL. You can check the following registry keys on the SUP to determine what is hosting SUSDB:
HKLM\SOFTWARE\Microsoft\Update Services\Server\Setup\SqlServerName

2017年1月4日 星期三

Windows 7 SP1 it's not possible to patch the client because no updates are being downloaded neither from internal WSUS.

Action Plan
============
Please manually install the latest WSUS agent by hotfix and reboot 

Windows Update Client for Windows 7 and Windows Server 2008 R2: March 2016

https://support.microsoft.com/en-us/kb/3138612 

2016年12月22日 星期四

Error in the following order: 12052, 12042, 12022, 12032, 12012, 12002, 13042.


Symptom:
==========

When browsing through the event viewer logs on your Windows Update Services server, you notice the following Event IDs with a Level of Error in the following order: 12052, 12042, 12022, 12032, 12012, 12002, 13042.



Additionally, you can recreate these events by running the following command: wsusutil.exe checkhealth
Solution:
=========
Reconfigure the WSUS server via the wsusutil.exe command.

1.    Login to the WSUS server

2.    Open up a command prompt with Administrative rights

3.    Navigate to the Update Services\Tools directory.
       By default you can find it on your C drive by executing the following command
       cd
c:\Program Files\Update Services\Tools

4.    Execute one of the following commands
       If updates are configured for port 80 execute this command
       wsusutil.exe usecustomwebsite false

       If updates are configured for port 8530 execute this command
      wsusutil.exe usecustomwebsite true

   

5.    Execute the following command to verify the WSUS service is running correctly
       wsusutil.exe checkhealth

6.    You should see Event ID 10000 in event viewer confirming all is well