update
This commit is contained in:
10
Windows/Set-NetworkCategory.ps1
Normal file
10
Windows/Set-NetworkCategory.ps1
Normal file
@ -0,0 +1,10 @@
|
||||
#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
|
||||
|
||||
#Changer toutes sur toutes les connexions
|
||||
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
|
Reference in New Issue
Block a user