Guest User

Untitled

a guest
Dec 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. (New-Object -comObject Shell.Application).Windows() | foreach-object {$_.quit()}
  2.  
  3. Get-Process | Where-Object {$_.MainWindowTitle -ne ""} | stop-process
  4.  
  5. powershell -noexit "(New-Object -comObject Shell.Application^).Windows(^) ^| foreach-object {$_.quit(^)}"
  6.  
  7. powershell -noexit "Get-Process ^| Where-Object {$_.MainWindowTitle -ne ""} ^| stop-process"
Add Comment
Please, Sign In to add comment