Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 097d3b2

Browse files
authored
Merge pull request #1019 from gababu/dev
Add Powershell script to set network category to private for DockerNAT.
2 parents 72f68a1 + 896442a commit 097d3b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Requires -RunAsAdministrator
2+
Get-NetConnectionProfile | Where-Object { $_.InterfaceAlias -match "(DockerNAT)" } | ForEach-Object { Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private }

0 commit comments

Comments
 (0)