From fbbf34e3d93b820d7ad6f98d8e6b60fd57493ebc Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 27 May 2025 22:08:34 +0000 Subject: [PATCH] =?UTF-8?q?Tambi=C3=A9n=20para=20el=20usuario=20actual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Políticas/Mantenimiento.cmd | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Políticas/Mantenimiento.cmd b/Políticas/Mantenimiento.cmd index e5cde4f..49b4804 100644 --- a/Políticas/Mantenimiento.cmd +++ b/Políticas/Mantenimiento.cmd @@ -5,7 +5,7 @@ echo Aplicando configuración institucional... echo ========================================== :: ============================ -:: CARGAR NTUSER.DAT COMO default_profile +:: CARGAR HIVE NTUSER.DAT COMO default_profile :: ============================ echo 🔄 Montando hive NTUSER.DAT... reg load "HKU\default_profile" "C:\Users\Default\NTUSER.DAT" @@ -18,22 +18,32 @@ if %errorlevel% neq 0 ( :: TECLADO :: ========================================================= reg add "HKU\default_profile\Control Panel\Keyboard" /v InitialKeyboardIndicators /t REG_DWORD /d 2 /f +reg add "HKCU\Control Panel\Keyboard" /v InitialKeyboardIndicators /t REG_DWORD /d 2 /f :: ========================================================= :: SEGURIDAD Y CONTROL DE USUARIO :: ========================================================= reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v PasswordManagerEnabled /t REG_DWORD /d 0 /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f + reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDrives /t REG_DWORD /d 4 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDrives /t REG_DWORD /d 4 /f + reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableRegistryTools /t REG_DWORD /d 1 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableRegistryTools /t REG_DWORD /d 1 /f + reg add "HKU\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoControlPanel /t REG_DWORD /d 1 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoControlPanel /t REG_DWORD /d 1 /f :: ========================================================= :: RENDIMIENTO Y MANTENIMIENTO :: ========================================================= reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f + reg add "HKU\default_profile\Software\Policies\Microsoft\Windows\Explorer" /v NoStartMenuSuggestions /t REG_DWORD /d 1 /f +reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v NoStartMenuSuggestions /t REG_DWORD /d 1 /f + reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f :: ========================================================= @@ -41,14 +51,18 @@ reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoReb :: ========================================================= reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files" /v StateFlags0001 /t REG_DWORD /d 2 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v DeleteUserProfilesOlderThan /t REG_DWORD /d 30 /f + 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 "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 600 /f +reg add "HKCU\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. +echo ✅ Configuración aplicada a default user y usuario actual. pause