Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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
You can’t perform that action at this time.