Hi All,
Seem to have found the 3 rules (listed in the end) that are missing in the server that does not shutdown remotely. I opened one of them and it said these are pre-defined rules, so I just right-click copied from the server which works, and pasted in the firewall of the server which doesn't, and now I have result from the server with firewall enabled, no RPC related error.
Get-WmiObject Win32_ComputerSystem -ComputerName 10.10.20.7
Domain : vlab.lab
Manufacturer : VMware, Inc.
Model : VMware7,1
Name : D-SRV-VEMB
PrimaryOwnerName : Windows User
TotalPhysicalMemory : 6441435136
Name : FileServer-ServerManager-Winmgmt-TCP-In
DisplayName : File Server Remote Management (WMI-In)
Description : Inbound rule to allow WMI traffic to manage the File Services role.
DisplayGroup : File Server Remote Management
$_ | Get-NetFirewallPortFilter
Protocol : TCP
LocalPort : RPC
RemotePort : Any
IcmpType : Any
DynamicTarget : Any
Name : FileServer-ServerManager-DCOM-TCP-In
DisplayName : File Server Remote Management (DCOM-In)
Description : Inbound rule to allow DCOM traffic to manage the File Services role.
DisplayGroup : File Server Remote Management
$_ | Get-NetFirewallPortFilter
Protocol : TCP
LocalPort : 135
RemotePort : Any
IcmpType : Any
DynamicTarget : Any
Name : FileServer-ServerManager-SMB-TCP-In
DisplayName : File Server Remote Management (SMB-In)
Description : Inbound rule to allow SMB traffic to manage the File Services role.
DisplayGroup : File Server Remote Management
$_ | Get-NetFirewallPortFilter
Protocol : TCP
LocalPort : 445
RemotePort : Any
IcmpType : Any
DynamicTarget : Any