Powershell starts on its own mid session and uses most of memory and CPU

Ahmed Ehab 20 Reputation points
2023-09-19T12:42:43.9933333+00:00

After about an hour from opening my PC, Powershell starts on its own in the background with three tasks as shown that consume most of the memory and CPU, and I have to manually stop them every timeScreenshot (431)

I don't have powershell in my startup apps, and I have checked the Task Schedular and It no tasks set to run related to powershell, I have tried disabling powershell in the LGPE but it still starts on its own.Screenshot (432)

It has become a pain to pause my work to stop these tasks, And It makes me anxious to leave my PC on idle fearing that it would start and use my resources.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2023-09-19T13:31:09.6433333+00:00

    You could be infected with malware like this user.

    https://learn.microsoft.com/en-us/answers/questions/1349917/windows-powershell-suddenly-pops-and-uses-too-much

    You first need to determine what scripts are being executed to see if they are legitimate or not.

    Open a powershell prompt with "run as administrator" and execute this command.

    Get-WmiObject Win32_Process -Filter "name = 'powershell.exe'" | select commandline
    
    

    What are the script file names? Do you recognize the folder names being related to something that you intentionally installed?

    In the link that I posted, there are instructions on how to use Autoruns to look for Powershell related startup entries. You can use that tool to disable/delete those entries.

    If you see strange names like 747D9CF3-170B-4097-A847-D75876F01A8C.ps1 then you probably are infected. Run a Defender scan and an MRT scan (see link).

    If they don't detect anything, install Malwarebytes and run a full scan.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.