Menú Cerrar

Script PowerShell para Windows 10 LTSC para recuperar espacio y ganar velocidad

Inicio › Foros › Temas sobre Microsoft Windows › Script PowerShell para Windows 10 LTSC para recuperar espacio y ganar velocidad

  • Este debate tiene 2 respuestas, 1 mensaje y ha sido actualizado por última vez el 28/08/2026 por Spek Regg.
Mostrando 2 respuestas a los debates
  • Autor
    Entradas
    • #16671 Responder
      Spek Regg
      Invitado

      Aquí está el Script para Windows 10 LTSC de PowerShell
      También puedes ejecutar los que están mas abajo para complementar

      # ==============================================
      # Windows 10 LTSC - Limpieza avanzada
      # Compatible con SQL Server Express 2022
      # No elimina drivers ni controladores.
      # ==============================================
      
      Write-Host "Iniciando limpieza avanzada..." -ForegroundColor Cyan
      
      # --- Limpieza profunda del sistema ---
      Write-Host "Limpieza profunda de WinSxS y actualizaciones..." -ForegroundColor Yellow
      Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase
      
      # Borrar carpetas temporales y cachés
      Write-Host "Eliminando carpetas temporales y cachés..." -ForegroundColor Yellow
      Remove-Item -Path "$env:windir\SoftwareDistribution" -Recurse -Force -ErrorAction SilentlyContinue
      Remove-Item -Path "$env:windir\WinSxS\Backup" -Recurse -Force -ErrorAction SilentlyContinue
      Remove-Item -Path "$env:windir\Temp" -Recurse -Force -ErrorAction SilentlyContinue
      Remove-Item -Path "$env:temp\*" -Recurse -Force -ErrorAction SilentlyContinue
      
      # --- Desactivar hibernación y restauración ---
      Write-Host "Desactivando hibernación y puntos de restauración..." -ForegroundColor Yellow
      powercfg -h off
      
      # Desactivar restauración del sistema (asegurarse de que la unidad C esté habilitada para restauración en LTSC)
      Disable-ComputerRestore -Drive "C:\" -ErrorAction SilentlyContinue
      
      # --- Ajustar archivo de paginación ---
      Write-Host "Reduciendo tamaño del archivo de paginación..." -ForegroundColor Yellow
      $registryPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
      Set-ItemProperty -Path $registryPath -Name "PagingFiles" -Value "C:\pagefile.sys 512 1024"
      
      # --- Activar compresión del sistema ---
      Write-Host "Activando CompactOS..." -ForegroundColor Yellow
      compact /compactos:always
      
      # --- Limpieza final de archivos residuales ---
      Write-Host "Ejecutando limpieza final..." -ForegroundColor Yellow
      Start-Process cleanmgr -ArgumentList "/sagerun:1" -Wait
      
      Write-Host "Limpieza avanzada finalizada." -ForegroundColor Green
      
    • #17205 Responder
      Spek Regg
      Superadministrador

      Script para ahorrar mas RAM

      # Desactivar servicios innecesarios en Windows 10
      # Autor: German (ajustado para PowerShell)
      
      # Telemetría (Connected User Experiences and Telemetry)
      Set-Service -Name "DiagTrack" -StartupType Disabled
      Stop-Service -Name "DiagTrack" -Force
      
      # Windows Search (Indexación)
      Set-Service -Name "WSearch" -StartupType Disabled
      Stop-Service -Name "WSearch" -Force
      
      # Registro Remoto
      Set-Service -Name "RemoteRegistry" -StartupType Disabled
      Stop-Service -Name "RemoteRegistry" -Force
      
      # Fax
      Set-Service -Name "Fax" -StartupType Disabled
      Stop-Service -Name "Fax" -Force
      
      # Phone Service
      Set-Service -Name "PhoneSvc" -StartupType Disabled
      Stop-Service -Name "PhoneSvc" -Force
      
      Write-Output "Servicios desactivados correctamente."
      • Esta respuesta fue modificada hace 3 meses, 1 semana por Spek Regg.
    • #19744 Responder
      Spek Regg
      Superadministrador

      Script para mejorar todavía mas el Rendimiento y ganar velocidad

      # ============================================================
      # OPTIMIZACION WINDOWS - DESHABILITAR SERVICIOS INNECESARIOS
      # Ejecutar PowerShell COMO ADMINISTRADOR
      # ============================================================
      
      # Comprobar privilegios de administrador
      $CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent()
      $Principal = New-Object Security.Principal.WindowsPrincipal($CurrentUser)
      
      if (-not $Principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
          Write-Host ""
          Write-Host "ERROR: Ejecuta PowerShell como ADMINISTRADOR." -ForegroundColor Red
          Write-Host ""
          Pause
          Exit
      }
      
      Write-Host ""
      Write-Host "==============================================" -ForegroundColor Cyan
      Write-Host " OPTIMIZACION DE SERVICIOS DE WINDOWS" -ForegroundColor Cyan
      Write-Host "==============================================" -ForegroundColor Cyan
      Write-Host ""
      
      # ------------------------------------------------------------
      # FUNCION PARA DESHABILITAR SERVICIOS
      # ------------------------------------------------------------
      
      function Disable-WindowsService {
          param (
              [string]$ServiceName,
              [string]$Description
          )
      
          $Service = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
      
          if ($Service) {
      
              Write-Host "Procesando: $Description ($ServiceName)" -ForegroundColor Yellow
      
              # Detener servicio
              if ($Service.Status -ne "Stopped") {
                  try {
                      Stop-Service -Name $ServiceName -Force -ErrorAction Stop
                      Write-Host "  Servicio detenido." -ForegroundColor Green
                  }
                  catch {
                      Write-Host "  No se pudo detener inmediatamente." -ForegroundColor DarkYellow
                  }
              }
      
              # Deshabilitar inicio
              try {
                  Set-Service -Name $ServiceName -StartupType Disabled -ErrorAction Stop
                  Write-Host "  Inicio DESHABILITADO." -ForegroundColor Green
              }
              catch {
                  Write-Host "  No se pudo cambiar el tipo de inicio." -ForegroundColor Red
              }
      
          }
          else {
              Write-Host "No encontrado: $Description ($ServiceName)" -ForegroundColor DarkGray
          }
      
          Write-Host ""
      }
      
      # ============================================================
      # SYSMAIN
      # ============================================================
      
      Disable-WindowsService "SysMain" "SysMain / Superfetch"
      
      # ============================================================
      # TELEMETRIA
      # ============================================================
      
      Disable-WindowsService "DiagTrack" "Experiencias del usuario conectado y telemetria"
      
      # Servicio adicional relacionado con diagnostico/telemetria
      Disable-WindowsService "dmwappushservice" "Servicio WAP Push de diagnostico"
      
      # ============================================================
      # WINDOWS SEARCH
      # ============================================================
      
      Disable-WindowsService "WSearch" "Windows Search / Indexacion"
      
      # ============================================================
      # RETAIL DEMO
      # ============================================================
      
      Disable-WindowsService "RetailDemo" "Modo demostracion comercial"
      
      # ============================================================
      # FAX
      # ============================================================
      
      Disable-WindowsService "Fax" "Servicio de Fax"
      
      # ============================================================
      # MAPS BROKER
      # ============================================================
      
      Disable-WindowsService "MapsBroker" "Administrador de mapas descargados"
      
      # ============================================================
      # WINDOWS BIOMETRIC SERVICE
      # ============================================================
      
      Disable-WindowsService "WbioSrvc" "Servicio biometrico de Windows"
      
      # ============================================================
      # PHONE SERVICE
      # ============================================================
      
      Disable-WindowsService "PhoneSvc" "Servicio telefonico"
      
      # ============================================================
      # SERVICIOS XBOX
      # ============================================================
      
      Disable-WindowsService "XboxGipSvc" "Xbox Accessory Management Service"
      
      Disable-WindowsService "XblAuthManager" "Xbox Live Auth Manager"
      
      Disable-WindowsService "XblGameSave" "Xbox Live Game Save"
      
      Disable-WindowsService "XboxNetApiSvc" "Xbox Live Networking Service"
      
      # ============================================================
      # BUSCAR OTROS SERVICIOS XBOX / XBL INSTALADOS
      # ============================================================
      
      Write-Host "Buscando servicios adicionales de Xbox..." -ForegroundColor Cyan
      Write-Host ""
      
      $XboxServices = Get-Service -ErrorAction SilentlyContinue | Where-Object {
      
          $_.Name -like "*Xbox*" -or
          $_.Name -like "*Xbl*" -or
          $_.DisplayName -like "*Xbox*"
      
      }
      
      foreach ($Service in $XboxServices) {
      
          Write-Host "Servicio Xbox encontrado: $($Service.DisplayName) [$($Service.Name)]" -ForegroundColor Yellow
      
          try {
              Stop-Service -Name $Service.Name -Force -ErrorAction SilentlyContinue
              Set-Service -Name $Service.Name -StartupType Disabled -ErrorAction SilentlyContinue
      
              Write-Host "  DESHABILITADO" -ForegroundColor Green
          }
          catch {
              Write-Host "  No se pudo modificar." -ForegroundColor Red
          }
      
          Write-Host ""
      }
      
      # ============================================================
      # RESULTADO
      # ============================================================
      
      Write-Host ""
      Write-Host "==============================================" -ForegroundColor Green
      Write-Host " OPTIMIZACION COMPLETADA" -ForegroundColor Green
      Write-Host "==============================================" -ForegroundColor Green
      Write-Host ""
      
      Write-Host "Servicios configurados:" -ForegroundColor White
      Write-Host " - SysMain"
      Write-Host " - Telemetria / DiagTrack"
      Write-Host " - dmwappushservice"
      Write-Host " - Windows Search"
      Write-Host " - Retail Demo"
      Write-Host " - Fax"
      Write-Host " - MapsBroker"
      Write-Host " - Windows Biometric Service"
      Write-Host " - Phone Service"
      Write-Host " - Servicios Xbox/Xbox Live"
      Write-Host ""
      
      Write-Host "RECOMENDADO: reinicia Windows para aplicar completamente los cambios." -ForegroundColor Cyan
      Write-Host ""
      
      Pause
      • Esta respuesta fue modificada hace 1 mes, 3 semanas por Spek Regg.
Mostrando 2 respuestas a los debates
Respuesta a: Responder #19744 en Script PowerShell para Windows 10 LTSC para recuperar espacio y ganar velocidad
Tu información:





Cancelar