Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Windows XP Firewall service

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2978
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Windows XP Firewall service
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Windows XP Firewall service - 5/12/2005 9:46:00 AM   
  asamiudd

 

Posts: 3
Score: 0
Joined: 5/12/2005
From:
Status: offline
Hi,

I have lots of PC's running on our network with Windows XP Firewall enabled, due to that I'm not able to run any VBscirpt (wmi) on those pc's remotely. It doesnt allow me to stop the Firewall service remotely.

Any help will be greatly appreciated.

Thanks

Here is the script I'm using:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")


Set colServiceList = objWMIService.ExecQuery("Associators of " _
& "{Win32_Service.Name='SharedAccess'} Where " _
& "AssocClass=Win32_DependentService " & "Role=Antecedent" )
For each objService in colServiceList
objService.StopService()
Next
Wscript.Sleep 20000
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='SharedAccess'")
For each objService in colServiceList
errReturn = objService.StopService()


Next


Wscript.Echo "Completed"
 
 
Post #: 1
 
 Re: Windows XP Firewall service - 5/12/2005 11:39:10 AM   
  asamiudd

 

Posts: 3
Score: 0
Joined: 5/12/2005
From:
Status: offline
I would like to know if there is any way we can turn off the Firewall remotely using some script.

Thanks

(in reply to asamiudd)
 
 
Post #: 2
 
 Re: Windows XP Firewall service - 5/13/2005 2:56:49 AM   
  netmarcos

 

Posts: 55
Score: 0
Joined: 12/7/2004
From: USA
Status: offline
A better solution would be to implement an exeption rule on your firewalled machines to allow the access you require.

(in reply to asamiudd)
 
 
Post #: 3
 
 Re: Windows XP Firewall service - 5/13/2005 5:31:00 AM   
  didorno

 

Posts: 361
Score: 0
Joined: 2/12/2005
From:
Status: offline
asamiudd, I think a firewall would be useless if you could
turn it of remotely, is n't it .

(in reply to asamiudd)
 
 
Post #: 4
 
 Re: Windows XP Firewall service - 5/13/2005 6:11:39 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
GPO is your friend ;)

(in reply to asamiudd)
 
 
Post #: 5
 
 Re: Windows XP Firewall service - 5/13/2005 11:25:04 AM   
  asamiudd

 

Posts: 3
Score: 0
Joined: 5/12/2005
From:
Status: offline
Thanks for the replis:

1) If I enable file and print services from Firewall, I can run the scripts.
2) Its not that easy to visit each PC and enable the File and print services.
3) Is there any way we can do this remotely?
4) GPO - We dont want Group policy for all the users.

Thanks guys! See if you still have some ideas to share ... Waiting!

(in reply to asamiudd)
 
 
Post #: 6
 
 Re: Windows XP Firewall service - 5/13/2005 7:30:39 PM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
Do you see any other logical solutions besides manually configure the firewall on each individual clients or automatically configure it through GPO ?

All in all, if firewall blocks all inbound traffic, wmi won't work no matter what you do. You will need to turn it off or configure it to allow wmi to pass through.

(in reply to asamiudd)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Windows XP Firewall service Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts