How do I stop a PowerShell script from deleting my Temp folder at startup?

0
11
Asked By CuriousCoder12 On

I upgraded to Windows 10 over a year ago, and I've just noticed a PowerShell script that runs every time my computer starts up. The command it runs is: "powershell.exe get-childitem -path $env:temp -force -recurse" | "remove-item -force -recurse". I've checked Task Scheduler and Autoruns but couldn't find this script. I've made sure Storage Sense is turned off, and I don't recall installing any third-party cleanup tools. What can I do to disable this script from running? Thanks!

1 Answer

Answered By TechGuru99 On

This could be a script that’s related to some mining malware. I’d recommend running some thorough scans to check your system for malware. You may want to use tools like Malwarebytes or a full scan with Windows Defender. Better safe than sorry!

CuriousCoder12 -

What would you suggest for a quick scan? I tried Windows Defender but it didn't catch anything.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.