From d5e3a4983428ae80917c9ba37a17041532addab9 Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:19:04 +0000 Subject: [PATCH] Create Clean-Command-History.txt --- Tools/Clean-Command-History.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Tools/Clean-Command-History.txt diff --git a/Tools/Clean-Command-History.txt b/Tools/Clean-Command-History.txt new file mode 100644 index 0000000..6f227d2 --- /dev/null +++ b/Tools/Clean-Command-History.txt @@ -0,0 +1,24 @@ +REM Title: Clean Command History +REM Author: @beigeworm | https://github.com/beigeworm +REM Description: Empty the temp folder and recycle bin, clear run box and powershell history. +REM Target: Windows 10 +REM Credit: I-Am-Jakoby + +REM some setup for dukie script. +DEFAULT_DELAY 100 + +GUI r +DELAY 750 + +REM open powershell (add "-W Hidden" to hide the window). +STRING powershell -NoP -NonI -Exec Bypass +CTRL-SHIFT ENTER +DELAY 1500 +ALT y +DELAY 5000 + +STRING rm $env:TEMP\* -r -Force -ErrorAction SilentlyContinue ; reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f ; Remove-Item (Get-PSreadlineOption).HistorySavePath ; Clear-RecycleBin -Force -ErrorAction SilentlyContinue +ENTER +DELAY 10000 +STRING exit +ENTER