eShopOnContainers/cli-windows/set-dockernat-networkategory-to-private.ps1

2 lines
191 B
PowerShell
Raw Normal View History

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