Jump to content
Sign in to follow this  

Batch Datei starten

Recommended Posts



mit WMI und win32_networkadapter kannst du den NetConnectionstatus abfragen


$query = "select * from win32_networkadapter where NetConnectionID='LAN-Verbindung'"
$a=Get-WMIObject -query $query 


2: connected

7: ist Media disconnected

Win32_NetworkAdapter Class (Windows)




Share this post

Link to post
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte überlege Dir, ob es nicht sinnvoller ist ein neues Thema zu erstellen.

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Sign in to follow this  


  • Create New...