Skip to content

Instantly share code, notes, and snippets.

@staybuzz
Created May 10, 2018 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staybuzz/5e09c8c7b7ac09051bf7ec9d7d76c81a to your computer and use it in GitHub Desktop.
Save staybuzz/5e09c8c7b7ac09051bf7ec9d7d76c81a to your computer and use it in GitHub Desktop.
$WLANSVC_PID = Get-WmiObject -class win32_service -filter "name='wlansvc'" | findstr ProcessId | % {$($_.split(":"))[1]}
taskkill.exe /F /PID $WLANSVC_PID
Start-Service -Name wlansvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment