none
Random Powershell output files in c:\windows\temp

    Question

  • Hi all.  I am having a weird issue that I do not understand.  I have a 2012 r2 server running Powershell 5.1.  The c drive on this server filled up.  During troubleshooting a bunch of large text files (aaoXXXX where x are random numbers) were discovered that contained output from the powershell console from different scripts that are running on this server.  The strange part is the output in the temp file contains output from a write-host command, start-job output, receive-job output, and string contents of a variable with write-output.  In the script itself, it outputs only the string contents of a variable through write-eventlog.  No other content is written outside of the powershell console.  How does Powershell generate this temp file? Why does powershell generate this temp file and how do I configure powershell not to generate this content.

    Thanks in advanced

    Thursday, April 18, 2019 5:01 PM

All replies