Start a conversation

My WMI scripts are not working on remote computers? What is wrong?

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
  1. 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" 
  2. 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.

 

Related Articles:

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments