Firewall Policy
Set Firewall Policy sets Windows Firewall on the selected computers from a declared policy. It saves the current policy first. If a declared path stops working after the change, the computer puts the old policy back by itself.
Menu path
Endpoints > Endpoint List > select the computers > Change > Security Policy > Set Firewall Policy.
The same policy is sent when a baseline is enforced. See Assign a Security Baseline.

The dialog
The dialog is titled Set Firewall Policy.
| Field | What it does | Default |
|---|---|---|
| Computers | The computers to change | The selected rows |
| Settings | The profile settings | Block inbound, allow outbound, local rule merging off |
| Rules | The rules to allow, separated by \| |
RDP and WinRM inbound |
| Probes | Addresses the computer must still reach afterwards, as host:port separated by \|, for example coll01.contoso.local:443. Include the collection server. Needed only when outbound is blocked. |
Empty |
The default Settings and Rules values:
inbound=block;outbound=allow;merge=off
in:tcp:3389|in:tcp:5985
Settings
| Setting | Values | Default if left out |
|---|---|---|
inbound |
block or allow |
block |
outbound |
block or allow |
allow |
merge |
off or on. Off means rules added on the computer by programs or users do not apply. |
off |
enabled |
on or off |
on |
Rules
Each rule is direction:protocol:port, with an optional remote address and an optional service or program:
in:tcp:3389:10.5.0.0/24
out:udp:53:any:svc=dnscache
out:tcp:443
The direction is in or out. The protocol is tcp, udp, any or icmpv4. The port is a number or any.
Effect on the computer
- It refuses the policy if inbound is blocked with no rule for TCP 3389, 5985 or 5986. It also refuses outbound blocked with no probes. Nothing is changed in either case.
- It saves the current local policy profiles and the rules in the "xAssets DMPC" group.
- It writes the rules and profile settings to the local Group Policy store, then runs a policy refresh.
- It reads the active policy back.
- It connects to each probe. If any probe fails, it restores the saved policy at once.
| Result | Phase |
|---|---|
| The policy reads back as declared and every probe connects | Verified |
| The policy is written but does not read back as declared | Applied |
| A probe failed and the old policy was restored | Reverted |
| The restore did not clear the policy | Failed, with a note that a restart may be needed |
Only rules in the "xAssets DMPC" group are replaced. Rules added in the local policy store by hand are left alone.
After you click OK
The message reads "The firewall policy was sent to the selected endpoints - watch it in Endpoint Jobs". It asks "Do you want to follow it now?". Yes opens Activity. The phases are Sent, Applied, Verified and Reverted.
Undo
Set Firewall Policy can be undone. The Undo column in Activity > Jobs shows Inverse for the run. Undo puts back the saved profile settings and the saved "xAssets DMPC" rules. See Run detail and undo.
A computer that reverted itself has nothing to undo.
Ports a program opens
When a program adds an inbound allow rule, the security watches raise a Firewall finding. This includes installers and updaters that run as the system account. The finding names:
- the rule and the port it opens
- the program the rule is for
- the account that added it, and the program it used
A typical finding: "Inbound port opened: firewall rule "Google Chrome (mDNS-In)" lets in UDP port 5353 to C:\Program Files\Google\Chrome\Application\chrome.exe. Added by NT AUTHORITY\SYSTEM using C:\Windows\SystemTemp...\setup.exe."
The same rule added again updates the same finding. Block rules and outbound rules that Windows adds itself raise nothing.
With local rule merging off, a rule a program adds does not apply. The finding still tells you the program tried.
Key points
- Declare a probe for each collection server the computer uses, for example
COLL1:44399. A policy that cuts the computer off from its collection server could never be undone from xAssets. - Restrict management rules to a management range with the remote address part, for example
in:tcp:3389:10.5.0.0/24. - Try a policy on one computer first and check the run reaches Verified.