Skip to content

optimización NVMe #2

Description

@AntonSiMal

@echo off
title Optimizador Inteligente SSD NVMe - Windows 11
color 0b
setlocal enabledelayedexpansion

:: 1. Verificar permisos de administrador
net session >nul 2>&1
if %errorLevel% neq 0 (
echo [ERROR] Por favor, ejecuta este script como ADMINISTRADOR.
pause
exit /b
)

echo ======================================================
echo ANALIZADOR DE ALMACENAMIENTO DE HARDZONE
echo ======================================================
echo.

:: 2. Detectar tipo de disco usando PowerShell
echo Buscando unidades NVMe en el sistema...
powershell -Command "Get-PhysicalDisk | Select-Object DeviceId, FriendlyName, MediaType, BusType | Format-Table"

:: Verificar si existe alguna unidad NVMe
powershell -Command "$disks = Get-PhysicalDisk | Where-Object { $_.BusType -eq 'NVMe' }; if (-not $disks) { exit 1 }"
if %errorLevel% neq 0 (
echo [AVISO] No se han detectado unidades NVMe conectadas por bus compatible.
echo Este tweak solo es efectivo para discos NVMe. Los SSD SATA o HDD no se veran beneficiados.
echo.
set /p force=¿Deseas continuar de todos modos? (S/N):
if /i "!force!" neq "S" exit
) else (
echo [OK] Se han detectado unidades NVMe compatibles.
)

echo.
echo ------------------------------------------------------
echo CONFIRMACION DE OPTIMIZACION
echo ------------------------------------------------------
echo Se forzara el uso de 'nvmedisk.sys' (driver de servidor).
echo Esto puede mejorar la latencia y velocidad en Windows 11.
echo.
set /p confirm=¿Deseas aplicar los 3 comandos de registro? (S/N):
if /i "%confirm%" neq "S" exit

echo.
echo Aplicando cambios en el registro...

:: Comandos del artículo de HardZone
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides" /v 735209102 /t REG_DWORD /d 1 /f >nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides" /v 1853569164 /t REG_DWORD /d 1 /f >nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides" /v 156965516 /t REG_DWORD /d 1 /f >nul

echo.
echo [!] REGISTRO ACTUALIZADO CORRECTAMENTE.
echo.
echo ======================================================
echo IMPORTANTE: REINICIO NECESARIO
echo ======================================================
echo Los cambios no surtiran efecto hasta que reinicies.
echo.
set /p restart=¿Quieres reiniciar el equipo ahora mismo? (S/N):
if /i "%restart%"=="S" (
echo Reiniciando en 5 segundos...
shutdown /r /t 5
) else (
echo Recuerda reiniciar manualmente para activar el driver nvmedisk.sys.
pause
)
exit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions