@echo off
cls
echo.
echo.
echo DIGITE A OPCAO DESEJADA
echo.
echo.
echo [01] COMANDOS CONFIRACAO REDE
echo [02] LIMPEZA ARQUIVOS TEMP
echo [03] ERRO 100% ATIVADO
echo [04] RESET INTERNET
echo [05] ERRO 100% DESATIVADO
echo [06] REINICIALIZAR WINDOWS
echo [07] ATUALIZAR PROGRAMAS
echo [08] COMANDOS 1, 2, 4, 7, 6.
echo [09] PROGRAMAR DESLIGAR 2H
echo [10] ATIVAR INDEXACAO
echo [11] SAIS SEM FAZER NADA


echo.
set /p opcao=OPCAO DESEJADA:

if "%opcao%" == "1" goto op1
if "%opcao%" == "2" goto op2
if "%opcao%" == "3" goto op3
if "%opcao%" == "4" goto op4
if "%opcao%" == "5" goto op5
if "%opcao%" == "6" goto op6
if "%opcao%" == "7" goto op7
if "%opcao%" == "8" goto op8
if "%opcao%" == "9" goto op9
if "%opcao%" == "10" goto op10
if "%opcao%" == "11" goto op11


:op1
sc config browser start= auto > nul
sc config FDPHost start= auto > nul
sc config FDResPub start= auto > nul
sc config NetMan start= auto > nul
sc config UPnPHost start= auto > nul
sc config PNRPSvc start= auto > nul
sc config P2PSvc start= auto > nul
sc config P2PIMSvc start= auto > nul
sc config Dnscache start= auto > nul
sc config Netman start= auto > nul
sc config FDResPub start= auto > nul
sc config NetTcpPortSharing start= auto > nul
sc config WMPNetworkSvc start= auto > nul
sc config NetSetupSvc start= auto > nul
sc config SSDPSRV start= auto > nul
sc config upnphost start= auto > nul
sc config WLANSVC start= auto > nul
sc config TrustedInstaller start= disabled > nul
sc config SysMain start= disabled > nul
sc config wuauserv start= disabled > nul
sc config WSearch start= disabled > nul
sc config msiserver start= disabled > nul
sc config DPS start= disabled > nul
sc config DiagTrack start= disabled > nul
sc config WpcMonSvc start= disabled > nul
sc config XboxNetApiSvc start= disabled > nul
sc config TeamViewer start= disabled > nul
sc config MapsBroker start= disabled > nul
sc config edgeupdate start= disabled > nul
sc config XboxGipSvc start= disabled > nul
sc config SDRSVC start= disabled > nul
sc config XblAuthManager start= disabled > nul
sc config GoogleUpdaterInternalService140.0.7272.0 start= disabled > nul
sc config GoogleUpdaterService140.0.7272.0 start= disabled > nul
sc config MicrosoftEdgeElevationService start= disabled > nul
sc config “wsearch” start=delayed-auto && sc start “wsearch


echo.
echo.
echo !!! Rede concluida !!!
echo executada opcao 1
goto fim

:op2
del C:\temp\*.* /s /q
del c:\*.temp\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\Temp\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\Temp\*.* /s /q
del C:\Users\André\AppData\Local\Temp\*.* /s /q
del C:\Windows\Prefetch\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\cookies\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\config~1\temp\*.* /s /q
del C:\Windows\cookies\*.* /s /q
rd C:\Windows\Temp /s /q
md C:\Windows\Temp /s /q
del /q /f /s %TEMP%\*
del /q /f /s %WINDIR%\Temp\*
del /q /f /s C:\Windows\Prefetch\*
net stop wuauserv & net stop bits & del /f /s /q %windir%\SoftwareDistribution\* & net start wuauserv & net start bits
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
cleanmgr /sageset:1 & cleanmgr /sagerun:1
cleanmgr /LOWDISK

echo.
echo.
echo !!! limpeza concluida !!!

echo executada opcao 2
goto fim

:op3
sc stop "WSearch" && sc config "WSearch" start=auto
sc config "WSearch" start=dalayer=auto && sc start "WSearch"
sc config WSearch start= auto > nul
sc config TrustedInstaller start= auto > nul
sc config SysMain start= auto > nul
sc config wuauserv start= auto > nul
sc config msiserver start= auto > nul
sc config WerSvc start= auto > nul
sc config XboxNetApiSvc start= auto > nul
sc config XblGameSave start= auto > nul
sc config XboxGipSvc start= auto > nul
sc config WbioSrvc start= auto > nul
sc config edgeupdatemstart= auto > nul
sc config edgeupdate start= auto > nul
sc config MicrosoftEdgeElevationService start= auto > nul
sc config GoogleChromeElevationService start= auto > nul
sc config WpcMonSvc start= auto > nul
sc config mpssvc start= auto > nul
sc config DPS start= auto > nul
sc config DiagTrack start= auto > nul
powercfg /hibernate on
sc config TrustedInstaller start= auto > nul
sc config SysMain start= auto > nul
sc config wuauserv start= auto > nul
sc config WSearch start= auto > nul
sc config msiserver start= auto > nul
sc config DPS start= auto > nul
sc config DiagTrack start= auto > nul
sc config WpcMonSvc start= disabled > nul
sc config XboxNetApiSvc start= auto > nul
sc config TeamViewer start= auto > nul
sc config MapsBroker start= auto > nul
sc config edgeupdate start= auto > nul
sc config XboxGipSvc start= auto > nul
sc config SDRSVC start= auto > nul
sc config XblAuthManager start= auto > nul
sc config GoogleUpdaterInternalService140.0.7272.0 start= auto > nul
sc config GoogleUpdaterService140.0.7272.0 start= auto > nul
sc config MicrosoftEdgeElevationService start= auto > nul
sc config “wsearch” start=delayed-auto && sc start “wsearch


echo
echo
echo !!! Erro 100% ON concluida !!!

echo executada opcao 3
goto fim

:op4
cls
echo.
echo. 
ipconfig /Release
ipconfig /Renew
ipconfig /flushdns
ipconfig /registerdns
netsh interface tcp reset
netsh Winsock Reset
netsh int ip Reset 
nbtstat -rr
netsh int ip reset all
ipconfig /flushdns
netsh int ipv4 reset
netsh int ipv6 reset
netsh winhttp reset proxy
netsh winsock reset
ipconfig /release
ipconfig /renew
ipconfig /registerdns
netsh interface tcp reset
netsh int ip reset
netsh int tcp set global autotuninglevel=normal
net stop wuauserv
net stop bits 
net stop cryptsvc 
net stop msiserver
net start XblAuthManager 
net start XblGameSave 
net start XboxGipSvc
net start XboxNetApiSvc
net start iphlpsvc
sc config “wsearch” start=delayed-auto && sc start “wsearch


echo
echo
echo !!! Reset concluido !!!
echo executada opcao 4
goto fim



:op5
sc config TrustedInstaller start= disabled > nul
sc config SysMain start= disabled > nul
sc config wuauserv start= disabled > nul
sc config msiserver start= disabled > nul
sc config WerSvc start= disabled > nul
sc config XboxNetApiSvc start= disabled > nul
sc config XblGameSave start= disabled > nul
sc config XboxGipSvc start= disabled > nul
sc config WbioSrvc start= disabled > nul
sc config edgeupdatemstart= disabled > nul
sc config edgeupdate start= disabled > nul
sc config MicrosoftEdgeElevationService start= disabled > nul
sc config GoogleChromeElevationService start= disabled > nul
sc config WpcMonSvc start= disabled > nul
sc config mpssvc start= disabled > nul
powercfg /h /type reduced
bcdedit /set increaseuserva 16384
bcdedit /set useplatformtick yes
bcdedit /set disabledynamictick yes
fsutil behavior query memoryusage 2
sc config “wsearch” start=delayed-auto && sc start “wsearch

echo
echo
echo !!! Erro 100% OFF concluida !!!

echo executada opcao 5
goto fim

:op06

shutdown /r
shutdown /r /t 0
shutdown /r /c "JA VOLTO"

echo
echo
echo !!! Reinicializar Windows !!!
echo executada opcao 6



:op7
gpupdate

winget upgrade --all
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}


echo  !!! ATUALIZAÇAO COMCLUIDA !!!
echo executada opcao 7
goto fim


:op8

sc config browser start= auto > nul
sc config FDPHost start= auto > nul
sc config FDResPub start= auto > nul
sc config NetMan start= auto > nul
sc config UPnPHost start= auto > nul
sc config PNRPSvc start= auto > nul
sc config P2PSvc start= auto > nul
sc config P2PIMSvc start= auto > nul
sc config Dnscache start= auto > nul
sc config Netman start= auto > nul
sc config FDResPub start= auto > nul
sc config NetTcpPortSharing start= auto > nul
sc config WMPNetworkSvc start= auto > nul
sc config NetSetupSvc start= auto > nul
sc config SSDPSRV start= auto > nul
sc config upnphost start= auto > nul
sc config WLANSVC start= auto > nul
sc config TrustedInstaller start= disabled > nul
sc config SysMain start= disabled > nul
sc config wuauserv start= disabled > nul
sc config WSearch start= disabled > nul
sc config msiserver start= disabled > nul
sc config “wsearch” start=delayed-auto && sc start “wsearch

del C:\temp\*.* /s /q
del c:\*.temp\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\Temp\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\Temp\*.* /s /q
del C:\Users\André\AppData\Local\Temp\*.* /s /q
del C:\Windows\Prefetch\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\cookies\*.* /s /q
del C:\Users\%userprofile%\AppData\Local\config~1\temp\*.* /s /q
del C:\Windows\cookies\*.* /s /q
rd C:\Windows\Temp /s /q
md C:\Windows\Temp /s /q

ipconfig /Release
ipconfig /Renew
ipconfig /flushdns
ipconfig /registerdns
netsh interface tcp reset
netsh Winsock Reset
netsh int ip Reset 
nbtstat -rr
netsh int ip reset all
ipconfig /flushdns
netsh int ipv4 reset
netsh int ipv6 reset
netsh winhttp reset proxy
netsh winsock reset
ipconfig /release
ipconfig /renew
ipconfig /registerdns
netsh interface tcp reset
netsh int ip reset
netsh int tcp set global autotuninglevel=normal
net stop wuauserv
net stop bits 
net stop cryptsvc 
net stop msiserver
net start XblAuthManager 
net start XblGameSave 
net start XboxGipSvc
net start XboxNetApiSvc
net start iphlpsvc
winget upgrade --all

shutdown /r
shutdown /r /t 0
shutdown /r /c "JA VOLTO"

echo executada opcao 8
goto fim



:op,9
shutdown -s -t 14400

echo.
echo.
echo !!! PC VAI DESLIGAR EM 4 HORAS!!!
echo executada opcao 9
goto fim


:op10
sc config “wsearch” start=delayed-auto && sc start “wsearch
sc config WSearch start= auto > nul

Reg Add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search /v BingSearchEnabled /t REG_DWORD /d 1 /f

Reg Add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search /v CanCortanaBeEnabled /t REG_DWORD /d 1 /f

Reg Add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search /v CortanaConsent /t REG_DWORD /d 1 /f

Reg Add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search /v CortanaInAmbientMode /t REG_DWORD /d 1 /f 

:fim
echo.
echo !!! operacao executada com sucesso !!!
echo..
echo pressione quaquer tecla para encerrar...
pause >nul



:op11
exit


exit
:fim
echo.
echo !!! operacao executada com sucesso !!!
echo..
echo pressione quaquer tecla para encerrar...
pause >nul