Primeira versão. Só colar no bloco de notas e salvar como .bat, e executar como administrador. Se alguém tiver sugestões de tweaks ou correções, me avise:ideia fantastica manda bala
Código:
@rem *** Desabilitar alguns serviços ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
REM sc config RemoteRegistry start= disabled
REM sc config TrkWks start= disabled
sc config WMPNetworkSvc start= disabled
sc config WSearch start= disabled
REM sc config SysMain start= disabled
REM *** Tweaks de tarefas agendadas ***
REM schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
REM schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
REM schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
REM schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable *** Not sure if should be disabled, maybe related to S.M.A.R.T.
REM schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
REM schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
REM schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
REM The stubborn task Microsoft\Windows\SettingSync\BackgroundUploadTask can be Disabled using a simple bit change. I use a REG file for that (attached to this post).
REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
REM schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
@rem *** Remover Telemetria e Coleta de Dados ***
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
@REM Settings -> Privacy -> General -> Let apps use my advertising ID...
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
REM - SmartScreen Filter for Store Apps: Disable
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
REM - Let websites provide locally...
reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
@REM WiFi Sense: HotSpot Sharing: Disable
reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f
@REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f
@REM Change Windows Updates to "Notify to schedule restart"
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
@REM Disable P2P Update downlods outside of local network
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
@REM *** Desabilitar Cortana e Telemetria ***
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0
REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
REM 0 = hide completely, 1 = show only icon, 2 = show long search box
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
REM *** Disable MRU lists (jump lists) of XAML apps in Start Menu ***
REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f
REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
REM 1 = This PC, 2 = Quick access
REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
REM *** Disable Suggestions in the Start Menu ***
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f
@rem Remove Apps
PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Cortana* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsCamera* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *bing* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *OneNote* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *photos* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *SkypeApp* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
REM PowerShell -Command "Get-AppxPackage *xbox* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
REM PowerShell -Command "Get-AppxPackage *WindowsCalculator* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *CommsPhone* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *ContentDeliveryManager* | Remove-AppxPackage"
REM PowerShell -Command "Get-AppxPackage *Microsoft.WindowsStore* | Remove-AppxPackage"
@rem NOW JUST SOME TWEAKS
REM *** Show hidden files in Explorer ***
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
REM *** Show super hidden system files in Explorer ***
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
REM *** Show file extensions in Explorer ***
REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
REM *** Uninstall OneDrive ***
REM start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE" /UNINSTALL
REM rd C:\OneDriveTemp /Q /S >NUL 2>&1
REM rd "%USERPROFILE%\OneDrive" /Q /S >NUL 2>&1
REM rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S >NUL 2>&1
REM rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S >NUL 2>&1
REM reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
REM reg add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
REM echo OneDrive has been removed. Windows Explorer needs to be restarted.
REM pause
REM start /wait TASKKILL /F /IM explorer.exe
REM start explorer.exe
REM ***Remove Unused Features***
DISM.exe /Online /Disable-Feature /featurename:SimpleTCP /Remove
DISM.exe /Online /Disable-Feature /featurename:SNMP /Remove
DISM.exe /Online /Disable-Feature /featurename:WMISnmpProvider /Remove
DISM.exe /Online /Disable-Feature /featurename:Windows-Identity-Foundation /Remove
DISM.exe /Online /Disable-Feature /featurename:DirectoryServices-ADAM-Client /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WebServerRole /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WebServer /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-CommonHttpFeatures /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpErrors /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpRedirect /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ApplicationDevelopment /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-NetFxExtensibility /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-NetFxExtensibility45 /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HealthAndDiagnostics /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpLogging /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-LoggingLibraries /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-RequestMonitor /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpTracing /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-Security /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-URLAuthorization /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-RequestFiltering /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-IPSecurity /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-Performance /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpCompressionDynamic /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WebServerManagementTools /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ManagementScriptingTools /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-IIS6ManagementCompatibility /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-Metabase /Remove
DISM.exe /Online /Disable-Feature /featurename:WAS-WindowsActivationService /Remove
DISM.exe /Online /Disable-Feature /featurename:WAS-ProcessModel /Remove
DISM.exe /Online /Disable-Feature /featurename:WAS-NetFxEnvironment /Remove
DISM.exe /Online /Disable-Feature /featurename:WAS-ConfigurationAPI /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HostableWebCore /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-CertProvider /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WindowsAuthentication /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-DigestAuthentication /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ClientCertificateMappingAuthentication /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-IISCertificateMappingAuthentication /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ODBCLogging /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-StaticContent /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-DefaultDocument /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-DirectoryBrowsing /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WebDAV /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WebSockets /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ApplicationInit /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ASPNET /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ASPNET45 /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ASP /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-CGI /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ISAPIExtensions /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ISAPIFilter /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ServerSideIncludes /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-CustomLogging /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-BasicAuthentication /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-HttpCompressionStatic /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ManagementConsole /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-ManagementService /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-WMICompatibility /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-LegacyScripts /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-LegacySnapIn /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-FTPServer /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-FTPSvc /Remove
DISM.exe /Online /Disable-Feature /featurename:IIS-FTPExtensibility /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-Container /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-Server /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-Triggers /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-ADIntegration /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-HTTP /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-Multicast /Remove
DISM.exe /Online /Disable-Feature /featurename:MSMQ-DCOMProxy /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-HTTP-Activation45 /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-TCP-Activation45 /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-Pipe-Activation45 /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-MSMQ-Activation45 /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-HTTP-Activation /Remove
DISM.exe /Online /Disable-Feature /featurename:WCF-NonHTTP-Activation /Remove
DISM.exe /Online /Disable-Feature /featurename:NetFx4Extended-ASPNET45 /Remove
DISM.exe /Online /Disable-Feature /featurename:MediaPlayback /Remove
DISM.exe /Online /Disable-Feature /featurename:WindowsMediaPlayer /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Windows-MobilePC-Client-Premium-Package-net /Remove
DISM.exe /Online /Disable-Feature /featurename:Printing-XPSServices-Features /Remove
DISM.exe /Online /Disable-Feature /featurename:RasCMAK /Remove
DISM.exe /Online /Disable-Feature /featurename:RasRip /Remove
DISM.exe /Online /Disable-Feature /featurename:MSRDC-Infrastructure /Remove
DISM.exe /Online /Disable-Feature /featurename:TelnetClient /Remove
DISM.exe /Online /Disable-Feature /featurename:TelnetServer /Remove
DISM.exe /Online /Disable-Feature /featurename:TFTP /Remove
DISM.exe /Online /Disable-Feature /featurename:TIFFIFilter /Remove
DISM.exe /Online /Disable-Feature /featurename:WorkFolders-Client /Remove
DISM.exe /Online /Disable-Feature /featurename:SMB1Protocol /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Hyper-V-All /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Hyper-V-Tools-All /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Hyper-V /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Hyper-V-Management-Clients /Remove
DISM.exe /Online /Disable-Feature /featurename:Microsoft-Hyper-V-Management-PowerShell /Remove
REM ***Instalar Chocolatey***
@echo off
SET DIR=%~dp0%
::download install.ps1
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://chocolatey.org/install.ps1','%DIR%install.ps1'))"
::run installer
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*"
REM ***Instalar Clientes Jogos***
choco install goggalaxy
choco install steam
choco install origin
choco install uplay
choco install epicgameslauncher
REM ***Instalar Outros Aplicativos***
REM choco install dropbox
REM choco install nvidia-display-driver
REM choco install realtek-hd-audio-driver
REM choco install office365proplus
REM choco install 7zip.install
REM choco install bleachbit
REM choco install calibre
REM choco install ccleaner
REM choco install falkon
REM choco install foobar2000
REM choco install kodi
REM choco install launchy-beta
REM choco install chromium
REM choco install compactgui
REM choco install defraggler
REM choco install discord
REM choco install firefox
REM choco install f.lux
REM choco install hwinfo
REM choco install irfanview
REM choco install libreoffice-fresh
REM choco install mpc-hc
REM choco install eset.nod32
REM choco install kis
REM choco install notepadplusplus
REM choco install openal
REM choco install directx
REM choco install opera
REM choco install paint.net
REM choco install playnite
REM choco install quicklook
REM choco install rainmeter
REM choco install recuva
REM choco install renamer
REM choco install rocketdock
REM choco install speccy
REM choco install sumatrapdf
REM choco install vivaldi
REM choco install wiztree
REM choco install xplorer2
REM choco install multicommander
Última edição:

