Skip to content

Commit ca9f897

Browse files
committed
Learn Editor: Update enable-network-protection.md
1 parent 0b2f2f7 commit ca9f897

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

defender-endpoint/enable-network-protection.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,30 @@ Enable network protection by using any of these methods:
7575

7676
1. Type **powershell** in the Start menu, right-click **Windows PowerShell** and select **Run as administrator**.
7777

78-
2. Enter the following cmdlet:
78+
1. Enter the following cmdlet:
7979

8080
```PowerShell
81-
Set-MpPreference -EnableNetworkProtection Enabled
81+
Set-MpPreference -EnableNetworkProtection Enabled
8282
```
83-
84-
3. Optional: Enable the feature in audit mode using the following cmdlet:
83+
84+
1. Optional: Enable the feature in audit mode using the following cmdlet:
8585
8686
```PowerShell
87-
Set-MpPreference -EnableNetworkProtection AuditMode
87+
Set-MpPreference -EnableNetworkProtection AuditMode
8888
```
89-
89+
9090
To turn off the feature, use `Disabled` instead of `AuditMode` or `Enabled`.
91+
92+
> [!TIP]
93+
> For Windows Server (Windows Server 2022 and above ) , youan extra setting
94+
95+
```
96+
set-mpPreference -AllowNetworkProtectionOnWinServer $true
97+
```
9198
92-
### Mobile device management (MDM)
99+
**Mobile device management (MDM)**
100+
101+
Mobile device management (MDM)
93102
94103
Use the [./Vendor/MSFT/Policy/Config/Defender/EnableNetworkProtection](/windows/client-management/mdm/policy-csp-defender) configuration service provider (CSP) to enable or disable network protection or enable audit mode.
95104
@@ -232,5 +241,4 @@ Use the following procedure to enable network protection on domain-joined comput
232241
233242
- [Troubleshoot network protection](troubleshoot-np.md)
234243
235-
236244
[!INCLUDE [Microsoft Defender for Endpoint Tech Community](../includes/defender-mde-techcommunity.md)]

0 commit comments

Comments
 (0)