<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Script PowerShell para Windows 11 LTSC 2024 para recuperar espacio &#8211; Spek Regg</title>
		<atom:link href="https://www.spek-regg.com/comunidad/tema/script-powershell-para-windows-11-ltsc-2024-para-recuperar-espacio/feed/" rel="self" type="application/rss+xml" />
		<link>https://www.spek-regg.com/comunidad/tema/script-powershell-para-windows-11-ltsc-2024-para-recuperar-espacio/feed/</link>
		<description></description>
		<lastBuildDate>Thu, 19 Mar 2026 13:27:30 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>es</language>

		
														
					
				<item>
					<guid>https://www.spek-regg.com/comunidad/tema/script-powershell-para-windows-11-ltsc-2024-para-recuperar-espacio/#post-16639</guid>
					<title><![CDATA[Script PowerShell para Windows 11 LTSC 2024 para recuperar espacio]]></title>
					<link>https://www.spek-regg.com/comunidad/tema/script-powershell-para-windows-11-ltsc-2024-para-recuperar-espacio/#post-16639</link>
					<pubDate>Fri, 10 Oct 2025 22:11:32 +0000</pubDate>
					<dc:creator>Spek Regg</dc:creator>

					<description>
						<![CDATA[
						<pre><code># ==============================================
# 🧹 Windows 11 LTSC 2024 - Limpieza avanzada
# Compatible con SQL Server Express 2022
# No elimina drivers ni controladores.
# ==============================================

Write-Host "Iniciando limpieza avanzada..." -ForegroundColor Cyan

# --- 1️⃣ Desactivar características innecesarias ---
Write-Host "Eliminando características opcionales..." -ForegroundColor Yellow
$features = @(
    "MediaPlayback",
    "WindowsMediaPlayer",
    "Printing-PrintToPDFServices-Features",
    "Printing-XPSServices-Features",
    "WorkFolders-Client",
    "FaxServicesClientPackage",
    "Hello-Face",
    "MicrosoftWindowsPowerShellV2",
    "Xps-Foundation-Xps-Viewer",
    "TabletPCOC",
    "Windows-Defender",
    "Windows-Defender-ApplicationGuard",
    "Windows-Defender-Features",
    "Windows-Defender-GUI"
)
foreach ($f in $features) {
    try {
        DISM /Online /Disable-Feature /FeatureName:$f /Remove /NoRestart | Out-Null
        Write-Host "✔ Característica eliminada: $f"
    } catch {
        Write-Host "⚠ No se pudo eliminar $f (puede no existir en LTSC)"
    }
}

# --- 2️⃣ 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

# --- 3️⃣ 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
Disable-ComputerRestore -Drive "C:\" -ErrorAction SilentlyContinue

# --- 4️⃣ 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"

# --- 5️⃣ Activar compresión del sistema ---
Write-Host "Activando CompactOS..." -ForegroundColor Yellow
compact /compactos:always

# --- 6️⃣ Deshabilitar servicios innecesarios ---
Write-Host "Deshabilitando servicios no críticos..." -ForegroundColor Yellow
$services = @("SysMain", "DiagTrack", "WSearch", "MapsBroker", "PrintSpooler")
foreach ($s in $services) {
    try {
        Stop-Service -Name $s -Force -ErrorAction SilentlyContinue
        Set-Service -Name $s -StartupType Disabled -ErrorAction SilentlyContinue
        Write-Host "✔ Servicio deshabilitado: $s"
    } catch {
        Write-Host "⚠ No se pudo deshabilitar $s"
    }
}

# --- 7️⃣ Limpieza final de archivos residuales ---
Write-Host "Ejecutando limpieza final..." -ForegroundColor Yellow
Start-Process cleanmgr -ArgumentList "/sagerun:1" -Wait

Write-Host "
n✅ Limpieza completada. Reinicia el sistema para aplicar todos los cambios." -ForegroundColor Green
Write-Host "Espacio liberado estimado: 15–20 GB"</code></pre>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

