• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended

Hallo, ich hatte Probleme  die WLAN Verbindung automatisch abzuschalten, wenn ein LAN Kabel verbunden ist.

Meine Methode funktioniert unter Windows 10 und Windows 11 mit direktem LAN Anschluss, über Dockingstation und über USB Ethernet Adapter. Vielleicht hilft meine Methode ja noch jemandem da draußen. Viele Geräte können das ja auch schon über BIOS Einstellungen aber leider eben nicht alle.

 

Ich habe mir aber jetzt folgendermaßen beholfen:

In der Aufgabenplanung wurde ein TASK erstellt, der beim Starten des PC vor der Useranmeldung ausgeführt wird. die Priorität habe ich bei dem Task durch exportieren und wieder importieren der abgeänderten XML Datei angepasst <Priority>7</Priority> sollte in der XML Datei ziemlich weit unten stehen und muss zu <Priority>0</Priority> abgeändert werden durch Einsatz eines Texteditors. 

 

Dies funktioniert nur, wenn sich bei Windows-Start nicht direkt mit einem WLAN verbunden wird, da die WLAN Karte sonst auch einen PING absetzen kann.

 

In der Batch Datei, die aufgerufen wird durch den Task steht das Folgende:

 

ping -n 1 „gewünschte IP eintragen, die immer verfügbar ist“ | find „TTL“ >NUL

IF %errorlevel%==0 (netsh interface set interface WLAN disabled
) else (
powershell -Executionpolicy Bypass -Command Enable-NetAdapter -Name WLAN)

 

 

Gruß

 

MRNIEMAND

 

 

1 REPLY 1
HP Recommended

Hi

Thank you for visiting our English HP Support Community. We advise you to post your question in English to insure a quick response for the Community.This can also help other users to take advantage of your post, in the case they have the same question.

Thank you for your understanding.

Regards,

I work on behalf of HP.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.