Merge pull request #1019 from gababu/dev

Add Powershell script to set network category to private for DockerNAT.
This commit is contained in:
Miguel Veloso 2019-04-29 18:14:28 +01:00 committed by GitHub
commit 097d3b2124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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