This message is shown when a firewall is configured on the remote computer. Such exceptions mostly occur in Windows XP (SP-2), when the default Windows Firewall is enabled.
1. Configuring Windows Firewall
a. Disable the default Firewall in the workstation. To disable the Firewall in Windows XP (SP2)
- Select Start->Run
- Type Firewall.cpl
- Click OK.
- In the General tab, click Off.
- Click OK.
b. If Firewall cannot be disabled, launch Remote Administration feature for administrators in the remote computer and then scan the workstation. The following command when executed in the target computer can enable this feature:
netsh firewall set service RemoteAdmin
After scanning the computer, if required, the Remote Administration feature can also be disabled. The following command disables this feature:
netsh firewall set service RemoteAdmin disable
c. Instead of executing the command in each and every machine, you can configure the above commands through Policy Editor globally as follows:
- From Start -> Run -> gpedit.msc (to open Group policy editor)
- Computer Configuration folder.
- Open the Administrative Templates folder.
- Open the Network folder.
- Open the Network Connections folder.
- Open the Windows Firewall folder.
- If the computer is in the domain, then open the Domain Profile folder; otherwise open the Standard Profile folder.
- Click Windows Firewall: Allow remote administration exception. On the Action menu, select Properties.
- Click Enable, and then click OK.
2. Configuring 3rd Party Firewall/Security Software
If any 3rd party Firewall/Security Software is running in the target workstation then,
- Edit the System Registry to restrict random port to specific ports.
- Open the configured WMI ports in the Firewall/Security software
STEP 1: Script to restrict WMI Ports:
As mentioned above one random port will be chosen by the OS within 2000-6000 for WMI requests.
- Download the file “wmi_port_setup.txt”
- Copy the file as “wmi_port_setup.vbs” in the target workstation.
- Execute the script using Cscript from command prompt as follows:
DIR_OF_SCRIPT_FILE> CSCRIPT wmi_port_setup.vbs
- Restart the Workstation (recommended)
STEP 2: Open ports in the 3rd Party Firewall/Security Software:
Open the Ports: TCP 135, TCP 445, TCP 5000, TCP 5001, TCP 5002 in the firewall
3. WAN/VPN Connection with NAT Box
If the Server workstation and the target Workstation is connected through a WAN/VPN with a NAT box between them, follow the below procedure:
STEP 1: Configure Firewall
Configure firewall (if any) between the Server and target workstation. To configure the firewall, kindly refer the procedures mentioned above.
STEP 2: Scan the workstation using FQDN
Scan the target workstation using its FQDN (as identified in its own LAN). Modify the DNS/Host file of the Server so that the target workstation is reachable by its FQDN.