Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

closing running apps

$
0
0

I have this code that works perfect.  Get-Process | Where-Object {$_.Name –eq "iexplore"} | Foreach-Object { $_.CloseMainWindow() | Out-Null } | stop-process –force My issue is what if I have multiple instances of iexplore.exe running?  how do you account for that?  

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles