Skip to content

Instantly share code, notes, and snippets.

@cherts
Created December 25, 2019 10:26
Show Gist options
  • Select an option

  • Save cherts/20f5dd74fda6161ddaff9b56085edf9e to your computer and use it in GitHub Desktop.

Select an option

Save cherts/20f5dd74fda6161ddaff9b56085edf9e to your computer and use it in GitHub Desktop.
Set connection private on Windows Server 2012 R2
$Profile = Get-NetConnectionProfile -InterfaceAlias "Ethernet 1"
$Profile.NetworkCategory = "Private"
Set-NetConnectionProfile -InputObject $Profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment