Created
June 24, 2019 00:45
-
-
Save sdovnic/0f5f0f9b028e1a38dafced1948a7bb4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NetConnectionProfile = Import-Clixml -Path NetConnectionProfile.xml | |
foreach($Network in Get-NetConnectionProfile | Sort-Object -Property InterfaceIndex | Select-Object -First 1) { | |
if ($Network.Name -match "Netzwerk") { | |
if ($Network.NetworkCategory -ne $NetConnectionProfile) { | |
Set-NetConnectionProfile -Name $Network.Name -NetworkCategory $NetConnectionProfile | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment