Files
windows11/clean/README.md
T

20 lines
389 B
Markdown
Raw Normal View History

2023-07-18 17:57:00 +03:00
### Old script:
2023-07-18 17:56:44 +03:00
```cmd
2022-10-26 18:08:49 +03:00
@set @x=0; new ActiveXObject('Shell.Application').ShellExecute ('cmd.exe','/K ' + '"' + WScript.ScriptFullName + '"' + ' Admin','','runas',1);/*
@echo off
if "%~1" neq "Admin" (
cscript.exe //nologo //e:jscript "%~f0"
) else (
rd "C:\Temp" /s /q
rd "C:\Users\Admin\AppData\Local\Temp" /s /q
rd "%homepath%/Searches" /s /q
rd "C:\PerfLogs" /s /q
)
exit
*/
2023-07-18 17:56:44 +03:00
```