Created
March 6, 2016 13:04
-
-
Save itpropro/669aa6c0018a1f5c5ce1 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
$name = 'Dammaschke' # Change | |
$NetworkCategory = 1 # 0 = Public, 1 = Private (2 = Domain, but not setable) | |
$profile = Get-CimInstance -Namespace root/StandardCimv2 -ClassName MSFT_NetConnectionProfile|Where-Object Name -EQ $name | |
$profile.NetworkCategory = $NetworkCategory | |
Set-CimInstance $profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment