Jump to content

wie man bei (allen) Windows Versionen die Netzwerke auf "Privat" einstellt.


Trill Ian

Recommended Posts

Mikrosoft gibt sich ja reichlich Mühe, bei jeder neuen Version die GUI für bestimmte Einstellungen zu Ändern, so daß man nix wiederfindet 😞

 

Ein gutes (GRRRR!) Beispiel dafür ist die einfache Frage: "wie stelle ich den Typ eines Netzwerkes auf 'privat'" ein, damit der Firewall den Media Server auch durchlässt.

 

Statt jetzt zu googlen und im Netz 20 Antworten zu finden, die für Deine Windows Version mal wieder nicht zutreffend sind, macht einfach:

 

* öffnet eine Powershell mit Admin Rechten

* tippt ein: "Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory PRIVATE"

 

Fertig!

alle Adapter sind nun Privat (Vorsicht, bei Domänenverbindungen! da muß man dann schon etwas selektiver vorgehen und erstmal mit Get-ConnectionProfile eine Liste ALLER Adapter rauskriegen, und dann nur für die öffentlichen jeweils "Set-NetConnectionProfile -Name "DER_GELESENE_NAME" -NetworkCategory PRIVATE" eingeben)

NAME
    Set-NetConnectionProfile

ÜBERSICHT
    Changes the network category of a connection profile.


SYNTAX
    Set-NetConnectionProfile [-AsJob] [-CimSession <CimSession[]>] [-Confirm] [-IPv4Connectivity {Disconnected |
    NoTraffic | Subnet | LocalNetwork | Internet}] [-IPv6Connectivity {Disconnected | NoTraffic | Subnet |
    LocalNetwork | Internet}] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-Name <String[]>]
    [-NetworkCategory {Public | Private | DomainAuthenticated}] [-PassThru] [-ThrottleLimit <Int32>] [-WhatIf]
    [<CommonParameters>]

    Set-NetConnectionProfile [-AsJob] [-CimSession <CimSession[]>] [-Confirm] -InputObject <CimInstance[]>
    [-NetworkCategory {Public | Private | DomainAuthenticated}] [-PassThru] [-ThrottleLimit <Int32>] [-WhatIf]
    [<CommonParameters>]


BESCHREIBUNG
    The Set-NetConnectionProfile cmdlet changes the network category setting of a connection profile. A connection
    profile represents a network connection.

 

Edited by Trill Ian
  • Like 1
  • Thanks 1
Link to comment

Ach ja, noch eine kleine Zusatzwarnung:

 

Man sollte den Befehl nicht vergessen, denn Mikrosoft tendiert dazu, bei manchen Updates die Netzwerkeinstellungen rigoros zurückzusetzen. Manchmal glaubt Windows auch nach einem Reboot, die Hardware hätte sich krass geändert und sortiert alles um.

Dann ist alles wieder "neu" und wird wieder auf "öffentlich" gestellt.

 

Also, nochmal neu eintippen.

 

Irgendwann war ich es leid (weil man ja nie vorher wissen kann, ob und wenn ja wann es passiert) und habe den Befehl in ein Skript gepackt, das per Aufgabenplanung 2min nach einem Neustart automatisch ausgeführt wird. Seitdem ist Ruhe (vorher sind mal öfters ein paar Aufnahmetimer den Bach runtergegangen, weil man ja gar nicht mitbekommt, dass es wieder mal Zeit dafür ist..)

 

 

  • Like 1
  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...