Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Firewall ports needed for rpc error in powershell

$
0
0

In my enviroment we use several different DMZ's to host our servers in. This creates a situation where some of the computers in the domains are in different subnets.  I am trying to run a script in one domain in which all the computers are in the same subnet except for 2. In this case there is a firewall between the two subnets i am describing. When i try and run my script i recieve the error below. I have verified the following ports are open on the firewall.

TCP 5985, 5986, 445, 389    TCP\UDP 135

I have monitored our firewall and the ports being blocked when i run my script are TCP 4754 on one server and 5002 on the other. I believe these are DCOMM ports. What other ports or range of ports, or any other ports, do I need to open to resolve the RPC error? I do not want to just open a bunch of unneeded ports between my DMZ's. I could just open these 2 ports and resolve the issue for now, but i am trying to make this a powershell friendly enviroment, if you take my meaning. I should mention all local firewalls are turned off on the servers and the script runs fine on all other servers in the subnet.

Thank You in advance for your help

Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

At C:\Users\jthomas99\Desktop\Get-IPDetails.ps1:14 char:16

+    $Networks = Get-WmiObject Win32_NetworkAdapterConfiguration -ComputerName $Co ...

+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], COMException

    + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand


Thanks for your help


Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>