---
updatedAt: 2025-08-14T13:35:31.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-central/llms.txt
---

# Enable Windows Firewall - Set to Default

```powershell Automation Policy
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Policy ID="867e1649-6cd2-4750-8753-92e4b42628cc" Name="Enable Windows Firewall - Set to Default" Description="RW5hYmxlIFdpbmRvd3MgRmlyZXdhbGwgLSBTZXQgdG8gRGVmYXVsdA==" Version="2.10.0.19" RemoteCategory="0" ExecutionType="Local" MinimumPSVersionRequired="0.0.0">
  <Object ID="{de0b21c7-f83c-4029-8544-ed5154c12b26}" Type="{B6FA6D8B-EEAA-47A6-8463-7F9A4F5BBB6E}" Data="&lt;xml /&gt;" />
  <LinkManager xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PolicyExecutor">
    <hashset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" />
  </LinkManager>
  <Diagnostics OriginalVersion="2.18.3.1" />
  <Activity mc:Ignorable="sap sads" x:Class="Policy Builder" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="clr-namespace:PolicyExecutor;assembly=PolicyExecutionEngine" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <x:Members>
      <x:Property Name="PolicyGUID" Type="InArgument(x:String)" />
    </x:Members>
    <sap:VirtualizedContainerService.HintSize>313,425</sap:VirtualizedContainerService.HintSize>
    <mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
    <p:PolicySequence DisplayName="Policy Builder" sap:VirtualizedContainerService.HintSize="313,425" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
      <p:PolicySequence.Activities>
        <p:EnableWindowsFirewall AssemblyName="PolicyExecutionEngine, Version=2.18.3.1, Culture=neutral, PublicKeyToken=null" DisplayName="Enable Windows Firewall" sap:VirtualizedContainerService.HintSize="277,81" Moniker="795eefd0-97be-480e-b939-8a0b9e4a8fc9" Result="[EnableWindowsFirewall_Result]" ResultString="[EnableWindowsFirewall_ResultString]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="ExecuteDebug" TypeName="EnableWindowsFirewall" m_bTextLinkChange="False" />
        <p:ResetFirewallDefaults AssemblyName="PolicyExecutionEngine, Version=2.18.3.1, Culture=neutral, PublicKeyToken=null" DisplayName="Reset Firewall Defaults" sap:VirtualizedContainerService.HintSize="277,81" Moniker="8dfbc62a-c34f-4742-b153-5a89f432c645" Result="[ResetFirewallDefaults_Result]" ResultString="[ResetFirewallDefaults_ResultString]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="ExecuteDebug" TypeName="ResetFirewallDefaults" m_bTextLinkChange="False" />
      </p:PolicySequence.Activities>
      <p:PolicySequence.Variables>
        <Variable x:TypeArguments="x:String" Name="EnableWindowsFirewall_ResultString" />
        <Variable x:TypeArguments="x:Double" Name="EnableWindowsFirewall_Result" />
        <Variable x:TypeArguments="x:String" Name="ResetFirewallDefaults_ResultString" />
        <Variable x:TypeArguments="x:Double" Name="ResetFirewallDefaults_Result" />
      </p:PolicySequence.Variables>
    </p:PolicySequence>
  </Activity>
</Policy>
```

```json Response Example
{"success":true}
```

# SCRIPT