Jump to content

Deactivate windows xp firewall


BoogY
 Share

Recommended Posts

Hello there everyone.

So let me explain a litle bit why i want to be able to do that. Im a informatician and some time i need to take over the users deskto with a program caled SMS. but if the firewall is activated i cant do that.. so id like to know a way to deactivate it on a remote computer, i have an admin account on the network so i have the rights on all the PCs.

Thank you very much for your help.

Link to comment
Share on other sites

Hi,

I had the same problem and solved it by executing a script that

1. Disable the firewall-service (so it won't start again when rebooting the computer)

2. Stop the firewall-service

The following script does the trick

#NoTrayIcon
Opt("TrayMenuMode",1)
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess", "Start", "REG_DWORD", "4")
RunWait(@ComSpec & " /c " & 'net stop "Windows Firewall/Internet Connection Sharing (ICS)"', "", @SW_HIDE)

But you need to run it as an administrator on the computer itself (bummer...)

So You create a script (exe) of the code above. Lets call it 'Disable_And_Stop_Firewall.exe'

And need to create a new script (exe) that unpacks this 'Disable_And_Stop_Firewall.exe' and launch it as the administrator. The following script does this.

#NoTrayIcon
Opt("TrayMenuMode",1)
FileInstall(".\Disable_And_Stop_Firewall.exe", ".\Disable_And_Stop_FW.exe", 1)
Sleep(100)
If RunAsWait("administrator", @computername, "administratorpasswordofthecomputer", 0, ".\Disable_And_Stop_FW.exe") = 0 and @error <> 0 Then
    Sleep(100)
    Run(@ComSpec & " /c " & $Command, @ScriptDir & "\", @SW_HIDE)
EndIf
Sleep(100)
FileDelete(".\Disable_And_Stop_FW.exe")
Sleep(100)

I hope this will help,

Best regards,

Peter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...