Ahora se carga el subárbol
Se carga el subárbol de C:\Users\Default\NTUSER.DAT
This commit is contained in:
@@ -1,55 +1,54 @@
|
||||
@echo off
|
||||
setlocal
|
||||
echo ==========================================
|
||||
echo Aplicando configuración institucional...
|
||||
echo ==========================================
|
||||
|
||||
:: ============================
|
||||
:: CARGAR NTUSER.DAT COMO default_profile
|
||||
:: ============================
|
||||
echo 🔄 Montando hive NTUSER.DAT...
|
||||
reg load "HKU\default_profile" "C:\Users\Default\NTUSER.DAT"
|
||||
if %errorlevel% neq 0 (
|
||||
echo ❌ Error cargando NTUSER.DAT. ¿Ya está montado o no tienes permisos?
|
||||
goto :EOF
|
||||
)
|
||||
|
||||
:: =========================================================
|
||||
:: TECLADO
|
||||
:: =========================================================
|
||||
|
||||
reg add "HKU\default_profile\Control Panel\Keyboard" /v InitialKeyboardIndicators /t REG_DWORD /d 2 /f
|
||||
|
||||
:: =========================================================
|
||||
:: SEGURIDAD Y CONTROL DE USUARIO
|
||||
:: =========================================================
|
||||
|
||||
:: Desactivar almacenamiento de contraseñas en Edge
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v PasswordManagerEnabled /t REG_DWORD /d 0 /f
|
||||
|
||||
:: Deshabilitar la ejecución automática de unidades USB
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f
|
||||
|
||||
:: Ocultar unidad C: en el explorador
|
||||
reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDrives /t REG_DWORD /d 4 /f
|
||||
|
||||
:: Deshabilitar edición del registro por usuarios
|
||||
reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableRegistryTools /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Ocultar panel de control y configuración
|
||||
reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoControlPanel /t REG_DWORD /d 1 /f
|
||||
|
||||
|
||||
:: =========================================================
|
||||
:: RENDIMIENTO Y MANTENIMIENTO
|
||||
:: =========================================================
|
||||
|
||||
:: Deshabilitar Windows Tips para nuevos usuarios
|
||||
reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Deshabilitar servicios de telemetría
|
||||
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
|
||||
|
||||
:: Desactivar sugerencias de inicio de apps en el menú inicio
|
||||
reg add "HKU\default_profile\Software\Policies\Microsoft\Windows\Explorer" /v NoStartMenuSuggestions /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Desactivar reinicio automático después de actualizaciones
|
||||
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
|
||||
|
||||
:: =========================================================
|
||||
:: MANTENER EQUIPOS LIMPIOS Y REINICIADOS
|
||||
:: =========================================================
|
||||
|
||||
:: Limpiar archivos temporales al cerrar sesión (Disk Cleanup estilo)
|
||||
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files" /v StateFlags0001 /t REG_DWORD /d 2 /f
|
||||
|
||||
:: Habilitar borrado automático de perfiles de usuario inactivos tras 30 días
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v DeleteUserProfilesOlderThan /t REG_DWORD /d 30 /f
|
||||
|
||||
:: Establecer tiempo máximo inactivo antes de cerrar sesión (en segundos)
|
||||
reg add "HKU\default_profile\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 600 /f
|
||||
reg add "HKU\default_profile\\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f
|
||||
reg add "HKU\default_profile\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f
|
||||
|
||||
:: ============================
|
||||
:: DESMONTAR HIVE
|
||||
:: ============================
|
||||
echo 🔄 Desmontando hive...
|
||||
reg unload "HKU\default_profile"
|
||||
|
||||
echo ✅ Configuración aplicada correctamente.
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user