Inicio › Foros › Temas sobre Microsoft Windows › Script PowerShell para Windows 10 LTSC para recuperar espacio
- Este debate tiene 1 respuesta, 1 mensaje y ha sido actualizado por última vez el hace 1 mes por
Spek Regg.
Mostrando 1 respuesta al debate
-
AutorEntradas
-
-
Spek Regg
InvitadoAquí está el Script para Windows 10 LTSC de PowerShell
# ============================================== # 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 -
Spek Regg
SuperadministradorScript 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 1 mes por
Spek Regg.
-
Esta respuesta fue modificada hace 1 mes por
-
-
AutorEntradas
Mostrando 1 respuesta al debate