This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
Add Powershell script to set network category to private for DockerNAT.
pull/1019/head
Gajendra Thokala
5 years ago
parent
fb6d972d55
commit
7dd819c4b5
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
cli-windows/set-dockernat-networkategory-to-private.ps1
+ 1
- 0
cli-windows/set-dockernat-networkategory-to-private.ps1
View File
@ -0,0 +1 @@
Get-NetConnectionProfile
|
Where-Object
{
$_
.
InterfaceAlias
-match
"
(DockerNAT)
"
}
|
ForEach
-Object
{
Set-NetConnectionProfile
-InterfaceIndex
$_
.
InterfaceIndex
-NetworkCategory
Private
}
Write
Preview
Loading…
Cancel
Save