I've been having an issue with PowerShell opening up unexpectedly on my computer. I recently dealt with a virus that I managed to remove using Windows Defender. After that, I installed Kaspersky, which initially seemed to handle things well by closing PowerShell immediately when it opened. However, now Kaspersky doesn't seem to do anything, and PowerShell keeps popping up again. This situation is really concerning for me, and I'm worried it might harm my computer further.
4 Answers
It's possible that the virus left something behind. Even if your antivirus cleaned it up, checking for any suspicious scheduled tasks or startup applications can help. Looking through your Task Manager startup tab might reveal things you didn’t expect.
It sounds like there might be a scheduled task causing PowerShell to open. Try checking the Task Scheduler on your PC to see if there’s something set to trigger it. You could also look at the Event Viewer for any logs when it opens. It might not be harmful, but if you’re unsure, it’s better to reformat and reinstall your OS to be safe.
I agree, reformatting your computer could give you peace of mind. Just make sure you've backed everything up first. If you’re worried about your files, take time to save them to OneDrive or an external drive before proceeding.
As for how people are getting viruses nowadays, it's often through unsafe downloads, particularly with cracked games or unverified software. Just being cautious about what you download and where you download it from can save you a lot of trouble.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures