eShopOnContainers/obsolete/cli-windows/set-dockernat-networkategory-to-private.ps1
2019-11-20 19:02:01 +00:00

3 lines
223 B
PowerShell

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