Thursday, December 25, 2008

Disable Remote Administration

Disable Windows Firewall remote administration

Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
Set objAdminSettings = objPolicy.RemoteAdminSettings
objAdminSettings.Enabled = FALSE

This is a VB Script, this can be used by saving the file in .vbs file