Advertisement
hl2guide

Unplugged Network Adapter Disabler - PowerShell

Dec 18th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Disables the non-connected (not plugged in) network adapters
  2. # Version: 1.0
  3. # Author: Deanoman
  4.  
  5. Get-NetAdapter | ? status -ne up | Disable-NetAdapter -Confirm:$false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement