Disable PSReadLine Command Logging

New Contributor

I need to disable PSReadline history save for all users in my organisation to prevent commands being written out to

%UserProfile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_History.txt

 

Set-PSReadlineOption -HistorySaveStyle SaveNothing only works for the current user context and in fact only seems to be applied for the current session and does not persist.

 

Are there GPO templates or registry keys that can be used to suppress the output?

Has anyone done this already?

 

 

0 Replies