Answer
PROBLEM
WMI scripts are not working for remote computers
ENVIRONMENT
- GFI LanGuard
- All supported environment
SOLUTION
Enable remote administration in the Domain Profile:
- Below Instructions are given for a Target Operating System of Windows Server 2003, SP1, with the Windows Firewall enabled
-
Add the following entry to the ICF.AddReg.DomainProfile section of the Windows Firewall INF file (%WINDIR%\inf\netfw.inf):
- HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\RemoteAdminSettings","Enabled",0x00010001,1"
- Run this VBScript on the Windows Server 2003, SP1 computer and the windows firewall enabled:
Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
Set objAdminSettings = objPolicy.RemoteAdminSettings
objAdminSettings.Enabled = TRUE
CAUSE
This generally happens on a computer with the Windows Firewall enabled which blocks WMI calls to it.
Priyanka Bhotika
Comments