Problem
I am trying to use the script from this link below to retrieve windows updates from a remote computer (Server 2012 R2) using the command Get-WUList
.
https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
However, I am receiving the error:
Exception calling "CreateInstance" with "1" argument(s): "Retrieving the COM class factory for remote component with CLSID {4CB43D7F-7EEE-4906-8698-60DA1C38F2FE} from machine whitebass failed due to the following error: 800706ba whitebass."
What I have tried
I know that the issue is with the firewall because I am able to successfully connect when the firewall is disabled.
Most of the information I found online mentioned enabling firewall rules. However, even after playing with these I was still unable to get it working.
The firewall rules that I enabled are below (for now I only listed what I think is applicable):
- Windows Management Instrumentation (ASync-In)
- Windows Management Instrumentation (DCOM-In)
- Windows Management Instrumentation (WMI-In)
- Remote Service Management (NP-In)
- Remote Service Management (RPC-In)
- Remote Service Management (RPC-EPMAP)