Skip to content

Instantly share code, notes, and snippets.

@HiteaFR
Created September 26, 2023 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HiteaFR/182aebb979460eda66708df80ee6ecf0 to your computer and use it in GitHub Desktop.
Save HiteaFR/182aebb979460eda66708df80ee6ecf0 to your computer and use it in GitHub Desktop.
Changer la catégorie d'un réseau en Powershell (Public, Privée, Domaine)
#Droits admin nécessaire
#Afficher le profil actif
$ProfileName = Get-NetConnectionProfile
# Changer la catégorie du profil actif (valeurs acceptées : Public, Private, DomainAuthenticated)
Set-NetConnectionProfile -Name $ProfileName.Name -NetworkCategory Private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment