Skip to content

Instantly share code, notes, and snippets.

@nosmall
Created April 16, 2023 13:46
Show Gist options
  • Save nosmall/50c31f48a222db436fd94204ef33e55b to your computer and use it in GitHub Desktop.
Save nosmall/50c31f48a222db436fd94204ef33e55b to your computer and use it in GitHub Desktop.
Windows - Switch the Network Profile to Public or Private

Windows - Switch the Network Profile to Public or Private

*PowerShell with Admin Rights

Get Network Name:

Get-NetConnectionProfile

Replace Network Name:

Set-NetConnectionProfile -Name Network -NetworkCategory Public
or
Set-NetConnectionProfile -Name Network -NetworkCategory Private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment