I've noticed that PowerShell keeps opening on its own every so often. I'm not sure what's triggering it. I came across a message that mentioned 'Running the environment check' followed by 'License OK', which appears when it opens. Does anyone know how I can find out what's causing this to happen? I'd appreciate any help!
5 Answers
I had this same problem a couple of months ago! You might need to inspect your startup items and any scheduled tasks, as that's typically where the culprit lies. If it's running without your permission, you should definitely take a closer look at what's set to launch at startup.
You're definitely not alone in experiencing this issue! There have been others with similar concerns. You might want to check out a detailed discussion on it [here](https://learn.microsoft.com/en-us/answers/questions/5786013/powershell-opening-license-ok-license-is-verified). It could lead you to some useful insights!
To get to the bottom of this, you can enable PowerShell logging via Group Policy. This way, you can track all PowerShell commands in the 'Event Viewer'. It will show you what scripts are running and where they are coming from, which can help identify the cause of this issue.
If PowerShell is launching unexpectedly, it might be related to malware. Check for any scheduled tasks that could be triggering it. Disconnect your device from the internet to stop any potential downloads. Then, check the Windows Registry and Task Scheduler for any suspicious entries or tasks related to PowerShell. This could help you pinpoint and remove any malicious activity.
Hey, I’m facing the exact same problem today. Do you think it's because of malware?

Nice find, that thread has some solid advice!