On a Windows 10 1809 system I have opened up Winword 5 times. so on my Taskbar when you hover over the Winword icon you'll see 5 different docs show up. Running this command does not kill all 5, it only kills 1 instance of Winword
Get-Process winword | Foreach-Object { $_.CloseMainWindow() | Out-Null } | stop-process –force
why? How do I kill all running Winword instances regardless of how many are open?
mqh7