[Powershell] Kill & Restart Explorer.exe 11-25-2011, 01:02 AM
#1
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
}
}
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)