Winamp has been bothering me by not closing itself when shutting down or sleeping/hibernating and crashing on resuming after closing the laptop lid
I tried a few variations of Event log monitoring with Task scheduler but all proved unreliable
The solution was found in Group Policy by running taskkill.exe with /IM winamp.exe as a parameter in Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)
if you want to test it, enter
taskkill.exe /IM winamp.exe
into the run prompt or command line while winamp is running. You will find taskkill.exe in c:\windows\system32 if you are ever looking, but since system32 is stored in the PATH variable you don’t have to locate it yourself by default
![](https://i0.wp.com/www.drogueship.com/wp-content/uploads/2023/10/winamp0.png?resize=1024%2C525&ssl=1)