@echo off :MENU cls title coRpSE's CleanUp Utility REM ##################################### ART START ##################################### for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. REM ## Administration Cheking system. We are seeing if you ran this file as Administrator or not. echo Administrative permissions required. echo Detecting permissions... timeout /t 1 /nobreak > NUL net session >nul 2>&1 if %errorLevel% == 0 ( echo --- Success: Administrative permissions confirmed. --- timeout /t 1 /nobreak > NUL ) else ( echo --- Failure: Current permissions inadequate. --- timeout /t 1 /nobreak > NUL echo Some features will not work until you run this script as Administrator timeout /t 1 /nobreak > NUL echo. timeout /t 1 /nobreak > NUL echo Just need to "Right click" on the .bat file and select "Run as Administrator" timeout /t 1 /nobreak > NUL echo Close and try again Please. ^(Or just hit any key to close^). pause > NUL exit ) REM ## End of adminstration Checking system. REM ## Disclaimer Message, basically saying I am not responsible fo what you do with this. echo. echo !!WARNING!! ( Disclaimer: Read [?] About / Copyright Section FIRST  ) !!WARNING!! REM Menu begining. echo. echo ######################################### echo ## coRpSE's Utility Menu ## echo ######################################### echo ## 1. Start Simple CleanUp echo ## 2. Start Deeper CleanUp echo ## 3. System Information echo ## 4. Check ^& Repair Windows 10 echo ## 5. Image Repair Win 10 - Run only if #4 showed issues echo ## 6. Open Host File echo ## 7. Open Disk CleanUp echo ## 8. Open Disk Managment echo ## 9. Network Check (Pings/Traceroute google.com by Default) echo ## 10. Ping/Traceroute Custom IP/URL echo ## 11. Flush DNS echo ## 12. Port Listing echo ## 13. Reliability Monitor echo ## 14. Win10 AutoClean on Boot echo ## 15. Win10 Color Calabration echo ## 16. Make Godmode Shortcut echo ## 17. Rebuild Icon Cache echo ## 18. Retreve Win 10 Product Key echo ## 19. Uninstaller - (Semi Advanced) echo ## ?. About / Copyright echo ## Q. Exit Script echo ## echo ## 54. ASCII Starwars - Threw this in just for fun. (54, AKA May the 4th be with you)  echo ######################################### echo. set N= set /P N=Type a number between (1 - 14), Q, or (?) then press ENTER: if %N%==1 GOTO CLEAN if %N%==2 GOTO DCLEAN if %N%==3 GOTO SYSTEM if %N%==4 GOTO WINFIX if %N%==5 GOTO IMGREPAIR if %N%==6 GOTO HOST if %N%==7 GOTO DISKC if %N%==8 GOTO DISKMANAGE if %N%==9 GOTO NETWORK if %N%==10 GOTO YTRACEPING if %N%==11 GOTO FDNS if %N%==12 GOTO TPORT if %N%==13 GOTO OPENREL if %N%==14 GOTO ACCHECK if %N%==15 GOTO CCAL if %N%==16 GOTO GODMODE if %N%==17 GOTO REBUILDICON if %N%==18 GOTO WIN10KEY if %N%==19 GOTO CUNINSTALLER if %N%==? GOTO ABOUT if %N%==Q GOTO QUIT if %N%==q GOTO QUIT if %N%==54 GOTO STARWARS if %N%==45 GOTO STARWARS cls for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A echo *Cough* *Cough* timeout /t 3 /nobreak > NUL echo '%N%' is not valid timeout /t 2 /nobreak > NUL echo Please try again timeout /t 4 /nobreak > NUL cls GOTO MENU REM:| Variable | Default Value | REM:|----------------|------------------------------------------------------------------------------| REM:| %SystemDrive% | C: | REM:| %ProgramFiles% | C:\Program Files | REM:| %AppData% | C:\Users\{username}\AppData\Roaming | REM:| %LocalAppData% | C:\Users\{username}\AppData\Local | REM:| %UserProfile% | C:\Users\{username} | REM:| %UserName% | {username} | REM:| %COMPUTERNAME% | {computername} | REM:| %PATH% | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} | REM: Full guide here: https://en.wikipedia.org/wiki/Environment_variable#Windows REM:|----------------|------------------------------------------------------------------------------| REM:| /p | Prompts for confirmation before deleting the specified file. | REM:| /f | Forces deletion of read-only files. | REM:| /s | Deletes specified files from the current directory and all subdirectories. | REM:| | Displays the names of the files as they are being deleted. | REM:| /q | Specifies quiet mode. You are not prompted for delete confirmation. | REM:|----------------|------------------------------------------------------------------------------| REM ##################################################################################################################################### REM ###################################################### NEW SECTION [1] ############################################################## REM starts the clean up :CLEAN @echo off cls REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. timeout /t 1 /nobreak > NUL echo. echo Just know, this can take a few min. timeout /t 1 /nobreak > NUL GOTO CLEANQ :CLEANQ echo After I am done clearing your PC, set choice= set /p choice=Do you want me to shutdown your PC? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "powerc=SHUTDOWN" && GOTO CLEAN2 if /i '%choice%'=='n' set "powerc=" && GOTO CLEAN2 if '%choice%'=='' GOTO CLEANQ2-1 echo "%choice%" is not valid echo. GOTO CLEANQ2-1 :CLEANQ2-1 cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. echo I'm sorry, but you must input a valid option. echo. echo After I am done clearing your PC, set choice= set /p choice=Do you want me to shutdown your PC? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "powerc=SHUTDOWN" && GOTO CLEAN2 if /i '%choice%'=='n' set "powerc=" && GOTO CLEAN2 if '%choice%'=='' GOTO CLEANQ2-1 echo "%choice%" is not valid echo. GOTO CLEANQ2-1 :CLEAN2 cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. set choice= set pdelete= set /p choice=Do you want me empty your Recycling Bin? ^(permanently deleted^) ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "pdelete=YES" && GOTO CLEAN3 if /i '%choice%'=='n' set "pdelete=NO" && GOTO CLEAN3 if '%choice%'=='' GOTO CLEANQ2-1 echo "%choice%" is not valid echo. GOTO CLEAN2 :CLEAN3 timeout /t 1 /nobreak > NUL echo. echo Cleanup will begin. timeout /t 1 /nobreak > NUL echo. if "%pdelete%"=="YES" ( for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( rd /s /q %%d:\$Recycle.bin 2>NUL ) echo Recycle bin emptied. timeout /t 1 /nobreak > NUL echo. ) del %temp%\*.tmp /f /s /q del %windir%\prefetch\*.* /f /s /q del %windir%\temp\*.* /f /s /q rmdir /s /q %windir%\temp\ if exist %LocalAppData%\temp\*.* ( del %LocalAppData%\temp\*.* /f /s /q for /d %%i in (%LocalAppData%\temp\*.*) do @rmdir /s /q "%%i" ) if exist %HOMEDRIVE%\*.tmp del %HOMEDRIVE%\*.tmp /f /s /q if exist %HOMEDRIVE%\temp\*.tmp del %HOMEDRIVE%\temp\*.tmp /f /s /q if exist %windir%\prefetch\*.* del %windir%\prefetch\*.* /f /s /q if exist %windir%\temp\*.* del %windir%\temp\*.* /f /s /q if exist %windir%\temp\ rmdir /s /q %windir%\temp\ if exist %windir%\SoftwareDistribution\Download rd /s /q %windir%\SoftwareDistribution\Download if exist %ALLUSERSPROFILE%\Microsoft\Windows\WER\Reportqueue rmdir /s /q %ALLUSERSPROFILE%\Microsoft\Windows\WER\Reportqueue echo. echo Cleaning of junk files is finished! echo. timeout /t 2 /nobreak > NUL echo If you want even better cleaning, think about installing Glary Utilities timeout /t 2 /nobreak > NUL echo it's free!!! timeout /t 1 /nobreak > NUL echo. echo ^>^> www.glarysoft.com ^<^< echo. goto SHUTDOWN REM ###################################################### NEW SECTION [2] ############################################################## REM starts the clean up :DCLEAN @echo off cls REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. timeout /t 1 /nobreak > NUL echo. echo Cleaning system junk files, please wait... timeout /t 1 /nobreak > NUL echo This can take a few min before you see anything happen. timeout /t 1 /nobreak > NUL echo if programs are using the files, those files will not be deleted. timeout /t 1 /nobreak > NUL echo. GOTO DCLEANQ :DCLEANQ echo After I am done clearing your PC, set choice= set /p choice=Do you want me to shutdown your PC? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "powerc=SHUTDOWN" && GOTO DCLEAN2 if /i '%choice%'=='n' set "powerc=" && GOTO DCLEAN2 if '%choice%'=='' GOTO DCLEANQ2 echo "%choice%" is not valid echo. GOTO DCLEANQ2 :DCLEANQ2 cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. echo I'm sorry, but you must input a valid option. echo. echo After I am done clearing your PC, set choice= set /p choice=Do you want me to shutdown your PC? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "powerc=SHUTDOWN" && GOTO DCLEAN2 if /i '%choice%'=='n' set "powerc=" && GOTO DCLEAN2 if '%choice%'=='' GOTO DCLEANQ2 echo "%choice%" is not valid echo. GOTO DCLEANQ2 :DCLEAN2 cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. set choice= set pdelete= set /p choice=Do you want me empty your Recycling Bin? ^(permanently deleted^) ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "pdelete=YES" && GOTO DCLEAN3 if /i '%choice%'=='n' set "pdelete=NO" && GOTO DCLEAN3 if '%choice%'=='' GOTO CLEANQ2-1 echo "%choice%" is not valid echo. GOTO CLEAN2 :DCLEAN3 timeout /t 1 /nobreak > NUL echo. echo Cleanup will begin. timeout /t 1 /nobreak > NUL echo. if "%pdelete%"=="YES" ( for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( rd /s /q %%d:\$Recycle.bin 2>NUL ) echo Recycle bin emptied. timeout /t 1 /nobreak > NUL echo. ) del %temp%\*.tmp /f /s /q del %windir%\prefetch\*.* /f /s /q del %windir%\temp\*.* /f /s /q rmdir /s /q %windir%\temp\ if exist %LocalAppData%\temp\*.* ( del %LocalAppData%\temp\*.* /f /s /q for /d %%i in (%LocalAppData%\temp\*.*) do @rmdir /s /q "%%i" ) if exist %HOMEDRIVE%\*.tmp del %HOMEDRIVE%\*.tmp /f /s /q if exist %HOMEDRIVE%\temp\*.tmp del %HOMEDRIVE%\temp\*.tmp /f /s /q if exist %windir%\prefetch\*.* del %windir%\prefetch\*.* /f /s /q if exist %windir%\temp\*.* del %windir%\temp\*.* /f /s /q if exist %windir%\temp\ rmdir /s /q %windir%\temp\ if exist %windir%\SoftwareDistribution\Download rd /s /q %windir%\SoftwareDistribution\Download if exist %ALLUSERSPROFILE%\Microsoft\Windows\WER\Reportqueue rmdir /s /q %ALLUSERSPROFILE%\Microsoft\Windows\WER\Reportqueue echo Simple clean done, Deep cleaning initiated!!! echo. timeout /t 2 /nobreak > NUL del /f /s /q %windir%\*.bak del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /q %userprofile%\cookies\*.* del /f /s /q %userprofile%\Local Settings\Temporary Internet Files\*.* del /f /s /q %userprofile%\Local Settings\Temp\*.* del /f /s /q %userprofile%\recent\*.* echo. echo Cleaning of junk files is finished! echo. timeout /t 2 /nobreak > NUL echo If you want even better cleaning, think about installing Glary Utilities timeout /t 2 /nobreak > NUL echo it's free!!! timeout /t 1 /nobreak > NUL echo. echo ^>^> www.glarysoft.com ^<^< echo. goto SHUTDOWN REM ###################################################### NEW SECTION [3] ############################################################## REM shows sytem info :SYSTEM @echo off cls for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo Please wait... Checking system information. echo. :: Section 1: OS information. echo ============================ echo = OS INFO echo ============================ systeminfo | findstr /c:"Registered Owner" systeminfo | findstr /c:"OS Name" systeminfo | findstr /c:"OS Version" systeminfo | findstr /c:"System Type" echo. :: Section 2: Hardware information. echo ============================ echo = HARDWARE INFO echo ============================ systeminfo | findstr /c:"Total Physical Memory" wmic cpu get name systeminfo | findstr /c:"BIOS Version" echo. :: Section 3: Networking information. echo ============================ echo = NETWORK INFO echo ============================ ipconfig | findstr IPv4 ipconfig | findstr IPv6 echo. :: Section 4: Memory information. echo ============================ echo = MEMORY INFO echo ============================ wmic MEMORYCHIP get Manufacturer, Description, BankLabel, DeviceLocator, MemoryType, TypeDetail, Capacity, Speed, Partnumber echo You can find more about MemoryType here: echo https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/cim-chip echo. :: Section 5: Disk health echo ============================ echo = DISK DRIVES ^& HEALTH STATUS echo ============================ wmic diskdrive list brief echo. wmic diskdrive get status, model echo. :start set choice= set /p choice=Would you like me to Export this to a text file? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO YES if '%choice%'=='y' GOTO YES if '%choice%'=='N' GOTO ADVANCED if '%choice%'=='n' GOTO ADVANCED if '%choice%'=='' GOTO ADVANCED echo "%choice%" is not valid echo. GOTO start :YES @echo off echo Exporting System Info... echo.>%UserProfile%\SYSTEM-INFO.txt :: Section 1: OS information echo ============================ >> %UserProfile%\SYSTEM-INFO.txt echo = OS INFO >> %UserProfile%\SYSTEM-INFO.txt echo ============================ >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"Registered Owner" >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"OS Name" >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"OS Version" >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"System Type" >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt :: Section 2: Hardware information. echo ============================ >> %UserProfile%\SYSTEM-INFO.txt echo = HARDWARE INFO >> %UserProfile%\SYSTEM-INFO.txt echo ============================ >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"Total Physical Memory" >> %UserProfile%\SYSTEM-INFO.txt wmic cpu get name |more >> %UserProfile%\SYSTEM-INFO.txt systeminfo | findstr /c:"BIOS Version" >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt :: Section 3: Networking information. echo ============================ >> %UserProfile%\SYSTEM-INFO.txt echo = NETWORK INFO >> %UserProfile%\SYSTEM-INFO.txt echo ============================ >> %UserProfile%\SYSTEM-INFO.txt ipconfig | findstr IPv4 >> %UserProfile%\SYSTEM-INFO.txt ipconfig | findstr IPv6 >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt :: Section 4: Memory information. echo ============================ >> %UserProfile%\SYSTEM-INFO.txt echo = MEMORY INFO >> %UserProfile%\SYSTEM-INFO.txt echo ============================ >> %UserProfile%\SYSTEM-INFO.txt wmic MEMORYCHIP get Manufacturer, Description, BankLabel, DeviceLocator, MemoryType,TypeDetail, Capacity, Speed, Partnumber |more >> %UserProfile%\SYSTEM-INFO.txt echo You can find more about MemoryType here: >> %UserProfile%\SYSTEM-INFO.txt echo https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/cim-chip >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt :: Section 5: Disk health echo ============================ >> %UserProfile%\SYSTEM-INFO.txt echo = DISK DRIVES ^& HEALTH STATUS >> %UserProfile%\SYSTEM-INFO.txt echo ============================ >> %UserProfile%\SYSTEM-INFO.txt wmic diskdrive list brief |more >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt wmic diskdrive get status, model |more >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt echo -------------------------------------------------------------------------------------------------- >> %UserProfile%\SYSTEM-INFO.txt echo ------------------------------------------- FULL DUMP -------------------------------------------- >> %UserProfile%\SYSTEM-INFO.txt echo -------------------------------------------------------------------------------------------------- >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt SYSTEMINFO >> %UserProfile%\SYSTEM-INFO.txt echo. >> %UserProfile%\SYSTEM-INFO.txt timeout /t 2 /nobreak > NUL echo SYSTEM-INFO.txt Exported! echo. echo File can be found in your folder^: echo %UserProfile%\SYSTEM-INFO.txt timeout /t 3 /nobreak > NUL echo. :OPENFILE set choice= set /p choice=Do you want to view the file now? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO OPEN if '%choice%'=='y' GOTO OPEN if '%choice%'=='N' GOTO ADVANCED if '%choice%'=='n' GOTO ADVANCED if '%choice%'=='' GOTO ADVANCED echo "%choice%" is not valid echo. GOTO OPENFILE :OPEN echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 3 /nobreak > NUL notepad.exe %UserProfile%\SYSTEM-INFO.txt pause goto ADVANCED :ADVANCED echo. set choice= set /p choice= Would you like me to open a more advanced system info? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO OPENADVANCED if '%choice%'=='y' GOTO OPENADVANCED if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO ADVANCED echo "%choice%" is not valid echo. GOTO ADVANCED :OPENADVANCED echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 1 /nobreak > NUL msinfo32 pause goto MENU REM ###################################################### NEW SECTION [4] ############################################################## REM Windows 10 Check and replair :WINFIX @echo off cls echo. echo We are about to perform a Windows 10 check that will see if any echo files are bad, and if they are, it will attempt to fix them. This is echo a default Windows checker that is found in Windows 10. echo. echo Note: echo This will not delete any of your programs or files. echo This also can take a while... timeout /t 5 /nobreak sfc /scannow pause goto MENU REM ###################################################### NEW SECTION [5] ############################################################## :IMGREPAIR cls @echo off echo. echo Just note, You don't need to have any errors or have run anything prior to this, I have these checks echo in for more of a warning/information for you. These are all safe systems that come built in Windows 10. echo If you really wanted to, you can just answer Yes (Y) to everything. echo. echo. echo Have you run the Windows 10 Check and replair, ^[4^], first? echo If the answer is No, then I^'ll send you to option ^[4^] first. set choice= set pingsite= set /p choice=So, did you run it? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO IMGRCHECK if '%choice%'=='y' GOTO IMGRCHECK if '%choice%'=='N' GOTO WINFIX if '%choice%'=='n' GOTO WINFIX if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. :IMGRCHECK cls @echo off echo. echo On Windows 10, Deployment Image Servicing and Management (DISM) is a tool designed echo for network administrators to prepare, modify, and repair system images, including the echo Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). However, anyone echo can also use the tool to fix common problems with the hidden recovery image on your computer. echo. echo Usually, when your device is experiencing performance issues, doesn't start correctly, or echo you're troubleshooting errors, you can use the System File Checker tool to scan, detect, and echo replace corrupted or missing system files using the locally available recovery image. echo. echo However, if the replacement files inside the Windows 10 image are damaged in any way, the echo SFC tool, (Option ^[4^], Windows 10 Check and replair), won't work. In this particular situation, echo you can use the system to scan and repair the "install.wim" image, which you can then use with echo SFC, (Option ^[4^], Windows 10 Check and replair), to repair your installation. echo. echo. echo We will start our 2 phase system here. This can take some time so be patient. echo. echo Would you like to proceed? echo If the answer is No, then I^'ll send you to Main Menu. set choice= set pingsite= set /p choice=So, you ready to proceed? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO IMGRCHECKY if '%choice%'=='y' GOTO IMGRCHECKY if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :IMGRCHECKY cls @echo off echo. echo Lets start off with running an advanced scan to determine if the Windows 10 Image has issues. timeout /t 2 /nobreak > NUL echo. echo -----------------------------------[ Starting Health Check ]---------------------------------------- echo. DISM /Online /Cleanup-Image /ScanHealth echo. echo -----------------------------------[ Finished Health Check ]---------------------------------------- echo. timeout /t 2 /nobreak > NUL echo. echo Now, looking at that output above, does it say/or show it has any erros or component corruption echo If you see the below message, that is a good sign and you will answer No, (N), for the below question. echo. echo [==========================100.0%==========================] No component store corruption detected. echo If the answer is No, then I^'ll send you to Main Menu. set choice= set pingsite= set /p choice=was there errors? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO IMGRCHECKF if '%choice%'=='y' GOTO IMGRCHECKF if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :IMGRCHECKF cls @echo off echo. echo Okay, so we are in phase 2 of this two step process. If you are here, then I am echo guessing that there was an issue with your Windows 10 image and we need to repair that. echo If I am right, then please confirm one last time and then we will proceed. echo If the answer is No, then I^'ll send you to Main Menu. echo. timeout /t 5 /nobreak > NUL set choice= set pingsite= set /p choice=So, are you positive you want to proceed. ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO IMGRCHECKFC if '%choice%'=='y' GOTO IMGRCHECKFC if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :IMGRCHECKFC cls @echo off echo. echo Okay, before we start, I like to note that while the command is running, it's expected to see echo the process get stuck at 20 or 40 percent. After a few minutes, (or longer), the process will echo complete successfully. I have seen this get stuck for over an hour+ before. echo. timeout /t 5 /nobreak > NUL echo !!WARNING!! ( Disclaimer: Do not close this out, just let it run...  ) !!WARNING!! echo. timeout /t 2 /nobreak > NUL echo -----------------------------------[ Starting Health Check ]---------------------------------------- echo. DISM /Online /Cleanup-Image /RestoreHealth echo. echo -----------------------------------[ Finished Health Check ]---------------------------------------- echo. timeout /t 5 /nobreak > NUL set choice= set pingsite= set /p choice=Would you like to do some cleanup? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% echo !!Warning^: All existing service packs and updates cannot be uninstalled after this command is completed. echo This will not block the uninstallation of future service packs or updates!! if '%choice%'=='Y' GOTO IMGRCLEANUP if '%choice%'=='y' GOTO IMGRCLEANUP if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :IMGRCLEANUP cls @echo off echo. echo Okay, this may take a few min, but I am going to first anaylze the component store, then we will cleanup and reset the base. echo. timeout /t 2 /nobreak > NUL echo -----------------------------------[ Analyze Component Store ]---------------------------------------- echo. Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore echo. echo -----------------------------------[ Finished Analyzing Component Store ]---------------------------------------- echo. echo Starting the next section in 5 seconds timeout /t 5 /nobreak > NUL cls echo. echo -----------------------------------[ Starting Component Cleanup]---------------------------------------- echo. Dism.exe /online /Cleanup-Image /StartComponentCleanup echo. echo -----------------------------------[ Finished Component Cleanup ]---------------------------------------- echo. echo Starting the next section in 5 seconds timeout /t 5 /nobreak > NUL cls echo. echo -----------------------------------[ Starting Reseting Base ]---------------------------------------- echo. Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase echo. echo -----------------------------------[ Finished Reseting Base ]---------------------------------------- echo. timeout /t 3 /nobreak > NUL cls echo. /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo Your Image Cleanup is compleated. pause GOTO MENU REM ###################################################### NEW SECTION [6] ############################################################## :HOST @echo off cls for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A echo. echo. echo Let me open the Host for you. timeout /t 3 /nobreak > NUL echo. echo Be careful on what you edit in this file. timeout /t 1 /nobreak > NUL notepad %windir%\system32\drivers\etc\hosts pause goto MENU REM ###################################################### NEW SECTION [7] ############################################################## :DISKC @echo off cls echo. for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A echo. echo. echo Let me open Disk Cleanup for you. timeout /t 3 /nobreak > NUL echo. echo Just select the drive to clean. timeout /t 1 /nobreak > NUL %windir%\SYSTEM32\cleanmgr.exe pause goto MENU REM ###################################################### NEW SECTION [8] ############################################################## :DISKMANAGE @echo off cls echo. echo Let me open Disk Management for you timeout /t 2 /nobreak > NUL echo. diskmgmt.msc echo Disk Managment has been closed pause goto MENU REM ###################################################### NEW SECTION [9] ############################################################## :NETWORK @echo off echo. echo Would you like to use Google for the ping? echo If the answer is No, then we^'ll use Cloudflare instead. set choice= set pingsite= set /p choice=So, use Google to the ping? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' set "pingsite=Google" if '%choice%'=='y' set "pingsite=Google" if '%choice%'=='N' set "pingsite=Cloudflare" if '%choice%'=='n' set "pingsite=Cloudflare" if '%choice%'=='' set "pingsite=Google" echo "%choice%" is not valid echo. cls REM Lets check to see the network details and then ping & traceroute to google.com REM View network connection details echo. set pingip= if "%pingsite%"=="Google" ( set "pingip=8.8.8.8" ) ELSE ( set "pingip=1.1.1.1" ) echo -----------------------------------[ Network Info ]---------------------------------------- ipconfig /all echo. echo. timeout /t 2 /nobreak > NUL echo -------------------------------------[ Pinging %pingsite% ]------------------------------------------- ping %pingip% -n 1 -w 1000 > NUL if errorlevel 1 ( echo  Not connected to internet echo Please check your internet connection and try again. echo. pause GOTO MENU ) REM Check if google.com is reachable ping %pingip% echo. echo. echo ------------------------------------[ Traceroute to %pingsite% ]----------------------------------------- REM Run a traceroute to check the route to google.com tracert %pingip% :PTSAVE echo. set choice= set /p choice=Would you like me to Export this to a text file? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO NYES if '%choice%'=='y' GOTO NYES if '%choice%'=='N' GOTO TRACEPING if '%choice%'=='n' GOTO TRACEPING if '%choice%'=='' GOTO TRACEPING echo "%choice%" is not valid echo. GOTO PTSAVE :NYES @echo off echo Okay, I will export this to a file. echo This can take a min or two. REM View network connection details echo. > %UserProfile%\Network_Results.txt echo -----------------------------------[ Network Info ]---------------------------------------- >> %UserProfile%\Network_Results.txt ipconfig /all >> %UserProfile%\Network_Results.txt REM Check if Google.com is reachable echo. >> %UserProfile%\Network_Results.txt echo. >> %UserProfile%\Network_Results.txt echo -------------------------------------[ Pinging %pingsite% ]------------------------------------------- >> %UserProfile%\Network_Results.txt ping %pingip% >> %UserProfile%\Network_Results.txt echo. >> %UserProfile%\Network_Results.txt echo. >> %UserProfile%\Network_Results.txt echo ------------------------------------[ Traceroute to %pingsite% ]----------------------------------------- >> %UserProfile%\Network_Results.txt REM Run a traceroute to check the route to Google.com tracert %pingip% >> %UserProfile%\Network_Results.txt timeout /t 3 /nobreak > NUL echo. echo File can be found in your folder^: echo %UserProfile%\Network_Results.txt timeout /t 3 /nobreak > NUL echo. :NOPENFILE set choice= set /p choice=Do you want to view the file now? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO NOPEN if '%choice%'=='y' GOTO NOPEN if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO NOPENFILE :NOPEN echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 3 /nobreak > NUL notepad.exe %UserProfile%\Network_Results.txt pause goto MENU pause goto MENU REM Here, lets see if you like to do a custom trace/ping to a specified URL/IP. :TRACEPING echo. set choice= set /p choice=Would you like to ping/traceroute to a custom URL/IP? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO YTRACEPING if '%choice%'=='y' GOTO YTRACEPING if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO TRACEPING REM ###################################################### NEW SECTION [10] ############################################################## :YTRACEPING cls set /p address="Type the URL/IP you like to ping/traceroute: " timeout /t 1 /nobreak > NUL echo Okay, pinging %address% then doing a traceroute. timeout /t 3 /nobreak > NUL echo. echo. echo ----------------------------------[Pinging address]-------------------------------------- ping %address% timeout /t 1 /nobreak > NUL echo. echo. echo ------------------------------------[Traceroute]----------------------------------------- timeout /t 1 /nobreak > NUL tracert %address% echo. :CPTSAVE echo. set choice= set /p choice=Would you like me to Export this to a text file? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO PTYES if '%choice%'=='y' GOTO PTYES if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO CPTSAVE :PTYES @echo off echo Okay, I will export this to a file. echo This can take a min or two. REM Ping echo. > %UserProfile%\Ping_Traceroute.txt echo ----------------------------------[Pinging address]-------------------------------------- >> %UserProfile%\Ping_Traceroute.txt ping %address% >> %UserProfile%\Ping_Traceroute.txt echo. >> %UserProfile%\Ping_Traceroute.txt echo. >> %UserProfile%\Ping_Traceroute.txt echo ------------------------------------[Traceroute]----------------------------------------- >> %UserProfile%\Ping_Traceroute.txt REM Traceroute tracert %address% >> %UserProfile%\Ping_Traceroute.txt timeout /t 3 /nobreak > NUL echo. :PTOPENFILE set choice= set /p choice=Do you want to view the file now? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO PTOPEN if '%choice%'=='y' GOTO PTOPEN if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO PTOPENFILE :PTOPEN echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 3 /nobreak > NUL notepad.exe %UserProfile%\Ping_Traceroute.txt pause goto MENU REM ###################################################### NEW SECTION [11] ############################################################## :FDNS cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. echo Starting of flushing the DNS Resolver Cache timeout /t 1 /nobreak > NUL GOTO FDNS2 :FDNS2 echo After I am done clearing your PC cache, would you like me to set choice= set /p choice=dump and renew your DHCP assigned addresses? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "addrenew=RENEW" && GOTO FDNS3 if /i '%choice%'=='n' set "addrenew=" && GOTO FDNS3 if '%choice%'=='' GOTO FDNS2-1 echo "%choice%" is not valid echo. GOTO FDNS2 :FDNS2-1 cls @echo off REM ##################################### ART START ##################################### for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A for /f "tokens=* delims=!:" %%A in ('findstr /b :!: "%~f0"') do @echo(%%A REM ###################################### ART END ###################################### echo. echo I'm sorry, but you must input a valid option. echo. echo So... echo After I am done clearing your PC cache, would you like me to set choice= set /p choice=dump and renew your DHCP assigned addresses? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='y' set "addrenew=RENEW" && GOTO FDNS3 if /i '%choice%'=='n' set "addrenew=" && GOTO FDNS3 if '%choice%'=='' GOTO FDNS2-1 echo "%choice%" is not valid echo. GOTO FDNS2-1 :FDNS3 echo This will take a second. timeout /t 1 /nobreak > NUL ipconfig /flushdns timeout /t 1 /nobreak > NUL GOTO RENEW :RENEW if "%addrenew%"=="RENEW" ( timeout /t 1 /nobreak > NUL echo. echo Lets release your address then renew it: timeout /t 2 /nobreak > NUL ipconfig /release echo. echo Address has been released. Lets renew it now. echo. timeout /t 1 /nobreak >Nul ipconfig /renew echo. echo Renewed and done. pause goto MENU ) ELSE ( pause goto MENU ) REM ###################################################### NEW SECTION [12] ############################################################## :TPORT @echo off cls REM Lets check to see what ports are listening and what not. echo. echo -----------------------------------[ Full Active Port Listing ]---------------------------------------- netstat -a echo. :PORTSAVE echo. set choice= set /p choice=Would you like me to Export this to a text file? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO PORTYES if '%choice%'=='y' GOTO PORTYES if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO PORTSAVE :PORTYES @echo off echo Okay, I will export this to a file. echo This can take a min or two. echo. > %UserProfile%\Port_Test_Results.txt echo -----------------------------------[ Full Active Port Listing ]---------------------------------------- >> %UserProfile%\Port_Test_Results.txt netstat -a >> %UserProfile%\Port_Test_Results.txt echo. >> %UserProfile%\Port_Test_Results.txt timeout /t 3 /nobreak > NUL echo. echo File can be found in your folder^: echo %UserProfile%\Port_Test_Results.txt timeout /t 3 /nobreak > NUL echo. :PORTOPENFILE set choice= set /p choice=Do you want to view the file now? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO OPENPFILE if '%choice%'=='y' GOTO OPENPFILE if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO PORTOPENFILE :OPENPFILE echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 3 /nobreak > NUL notepad.exe %UserProfile%\Port_Test_Results.txt pause goto MENU pause goto MENU REM ###################################################### NEW SECTION [13] ############################################################## REM Open Reliability Monitor :OPENREL cls @echo off echo. echo Opening Reliability Monitor, timeout /t 1 /nobreak > NUL echo This may take a few seconds timeout /t 1 /nobreak > NUL perfmon /rel timeout /t 2 /nobreak > NUL echo. echo Windows Realiability Monitor closed. pause GOTO MENU REM ###################################################### NEW SECTION [14] ############################################################## REM Auto Clean system for Windowns 10, (on boot). Creates a file in the Startup folder. :ACCHECK echo off cls for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo If you are here, then you are either looking to create or remove the AutoClean temp echo script that runs on Windows startup. What this file does, is that it removes any temp files that echo may be on your windows when you go start your PC. Just know, you may see a cmd prompt popup echo on startup and your PC can take a few seconds longer to start. timeout /t 3 /nobreak > NUL echo. echo We are doing a check to see if you have the AutoClean.bat file already. timeout /t 2 /nobreak > NUL echo. if exist "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\AutoClean.bat" ( echo File does exist. goto DACYN ) else ( echo File doesn't exist. echo. goto ACYN ) :ACYN @echo off echo. set choice= set /p choice=Would you like to create a AutoClean.bat file to run at Windows startup? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO CREATEAC if '%choice%'=='y' GOTO CREATEAC if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :CREATEAC @echo off echo Creating AutoClean.bat in the folder: echo %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\ timeout /t 2 /nobreak > NUL echo This will take a few seconds. timeout /t 2 /nobreak > NUL cd "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\" echo @echo off > "AutoClean.bat" echo rd %%temp%% /s /q >> "AutoClean.bat" echo md %%temp%% >> "AutoClean.bat" echo. timeout /t 2 /nobreak > NUL if exist "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\AutoClean.bat" ( echo File created. echo Next time you restart your PC, this script will go into action. ) else ( echo **Error** Something went wrong and the file was not created. ) pause GOTO MENU :DACYN @echo off echo. set choice= set /p choice=Would you like to delete the AutoClean.bat file that runs at Windows startup? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO DELETEAC if '%choice%'=='y' GOTO DELETEAC if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. pause :DELETEAC @echo off echo Deleting AutoClean.bat in the folder: echo %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\ timeout /t 2 /nobreak > NUL echo This will take a second. timeout /t 2 /nobreak > NUL del "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\AutoClean.bat" /f /s /q echo. timeout /t 2 /nobreak > NUL if exist "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\AutoClean.bat" ( echo File was not deleted. echo You may need to manually delete this file. echo Step 1. echo Please type in your Windows search bar, ^(Cortana Search bar^), echo "run", without the quotes echo. echo Step 2. echo Type shell:Startup into the run. echo . echo Step 3. echo In that folder, you should see a file called AutoClean.bat, echo Right click on that file and select delete. echo. echo Your Done. ) else ( echo File has been deleted successfully. ) pause GOTO MENU REM ###################################################### NEW SECTION [15] ############################################################## :CCAL cls @echo off echo. echo Attempting to open the built in Windows 10 Display Color Calabration timeout /t 2 /nobreak > NUL echo Opening now. timeout /t 1 /nobreak > NUL dccw.exe echo Windows 10 Display Color Calabration closed. timeout /t 2 /nobreak > NUL pause GOTO MENU REM ###################################################### NEW SECTION [16] ############################################################## REM Make Godmode button :GODMODE cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo This will attempt to create you a GodMode shortcut button that echo will give easy access to all Windows features. timeout /t 1 /nobreak > NUL echo. echo NOTE: You will have no name to the icon and it won't show echo up, no matter if you rename it. ^(Windows 10 bug or feature?^) echo The 4th option is for me to tell you how to create a shortcut echo that you CAN name and change the icon of, ^(really easy to do!^). echo. echo Where would you like me to put it? echo 1.^) %USERPROFILE%\Desktop echo 2.^) %USERPROFILE%\Documents echo 3.^) %USERPROFILE% echo 4.^) Instructions to make it. timeout /t 1 /nobreak > NUL echo. GOTO GMC :GMC set choice= set gmdir= set /p choice=Choose one of the above options: ^[1^|2^|3^|4^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='1' set "gmdir=DESKTOP" && GOTO GMCD if /i '%choice%'=='2' set "gmdir=DOCS" && GOTO GMCD if /i '%choice%'=='3' set "gmdir=USER" && GOTO GMCD if /i '%choice%'=='4' GOTO GMCINS if '%choice%'=='' GOTO GMC echo "%choice%" is not valid echo. GOTO GMC :GMCD timeout /t 1 /nobreak > NUL echo Okay, creating file in your Desktop, unless you remapped your computer. timeout /t 1 /nobreak > NUL if "%gmdir%"=="DESKTOP" ( md "%USERPROFILE%\Desktop\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" ) ELSE IF "%gmdir%"=="DOCS" ( md "%USERPROFILE%\Documents\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" ) ELSE ( md "%USERPROFILE%\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" ) timeout /t 1 /nobreak > NUL echo. echo Shortcut created. timeout /t 1 /nobreak > NUL echo. echo You should find it at the following location: if "%gmdir%"=="DESKTOP" ( echo %USERPROFILE%\Desktop\ ) ELSE IF "%gmdir%"=="DOCS" ( echo %USERPROFILE%\Documents\ ) ELSE ( echo %USERPROFILE%\ ) timeout /t 1 /nobreak > NUL echo. echo Just note, there is a blueish icon that was created with no name. echo It should have the name of GodMode, but on Windows 10, that is missing. ^(Bug or Feature?^) echo. pause GOTO MENU :GMCINS cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo Okay, you have chosen to make your own shortcut. This is a very echo easy thing to do. I'm sorry I couldn't create it for you, this is echo just the limitation of what .bat files can do an where PowerShell echo takes over. echo. echo Steps to follow: echo 1.^) Right click on your desktop, then click New ^=^> Shortcut echo. echo 2.^) Where it says ^"Type the location of the item:^", copy the colored text below echo and paste it in there. To copy, using your mouse, highlight the text then Press echo Ctrl+C for copy and Ctrl+V to paste it in and then click ^"Next^". echo ^%%windir^%%\explorer.exe shell:::^{ED7BA470-8E54-465E-825C-99712043E01C^} echo. echo 3.^) Name it to what ever you want, then click ^"Finish^". echo. echo 4.^) If you want to change the icon, then right click on it, The ^"Shortcut^" tab, echo at the bottom, had a button called ^"Change Icon^". You can create a custom icon ot find echo one on the web, ^(images.google.com^). File format used is .ico which if your echo graphics program doesn't allow you to make one, save your image as a png. Should echo be 48px x 48px in size. Then try a site like icoconvert.com to convert it from echo .png to .ico for you. There are a lot of online free converters. echo. echo. That's it. Hope this helped. echo. pause GOTO MENU REM ###################################################### NEW SECTION [17] ############################################################## REM Rebuild Icon Cache :REBUILDICON cls @echo off echo. echo About: echo The icons that display for files in Windows are saved in an icon cache so they can be echo displayed quickly instead of having to manually load each one every time. echo. echo The icon cache can sometimes become corrupted causing the icons of files to display echo incorrectly or distorted. When this happens, the icon cache needs to be deleted to echo reset and automatically recreate it. echo. echo Rebuilding the icon cache will not help with the following icon issues: echo 1.^)The icon of a shortcut not displaying properly due to the target source of the shortcut was echo. moved or deleted. You may need to recreate a new shortcut directly from the source echo. ^(ex: program's exe^) file to replace it instead. echo. echo 2.^)All icons for a specific file extension display the wrong icon. This may be due to setting echo. the wrong association for what app to open the file type instead. If so, restoring the default echo. association of the file extension will fix this issue. echo. echo 3.^)Thumbnails of folders, pictures, videos, and documents. echo. set iconcache=%localappdata%\IconCache.db set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache* echo. echo The explorer process must be temporarily killed before deleting the IconCache.db file. echo. echo Please SAVE ALL OPEN WORK before continuing. echo. pause echo. If exist "%iconcache%" GOTO DELIC echo. echo The %localappdata%\IconCache.db file has already been deleted. echo. If exist "%iconcache_x%" GOTO DELIC echo. echo The %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted. echo. GOTO MENU :DELIC echo. echo Attempting to delete IconCache.db files... echo. ie4uinit.exe -show taskkill /IM explorer.exe /F If exist del /A /F /Q "%iconcache%" If exist del /A /F /Q "%iconcache_x%" start explorer.exe echo. echo IconCache database files have been successfully deleted. GOTO DELICR :DELICR echo. echo. echo You will need to restart the PC to finish rebuilding your icon cache. echo. CHOICE /C:YN /M "Do you want to restart the PC now?" IF ERRORLEVEL 2 GOTO NORESTART IF ERRORLEVEL 1 GOTO YESRESTART :YESRESTART timeout /t 1 /nobreak > NUL echo Attempting to restart your computer in 5 seconds. timeout /t 5 /nobreak >Nul shutdown /r /f /t 00 :NORESTART timeout /t 1 /nobreak > NUL echo Okay, Icon cache will finish rebuilding on your next restart. echo Redirecting you to the menu. timeout /t 3 /nobreak >Nul GOTO MENU REM ###################################################### NEW SECTION [18] ############################################################## :WIN10KEY cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo ::ABOUT:: echo More pre-built PC's are now coming without any stickers to show your product echo key, and if you ever want to reformat your PC, you definitely need to know this. echo Because of this, I am putting this in and save you from downloading a software echo that is just bloated. Unlike those programs, this is just a simple .bat file which echo all of these things can be run from command prompt. echo. echo Why are they doing this? echo Simple, security. When you ship PC's with the code on the case, or on a echo sticker, it's easy for it to be taken off or stolen. echo. timeout /t 2 /nobreak > NUL echo Below, you will see something like: echo. echo OA3xOriginalProductKey echo XXXXX-XXXXX-XXXXX-XXXXX-XXXXX echo. echo Your Windows 10 key is going to look like the red text. timeout /t 3 /nobreak > NUL echo. echo. echo ------------------------- Your code is below --------------------------------- wmic path softwareLicensingService get OA3xOriginalProductKey echo. echo Just highlight your code above and Press Ctrl+C to copy and Ctrl+V to paste. :WKSAVE echo. set choice= set /p choice=Would you like me to Export this to a text file? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO WKYES if '%choice%'=='y' GOTO WKYES if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO WKSAVE :WKYES @echo off echo Okay, I will export this to a file. echo. echo Your file can be found here: echo %UserProfile%\Win_10_Product_key.txt REM write echo. > %UserProfile%\Win_10_Product_key.txt echo Your code will look like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX >> %UserProfile%\Win_10_Product_key.txt echo Just ignore the ^"OA3xOriginalProductKey^" >> %UserProfile%\Win_10_Product_key.txt echo. >> %UserProfile%\Win_10_Product_key.txt echo ----------------------------------[Windows 10 Code Below]-------------------------------------- >> %UserProfile%\Win_10_Product_key.txt wmic path softwareLicensingService get OA3xOriginalProductKey|more >> %UserProfile%\Win_10_Product_key.txt echo ----------------------------------------------------------------------------------------------- >> %UserProfile%\Win_10_Product_key.txt timeout /t 3 /nobreak > NUL echo. :WKOPENFILE set choice= set /p choice=Do you want to view the file now? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO WKOPEN if '%choice%'=='y' GOTO WKOPEN if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO WKOPENFILE :WKOPEN echo. echo Okay, let me open that for you then. echo Give me 1 sec. echo. timeout /t 2 /nobreak > NUL echo Close notepad to continue. notepad.exe %UserProfile%\Win_10_Product_key.txt goto MENU REM ###################################################### NEW SECTION [19] ############################################################## :CUNINSTALLER cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo ::ABOUT:: echo Here, I put in two systems for you to use, depending on your situation, you may use echo either or. The first system is going to use perhaps one of the most old-school echo methods that we have used, especially from the Windows 8, ^(?^), time, and prior. echo That system is ^"Control Panel^". With the way Windows 10 hides it, this makes it easier to open. echo Sometimes, the program is unavailable in CP to uninstall, so you can use the command method. echo This is a bit more advanced and you CAN mess up your computer if you're careless. echo. echo INSTRUCTIONS FOR CP echo Select option 1 below and click on program you wish to uninstall then click uninstall. echo. echo Select option 2 below and follow each insstruction on each page. echo BE SURE TO READ EVERYTHING CAREFULLY! echo. :CPCHOICE echo. echo ######################################### echo ## 1. Control Panel echo ## 2. Command Prompt ^(Advanced^) echo ## 3. Go Back to Main Menu echo ######################################### echo. set choice= set /p choice=Please, choose either 1, 2, or 3: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='1' GOTO CPUNINSTALLER if '%choice%'=='2' GOTO CMDPUNISTALLER if '%choice%'=='3' GOTO MENU if '%choice%'=='' GOTO CPCHOICE echo "%choice%" is not valid echo. GOTO CPCHOICE :CPUNINSTALLER cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo Attempting to open Control Panel. timeout /t 1 /nobreak > NUL echo Opening now. timeout /t 1 /nobreak > NUL appwiz.cpl pause GOTO MENU :CMDPUNISTALLER cls @echo off for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo Okay, I will be attempting to get you a list of your programs. Once the list echo of programs show up, you are going to want to either write down the name exactly echo ^(The WHOLE line^), or, highlight the name and press CTRL+C to copy it and echo CTRL+V to paste what you had highlighted and copied. pause echo Lets get the list of programs, ^(This can take a min.^) timeout /t 1 /nobreak > NUL echo. wmic product get name echo. timeout /t 1 /nobreak > NUL echo ----------------------------------------------------------- timeout /t 1 /nobreak > NUL echo. set /p p2unistall="Type or Paste the program to unistall: " timeout /t 1 /nobreak > NUL echo Okay, program %p2unistall% is what you selected?. timeout /t 1 /nobreak > NUL echo. :PTOUNINSTALL echo. set choice= set /p choice=Are you sure you want to unistall it? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if /i '%choice%'=='Y' GOTO UNINSTALLPRO if /i '%choice%'=='N' GOTO MENU if '%choice%'=='' GOTO PTOUNINSTALL echo "%choice%" is not valid echo. GOTO PTOUNINSTALL :UNINSTALLPRO echo Lets get this program unistalled for you. timeout /t 1 /nobreak > NUL echo. wmic product where name="%p2unistall%" call uninstall echo If program existed, it should be deleted now. pause GOTO MENU REM ###################################################### NEW SECTION [54/45] ############################################################## REM StarWars :STARWARS cls @echo off echo. for /f "tokens=* delims=:?" %%A in ('findstr /b :?: "%~f0"') do @echo(%%A echo. echo Just know that this will Enable your Telent to watch an ASCII Starwars. echo There is not much of any risk to enabling it, its disabled by default echo because the average user does not use it, and more secured systems are echo avaliable for what most people used telnet for. echo. :SWYN set choice= set /p choice=Would you like to proceed? ^[Y/N^]: if NOT '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='Y' GOTO STARWARSS if '%choice%'=='y' GOTO STARWARSS if '%choice%'=='N' GOTO MENU if '%choice%'=='n' GOTO MENU if '%choice%'=='' GOTO MENU echo "%choice%" is not valid echo. GOTO SWYN pause REM StarWars Part 2 :STARWARSS cls @echo off Ping www.google.com -n 1 -w 1000 > NUL if errorlevel 1 ( echo  Not connected to internet echo Please check your internet connection and try again. echo. pause GOTO MENU ) for /f "tokens=* delims=:?" %%A in ('findstr /b :?: "%~f0"') do @echo(%%A echo. echo Enabling Telnet, Please wait... dism /online /Enable-Feature /FeatureName:TelnetClient echo Starting StarWars in: timeout /t 5 telnet towel.blinkenlights.nl pause goto MENU REM ###################################################### NEW SECTION [?] ############################################################## REM shows info :ABOUT @echo off cls for /f "tokens=* delims=:" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A echo. echo ****************************************************************** echo * This batch file deletes most common temp files including log, bak, old, gid, ect... echo * There are two types of cleaning along with a System Information and a Win 10 check ^& repair echo ****************************************************************** echo. echo * Simple Cleanup is going to delete prefetch and basic temp files echo. echo * Deeper Cleanup does the same thing as Simple, but cleans more of the system and can echo * a little bit longer to complete. echo. echo Note: echo With the cleanups, you may see a bunch of files that don't exist or access is defined, echo That is common and nothing to be bothered by. The reason that happens is that not all echo people are running the same versions of Windows so I tried to make it so it would cover echo most of them. echo. echo * There are many other features added to this script and I seem to keep adding more. echo. echo ****************************************************************** echo ** ABOUT THIS SCRIPT: echo ****************************************************************** echo * Written by coRpSE echo * 06/16/2020 echo * Updated: 6/21/2020 echo * echo * This script was written by coRpSE of headshotdomain.net to replace his older script echo * using older code. Some inspiration came from Kevin Tipker for the Deeper Cleanup and used a portion of his script, echo * (with changes), to improve this script. All the rest that is added was just added to make it easier for people echo * that don't know how to use CMD prompt, also, so they don't need to remember the commands. It's all here in one spot. echo ****************************************************************** echo. echo ****************************************************************** echo ** Copyright (C) headshotdomain echo ****************************************************************** echo * Content is copyright (C) headshotdomain.net, released under GPL-3.0, echo * which gives you permission to use content for almost any purpose, echo * (but does not grant you any trademark permissions), so long as you echo * note the license, as well as leaving credit to this author. echo * https://opensource.org/licenses/GPL-3.0 echo ****************************************************************** echo. echo ****************************************************************** echo ** Disclaimer echo ****************************************************************** echo * I, coRpSE, (aka Derek McGuire), as well as headshotdomain.net, take echo * no responsibility for any damages that can occure with use of this echo * script. I also take no responsibility for anything that you may use echo * it for. This script was written and distributed free of charge to be echo * used for purposes of checking your PC and basic maintance. If maliciouse echo * use of this script is done, then you, (the user), are held echo * responsibile for your own actions. echo ****************************************************************** echo. pause goto MENU REM ###################################################### NEW SECTION [Q] ############################################################## REM closes the program :QUIT exit /b REM ################################################## NEW SECTION [SHUTDOWN] ############################################################# :SHUTDOWN if "%powerc%"=="SHUTDOWN" ( timeout /t 2 /nobreak > NUL echo. echo Simple Cleanup is complete timeout /t 2 /nobreak > NUL echo Attempting to shut down your computer in 5 seconds. timeout /t 5 /nobreak >Nul SHUTDOWN /s /f /t 0 echo. pause goto MENU ) ELSE ( pause goto MENU ) REM ###################################################### NEW SECTION [ART] ############################################################## REM Let's put in our art work for this script ::: ( ( ::: )\ ) )\ ) ) ( ) ::: (()/( (()/( ( ( ( /( ( )\ ( ( /( ( ::: ( ( /(_))` ) /(_)))\ )\ )\()))\ ((_))\ )\()))\ ) ::: )\ )\ (_)) /(/( (_)) ((_) _ ((_)(_))/((_) _ ((_)(_))/(()/( ::: ((_)((_)| _ \((_)_\ / __|| __| | | | || |_ (_)| | (_)| |_ )(_)) ::: / _|/ _ \| /| '_ \)\__ \| _| | |_| || _| | || | | || _|| || | ::: \__|\___/|_|_\| .__/ |___/|___| \___/ \__| |_||_| |_| \__| \_, | ::: |_| |__/  :?: ________________. ___ .______ /-----^\ :?: / | / \ | _ \ /== | :?: | (-----| |----`/ ^ \ | |_) | -+o/ ==B) | :?: \ \ | | / /_\ \ | / /__/-----| :?:.-----) | | | / _____ \ | |\ \-------. ===== :?:|________/ |__| /__/ \__\| _| `.________| ( \ \ \ :?: ____ __ ____ ___ .______ ________. \ \ \ \ :?: \ \ / \ / / / \ | _ \ / | ( ) ( ) :?: \ \/ \/ / / ^ \ | |_) || (-----` / / \ \ :?: \ / / /_\ \ | / \ \ / / | | :?: \ /\ / / _____ \ | |\ \---) | / / | | :?: \__/ \__/ /__/ \__\|__| `._______/ __^^\\_ __^^\\_ :!: .o oOOOOOOOo OOOo :!: Ob.OOOOOOOo OOOo. oOOo. .adOOOOOOO :!: OboO"""""""""""".OOo. .oOOOOOo. OOOo.oOOOOOo.."""""""""'OO :!: OOP.oOOOOOOOOOOO "POOOOOOOOOOOo. `"OOOOOOOOOP,OOOOOOOOOOOB' :!: `O'OOOO' `OOOOo"OOOOOOOOOOO` .adOOOOOOOOO"oOOO' `OOOOo :!: .OOOO' `OOOOOOOOOOOOOOOOOOOOOOOOOO' `OO :!: OOOOO '"OOOOOOOOOOOOOOOO"` oOO :!: oOOOOOba. .adOOcoRpSEOOba .adOOOOo. :!: oOOOOOOOOOOOOOba. .adOOOOOOOOOO@^OOOOOOOba. .adOOOOOOOOOOOO :!: OOOOOOOOOOOOOOOOO.OOOOOOOOOOOOOO"` '"OOOOOOOOOOOOO.OOOOOOOOOOOOOO :!: "OOOO" "YOoOOOOMOIONODOO"` . '"OOROAOPOEOOOoOY" "OOO" :!: Y 'OOOOOOOOOOOOOO: .oOOo. :OOOOOOOOOOO?' :` :!: : .oO%OOOOOOOOOOo.OOOOOO.oOOOOOOOOOOOO? . :!: . oOOP"%OOOOOOOOoOOOOOOO?oOOOOO?OOOO"OOo :!: '%o OOOO"%OOOO%"%OOOOO"OOOOOO"OOO': :!: `$" `OOOO' `O"Y ' `OOOO' o . :!: . . OP" : o . :!: : :!: .