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

Add Powershell script to set network category to private for DockerNAT. #1019

Merged
merged 2 commits into from
Apr 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli-windows/set-dockernat-networkategory-to-private.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Get-NetConnectionProfile | Where-Object { $_.InterfaceAlias -match "(DockerNAT)" } | ForEach-Object { Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private }
gababu marked this conversation as resolved.
Show resolved Hide resolved