Sinisterly
[Powershell] Kill & Restart Explorer.exe - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [Powershell] Kill & Restart Explorer.exe (/Thread-Powershell-Kill-Restart-Explorer-exe)



[Powershell] Kill & Restart Explorer.exe - ArkPhaze - 11-25-2011

Here's a really quick script I developed on my Win7 machine. It's really useful for visual changes or anything else that you might have to kill and restart the explorer.exe process for. I have Powershell tabbed on my taskbar so it's easily accessable and I can run this script as a commandlet right away instead of having to open my task manager and do it all manually.

Code:
$proc = Get-Process foreach ($objItm in $proc) { If ($objItm.ProcessName -eq "explorer") { kill $objItm.ID } }