Enables File and Printer Sharing on a computer running Windows XP Service Pack 2
Set objFirewall = CreateObject("HNetCfg.FwMgr")Set objPolicy = objFirewall.LocalPolicy.CurrentProfileSet colServices = objPolicy.ServicesSet objService = colServices.Item(0)objService.Enabled = TRUE
This is a VB Script, this can be used by saving the file in .vbs file