Skip to content

disable (and scrub existing) history permanently #3733

Closed Answered by mkvlrn-cm42
mkvlrn-cm42 asked this question in Q&A
Discussion options

You must be logged in to vote

welp, I should have done a bit more research! found the answer a bit after posting this, so I'll just share anyway:

https://www.blackhillsinfosec.com/new-powershell-history-defense-evasion-technique/

Remove-Item (Get-PSReadlineOption).HistorySavePath to delete history
Set-PSReadLineOption -AddToHistoryHandler { return $false } in your profile to disable

real solution is to just disable predictions. duh.
Set-PSReadLineOption -PredictionSource None in the profile. k, I'm done editing now.

cheers!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mkvlrn-cm42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant