Disable PowerShell logging files

Iron Contributor

Hello,

 

We have noticed that Powershell is logging files (Office365Powershell_20200316090129.txt) at C:\Users\<alias>\AppData\Local\Microsoft\Office365\Powershell. These seems to be generated by Powershell for diagnostic purposes.

 

How can we disable generation of these files? I am hoping to run some cmdlet or set some parameter to achieve the same.

 

Thank you,

Bhavpreet Bains

1 Reply

That's only for the MSOnline module, not PowerShell in general. But no, afaik there is no way to disable the logs.