rem // ABRA UM BLOCO DE NOTAS,COLE O CONTEUDO DENTRO
rem // SALVE O ARQUIVO COM O NOME EXATAMENTE "CORE.bat"
rem // ===============SALVE NA AREA DE TRABALHO================ rem // EXECUTE COMO ADMINISTRADOR
ECHO OFF
CLS
:MENU
call :c 0a " //--------------------CORE Version 1.9.1--------------------------------\\ " /n
call :c 0a " -- / ____// __ \ / __ \ / ____/ -- " /n
call :c 0a " -- / / / / / // /_/ // __/ -- " /n
call :c 0a " -- / /___ / /_/ // _, _// /___ -- " /n
call :c 0a " \\------------- \____/ \____//_/ |_|/_____/ ----------------------// " /n
call :c 0a " \----- Criado Matheus Benites Editado por Hendrix V. Cioch -----/ " /n
systeminfo | findstr "total"
ECHO.
call :c 06 " /---------------------------------------------------------------\ " /n call :c 06 " - SELECIONE O TAMANHO TOTAL DA MEMORIA 2,4,6,8 E PRESSIONE ENTER - " /n call :c 06 " \---------------------------------------------------------------/ " /n ECHO.
ECHO 2 - Definir memoria para 2GB
ECHO 4 - Definir memoria para 4GB
ECHO 6 - Definir memoria para 6GB
ECHO 8 - Definir memoria para 8GB
ECHO 0 - PULAR ETAPA
ECHO.
SET /P M=Tipos 2, 4, 6, 8 ou 0 entao ENTER:
IF %M%==2 GOTO 2GB
IF %M%==4 GOTO 4GB
IF %M%==6 GOTO 6GB
IF %M%==8 GOTO 8GB
IF %M%==0 GOTO SERVICO
goto MENU
:2GB
wmic pagefileset create name="C:\pagefile.sys"
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=2048,MaximumSize=4096 ECHO Otimizado Memoria Virtual da Paginacao para 2048 mb >> C:\Users\%username%\Desktop\RELATORIO.txt
goto SERVICO
:4GB
wmic pagefileset create name="C:\pagefile.sys"
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=4096,MaximumSize=6144 ECHO Otimizado Memoria Virtual da Paginacao para 4096 mb >> C:\Users\%username%\Desktop\RELATORIO.txt
goto SERVICO
:6GB
wmic pagefileset create name="C:\pagefile.sys"
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=6144,MaximumSize=8192 ECHO Otimizado Memoria Virtual da Paginacao para 6144 mb >> C:\Users\%username%\Desktop\RELATORIO.txt
goto SERVICO
:8GB
wmic pagefileset create name="C:\pagefile.sys"
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=8192,MaximumSize=10124
ECHO Otimizado Memoria Virtual da Paginacao para 8192 mb >> C:\Users\%username%\Desktop\RELATORIO.txt
goto SERVICO
:SERVICO
sc config SysMain start= disabled
sc failureflag SysMain flag=0
sc failure SysMain reset= 3 actions= /0
net stop SysMain
call :c 0a "[Desabilitado Superfetch]" /n ECHO DESABILITADO Superfetch >> C:\Users\%username%\Desktop\RELATORIO.txt
timeout /t 1 /nobreak > nul
sc config DiagTrack start= disabled
sc failureflag DiagTrack flag=0
sc failure DiagTrack reset=3 actions= /0
net stop DiagTrack
call :c 0a "[Desativado Telemetria]" /n ECHO DESABILITADO Experiências e Telemetria de Usuário Conectado >> C:\Users\%username%\Desktop\RELATORIO.txt
timeout /t 1 /nobreak > nul
sc config BITS start= disabled
sc failureflag BITS flag=0
sc failure BITS reset= 3 actions= /0
net stop BITS
call :c 0a "[Desativado transferencia inteligente de tela de fundo]" /n ECHO DESABILITADO Servico de transferencia inteligente de tela de fundo >> C:\Users\%username%\Desktop\RELATORIO.txt
timeout /t 1 /nobreak > nul
schtasks /change /tn "\Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE schtasks /Delete /tn "\Microsoft\Windows\Application Experience\StartupAppTask" /F
call :c 0a "[Desativado StartupAppTask]" /n
timeout /t 1 /nobreak > nul schtasks /change /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE schtasks /Delete /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /F
call :c 0a "[Desativado ProgramDataUpdater]" /n
timeout /t 1 /nobreak > nul schtasks /change /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE schtasks /Delete /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /F
call :c 0a "[Desativado Microsoft Compatibility Appraiser]" /n
timeout /t 1 /nobreak > nul ECHO DESATIVADO Agendador de Tarefas Experience Telemetria >> C:\Users\%username%\Desktop\RELATORIO.txt
schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE schtasks /Delete /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /F ECHO DESATIVADO Manutenção Automática >> C:\Users\%username%\Desktop\RELATORIO.txt
call :c 0a "[Manutencao Automatica]" /n
timeout /t 1 /nobreak > nul
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f ECHO DESATIVADO Telemetry regedit >> C:\Users\%username%\Desktop\RELATORIO.txt
call :c 0a "[AllowTelemetry Desativado]" /n
timeout /t 1 /nobreak > nul
RunDll32.exe inetcpl.cpl , ClearMyTracksByProcess 255 call :c 0a "[Realizado Limpeza de dados web]" /n ECHO Limpeza de dados web - Cookies - Dados do filtro de phishing >> C:\Users\%username%\Desktop\RELATORIO.txt
timeout /t 1 /nobreak > nul
GOTO CORE
:CORE
CLS
for /F "skip=1" %%i in ('wmic cpu get NumberOfLogicalProcessors') do (
ECHO Otimizado Nucleos na inicializacao para %%i nucleos >> C:\Users\%username%\Desktop\RELATORIO.txt
bcdedit /set numproc %%i
cls
echo Otimizando nucleos apartir bcdedit...
timeout /t 1 /nobreak > nul
call :c 0a " [Nucleos Processamento Otimizado] " /n
)
timeout /t 3 /nobreak > nul
GOTO CACHE
:CACHE
for /F "skip=1" %%i in ('wmic cpu get l2cachesize') do (
ECHO Otimizando L2 Cache para %%i kb >> C:\Users\%username%\Desktop\RELATORIO.txt
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v SecondLevelDataCache /t REG_DWORD /d %%i /f
cls
echo Otimizado L2 Cache Do Processador...
timeout /t 1 /nobreak > nul
call :c 0a "[Processamento L2 Cache Configurado]" /n
)
timeout /t 3 /nobreak > nul
GOTO FIM
:FIM
GPUPDATE/FORCE
ECHO Realizado Gpupdate/force >> C:\Users\%username%\Desktop\RELATORIO.txt
call :c 0a "[Fix complete]" /n
timeout /t 3 /nobreak > nul
CLS
ECHO Verificando...
call :c 0a "[/]"
call :c 0c "Arquivo se auto Excluira em 5 segundos" /n
timeout /t 1 /nobreak > nul
CLS
ECHO Verificando...
call :c 0a "[\]"
call :c 0c "Arquivo se auto Excluira em 5 segundos" /n
timeout /t 1 /nobreak > nul
CLS
ECHO Verificando...
call :c 0a "[/]"
call :c 0c "Arquivo se auto Excluira em 5 segundos" /n
timeout /t 1 /nobreak > nul
CLS
ECHO Verificando...
call :c 0a "[\]"
call :c 0c "Arquivo se auto Excluira em 5 segundos" /n
timeout /t 1 /nobreak > nul
CLS
ECHO Verificando...
call :c 0a "[/]"
call :c 0c "Arquivo se auto Excluira em 5 segundos" /n
timeout /t 1 /nobreak > nul
del C:\Users\%username%\Desktop\CORE.bat
exit
:c
setlocal enableDelayedExpansion
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:colorPrint Color Str [/n]
setlocal
set "s=%~2"
call :colorPrintVar %1 s %3
exit /b
:colorPrintVar Color StrVar [/n]
if not defined DEL call :initColorPrint
setlocal enableDelayedExpansion
pushd .
':
cd \
set "s=!%~2!"
for %%n in (^"^
^") do (
set "s=!s:\=%%~n\%%~n!"
set "s=!s:/=%%~n/%%~n!"
set "s=!s::=%%~n:%%~n!"
)
for /f delims^=^ eol^= %%s in ("!s!") do (
if "!" equ "" setlocal disableDelayedExpansion
if %%s==\ (
findstr /a:%~1 "." "\'" nul
<nul set /p "=%DEL%%DEL%%DEL%"
) else if %%s==/ (
findstr /a:%~1 "." "/.\'" nul
<nul set /p "=%DEL%%DEL%%DEL%%DEL%%DEL%"
) else (
>colorPrint.txt (echo %%s\..\')
findstr /a:%~1 /f:colorPrint.txt "."
<nul set /p "=%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%"
)
)
if /i "%~3"=="/n" echo(
popd
exit /b
:initColorPrint
for /f %%A in ('"prompt $H&for %%B in (1) do rem"') do set "DEL=%%A %%A"
<nul >"%temp%\'" set /p "=."
subst ': "%temp%" >nul
exit /b