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
parent
commit
097d3b2124
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cli-windows/set-dockernat-networkategory-to-private.ps1

+ 2
- 0
cli-windows/set-dockernat-networkategory-to-private.ps1 View File

@ -0,0 +1,2 @@
 #Requires -RunAsAdministrator
Get-NetConnectionProfile | Where-Object { $_.InterfaceAlias -match "(DockerNAT)" } | ForEach-Object { Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private }

Loading…
Cancel
Save