Kaseya Community

script to disable windows firewall

  • Can someone please send me script to disable firewall on xp sp3 and windows 7 plateform.

    Thanks in advance

    Legacy Forum Name: script to disable windows firewall,
    Legacy Posted By Username: rajeevsharma
  • <?xml version="1.0" encoding="utf-8"?>
    <ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
      <Procedure name="XP Permanently Disable" treePres="3">
        <Body description="Permanently Disable XP Firewall">
          <If description="Permanently Disable XP Firewall">
            <Condition name="True" />
            <Then>
              <Statement name="ExecuteShellCommand" continueOnFail="false" osType="XP">
                <Parameter xsi:type="StringParameter" name="Command" value="net stop &amp;#34;Windows Firewall/Internet Connection Sharing (ICS)&amp;#34;" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement name="SetRegistryValue" continueOnFail="false" osType="XP">
                <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Start" />
                <Parameter xsi:type="StringParameter" name="Value" value="4" />
                <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
              </Statement>
            </Then>
          </If>
        </Body>
      </Procedure>
    </ScriptExport>
    


    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: thirteentwenty



    [edited by: Brendan Cosgrove at 5:17 PM (GMT -8) on 12-17-2010] .
  • Is this for xp sp3?

    I need for windows 7 too please.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: rajeevsharma