-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bat
38 lines (28 loc) · 977 Bytes
/
main.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
IF not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /B)
title Last Activity View deleter ^| By AuchenDevs
:main
echo.
echo.
echo [1]. Delete
echo.
echo [2]. Exit
echo.
echo.
set /p opc=Option:
if "%opc%"=="1" goto delete
if "%opc%"=="1" del %~f0
echo No valid option selected!
timeout 2 /nobreak >nul
goto main
:delete
::Logon... reg
for /F %%a in ('wevtutil.exe el') do (wevtutil.exe cl "%%a" && set totalev+=1)
::Delete "View Folder in Explorer"
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f
::Delete MUICache (Thats for muicache viewer but anyways)
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" /f
::Delete prefetch the last one for hide all
takeown /f C:\Windows\Prefetch /r /d s
for /f %%a in ('dir C:\Windows\Prefetch /b') do (del /f /s /q C:\Windows\Prefetch\%%a && set /a totalp+=1)
goto main