I’ve come across a strange behavior of powershell.exe. Whenever a new powershell.exe process is started, a randomly-named PS1 file (e.g., “x2xj20xc.cez.ps1”) is written to the user’s temp directory. The file contains only the character ‘1’ and only persists for a few milliseconds.
(Assuming your temp dir is empty to begin with) Try:
while ($true) { Get-ChildItem $env:TEMP\*.ps1 }
and/or
while ($true) { Get-ChildItem $env:TEMP\*.ps1 | Get-Content }
and then start powershell.exe in another window.
This isn’t breaking anything for me. I’m just really curious if anyone knows what this is about.