Skip to content

Instantly share code, notes, and snippets.

@HiteaFR
Created September 26, 2023 20:08
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