Comandos de Optimización para Windows 11
Ejecuta estos comandos en PowerShell como Administrador.
1. Desactivar Telemetría
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Value 0¿Qué hace? Detiene el envío de datos de uso a Microsoft.
2. Desactivar Servicios Innecesarios
"ps-variable">$servicios = @("DiagTrack", "SysMain", "WSearch", "dmwappushservice", "MapsBroker", "lfsvc", "RetailDemo")
foreach ("ps-variable">$s in "ps-variable">$servicios) {
Stop-Service -Name "ps-variable">$s -Force -ErrorAction SilentlyContinue
Set-Service -Name "ps-variable">$s -StartupType Disabled -ErrorAction SilentlyContinue
}¿Qué hace?
- DiagTrack: Telemetría y diagnósticos
- SysMain: Superfetch, precarga apps en RAM
- WSearch: Indexación de Windows Search
- dmwappushservice: Mensajería push de telemetría
- MapsBroker: Descarga de mapas offline
- lfsvc: Servicio de geolocalización
- RetailDemo: Modo demo de tiendas
- Algunos cambios requieren reiniciar el PC
- Si algo no funciona bien, revierte el cambio específico
- El comando de Defender solo usar si tienes otro antivirus
- Haz un punto de restauración antes de ejecutar cambios masivos
3. Desactivar Cortana
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Value 0 -PropertyType DWord -Force¿Qué hace? Desactiva Cortana completamente.
4. Desactivar Sugerencias y Anuncios
"ps-variable">$paths = @(
"HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
)
"ps-variable">$keys = @(
"SubscribedContent-338388Enabled",
"SubscribedContent-310093Enabled",
"SubscribedContent-338389Enabled",
"SilentInstalledAppsEnabled",
"SoftLandingEnabled",
"FeatureManagementEnabled"
)
foreach ("ps-variable">$key in "ps-variable">$keys) {
Set-ItemProperty -Path "ps-variable">$paths[0] -Name "ps-variable">$key -Value 0 -ErrorAction SilentlyContinue
}¿Qué hace? Elimina sugerencias, anuncios y apps que se instalan solas.
5. Desactivar Hibernación
powercfg -h off¿Qué hace? Elimina hiberfil.sys y libera varios GB de espacio.
6. Activar TRIM para SSD
fsutil behavior set DisableDeleteNotify 0¿Qué hace? Mantiene el SSD saludable y con buen rendimiento.
7. Limpiar Archivos Temporales
Remove-Item -Path ""ps-variable">$env:TEMP\" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Windows\Temp\" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Windows\Prefetch\*" -Recurse -Force -ErrorAction SilentlyContinue
Clear-RecycleBin -Force -ErrorAction SilentlyContinue¿Qué hace? Limpia temporales, prefetch y papelera.
8. Desactivar Efectos Visuales
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Value ([byte[]](0x90,0x12,0x03,0x80,0x10,0x00,0x00,0x00))
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Value 0¿Qué hace? Desactiva animaciones, transparencias y efectos para más rendimiento.
9. Plan de Energía Alto Rendimiento
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
powercfg -setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 2
powercfg -setactive SCHEME_CURRENT¿Qué hace? Activa máximo rendimiento del CPU.
10. Optimizar Red (Reduce latencia)
Set-NetTCPSetting -SettingName InternetCustom -AutoTuningLevelLocal Disabled -ErrorAction SilentlyContinue
netsh int tcp set global autotuninglevel=disabled
netsh int tcp set global timestamps=disabled
netsh int tcp set global rss=enabled¿Qué hace? Reduce latencia de red, ideal para gaming.
11. Desactivar Xbox Game Bar y DVR
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\GameDVR" -Name "AppCaptureEnabled" -Value 0
Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "UseNexusForGameBarEnabled" -Value 0¿Qué hace? Desactiva grabación en segundo plano y overlay de Xbox.
12. Desactivar Windows Defender (Solo si usas otro antivirus)
Set-MpPreference -DisableRealtimeMonitoring "ps-variable">$true¿Qué hace? Desactiva la protección en tiempo real. Solo si tienes otro antivirus.
13. Limpiar Caché de DNS e IP
Clear-DnsClientCache
ipconfig /release
ipconfig /renew
netsh winsock reset¿Qué hace? Limpia caché de red y renueva conexión.
14. Desactivar Widgets
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarDa" -Value 0¿Qué hace? Elimina el panel de widgets de la barra de tareas.
15. Desactivar Bing en el Menú Inicio
Set-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableSearchBoxSuggestions" -Value 1 -Force¿Qué hace? Elimina las búsquedas web de Bing al buscar en el menú inicio.
16. Verificar y Reparar Sistema
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
chkdsk C: /F /R¿Qué hace? Repara archivos corruptos y verifica el disco. El chkdsk requiere reinicio.
17. Desactivar Notificaciones de Apps
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Value 0¿Qué hace? Desactiva todas las notificaciones toast.
18. Aumentar Prioridad de GPU para Juegos
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority" -Value 8
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority" -Value 6¿Qué hace? Da prioridad a los juegos en el uso de GPU y CPU.