Browse Source
Merge pull request #1019 from gababu/dev
Add Powershell script to set network category to private for DockerNAT.
pull/1023/head
Miguel Veloso
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
cli-windows/set-dockernat-networkategory-to-private.ps1
|
@ -0,0 +1,2 @@ |
|
|
|
|
|
#Requires -RunAsAdministrator |
|
|
|
|
|
Get-NetConnectionProfile | Where-Object { $_.InterfaceAlias -match "(DockerNAT)" } | ForEach-Object { Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private } |