eShopOnContainers/deploy/windows/set-dockernat-networkategory-to-private.ps1
2019-12-17 13:41:12 +00:00

3 lines
223 B
PowerShell

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