Monday, November 3, 2008

File and Print Enable

 

Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

Set colServices = objPolicy.Services
Set objService = colServices.Item(0)
objService.Enabled = True

-------------------
Thanks,
http://paddymaddy.blogspot.com/

No comments:

Post a Comment