DCOM requires port 135 for the initial session creation; after which any available port will be used to handle DCOM requests. In order to allow a firewall to remain in place and allow DCOM requests, the DCOM ports must be restricted to a defined set of port numbers and these additional ports be opened in the firewall. Microsoft recommends restricting a minimum of 100 DCOM ports. ( https://support.microsoft.com/kb/154596 ) We recommend the same minimum for System Recovery.
Creating the registry keys:
-- Use regedt32 to create the Reg_Multi_Sz string (note: create a backup of the system system registry before proceeding)
1. Navigate to registry key: (the registry key may need to be created)
HKEY_LOCAL_MACHINE\Software\Microsoft\Rpc\Internet
2. Create the following three strings
Ports
REG_MULTI_SZ
Value: (Example: 7001-7200)
PortsInternetAvailable
REG_SZ
Value: Y
UseInternetPorts
REG_SZ
Value: Y
To Automate opening of ports in the firewall on Windows Server/Client
1. Add the required port range as follows:
2. Create the required firewall rules:
Reboot the server. Configure the firewall for these port settings. System Recovery should now be able to communicate with the firewall turned on.
To view firewall settings:
1. open a Command Prompt and enter:
netsh firewall show state verbose=enable