Assume that you apply a Group Policy setting that uses a Windows Management Instrumentation (WMI) filter to a Windows Server 2016, Windows Server 2012 R2, Windows 8.1, or Windows 10-based computer. After some time, PolicySOM (WMI Policy Provider) consumes all available dynamic remote procedure call (RPC) ports on the User Datagram Protocol (UDP) protocol. When this problem occurs, the computer becomes unresponsive.
- This problem is more visible on Active Directory domain controllers that apply a Group Policy policy every five minutes.
- This problem is more visible on operating systems on which the RPC port range is limited by using the netsh dynamic port command or an equivalent. In this situation, leaks consume a smaller pool of RPC ports.
- This problem is more visible on computers that are not restarted in a long time.
Additional symptoms information
The WMIPRVSE.exe process that hosts the PolicySOM provider can be short-lived. When the Wmiprvse.exe process finishes, and the work that has to run the WMI filter eventually becomes idle, the provider unloads. As long as the ALL providers value is set to IDLE, the process is terminated. The default time-out value for providers is two minutes in Windows Server 2012 R2.
You can use the netstat command to identify this problem. This command shows UDP port exhaustion for the same instance (PID) of Wmiprvse.exe. In this situation, the UDP port usage expands to additional ports regularly.
To determine whether your computer is affected by this problem, run the netstat -anob > netstat.txt command, and then open the Netstat.txt file by using Notepad or a different text editor. You may see the following lines or something similar:
UDP 127.0.0.1:49234 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49283 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49399 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49492 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49520 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49569 *:* 6628
[wmiprvse.exe]
UDP 127.0.0.1:49641 *:* 6628
[wmiprvse.exe]
This example shows that UPD ports 49234, 49283, 49399, and so on, belong to the Wmiprvse.exe process that is running in PID 6628.
Take additional samples a few hours or days later. To determine the run rate of the UDP port consumption, compare the number of ports that are used to your current restart interval or a modified restart interval for the computer that you are investigating.