Created
September 26, 2023 20:08
Changer la catégorie d'un réseau en Powershell (Public, Privée, Domaine)
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
#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