Netzwerkprofil per Powershell umstellen

Netzwerkprofil per Powershell umstellen

Netzwerkprofil umschalten

Mit diesem Befehlen lesen wir das aktuelle Netzwerkprofil aus:

Get-NetConnectionProfile

Mit diesem Befehlen ändern wir das aktuelle Private Netzwerkprofil in ein Öffentliches Netzwerkprofil:

Set-NetConnectionProfile -InterfaceIndex 8 -NetworkCategory Public

Mit diesem Befehlen ändern wir das aktuelle Öffentliche Netzwerkprofil in ein Privates Netzwerkprofil:

Set-NetConnectionProfile -InterfaceIndex 8 -NetworkCategory Privat

Get-NetConnectionProfile

Öffentliches Netzwerk

Privates Netzwerk

Powershellskript: Get-NetConnectionProfile

Network Connectivity Status Indicator