@echo off echo. echo. echo HUNGNP18@FPT.COM echo Cap nhat ngay: 24/11/2024 echo --------------------------------- echo. echo. :: Kiểm tranh quyền admin. echo - Kiem tra quyen Administrator. net session >nul 2>&1 if %errorlevel% neq 0 ( echo - Vui long chay quyen Administrator. pause exit ) :: Chỉnh Power Option trong Control Panel echo. echo - OFF: Hibernate and Fast Startup. powercfg /hibernate off reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f echo. echo - OFF: Sleep Mode (Prevent Sleep Timeout). powercfg /change standby-timeout-ac 0 powercfg /change standby-timeout-dc 0 echo. echo - OFF: Lock Screen Button (Remove Lock Option from Start Menu). reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableLockWorkstation /t REG_DWORD /d 1 /f echo. echo - OFF: Disable User Account Control (UAC). reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f echo. echo - OFF: Device Encryption (C, D) manage-bde -off C: manage-bde -off D: manage-bde -off E: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BitLocker" /v PreventDeviceEncryption /t REG_DWORD /d 1 /f echo. :: Chỉnh Windows Explorer echo - ON: Explorer This PC thay vi Quick Access. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f echo. echo - OFF: Show recently used folders in Quick Access. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowRecentFolders" /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Pinning" /t REG_DWORD /d 0 /f echo. echo - OFF: Show recently used files in Quick Access. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowRecentDocs" /t REG_DWORD /d 0 /f echo. echo - OFF: Show files from Office.com in File Explorer. reg add "HKCU\Software\Microsoft\Office\16.0\Common\Internet" /v "ShowFilesFromOfficeCom" /t REG_DWORD /d 0 /f echo. :: Chỉnh vị trí các biểu tượng trên Desktop echo - ON: Recycle Bin tren Desktop. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {645FF040-5081-101B-9F08-00AA002F954E} /t REG_DWORD /d 0 /f echo. echo - ON: This PC tren Desktop. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f echo. echo - ON: Control Panel tren Desktop. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0} /t REG_DWORD /d 0 /f echo. echo - ON: Small Icons. reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop" /v IconSize /t REG_DWORD /d 32 /f echo. echo - OFF: Shortcut Name Extension. REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /V link /T REG_Binary /D 00000000 /F Reg Delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates" /V ShortcutNameTemplate /F echo. :: Chỉnh màu trong Setting echo - ON che do Dark Mode cho Windows. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /t REG_DWORD /d 0 /f echo. echo - ON che do Light Mode cho Default Apps. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d 1 /f echo. echo - Thay doi mau sac cua so tieu de thanh mau xanh duong. reg add "HKCU\Software\Microsoft\Windows\DWM" /v "Color" /t REG_DWORD /d 0x0078D7 /f echo. echo - Cai dat mau sac Accent color thanh mau xanh duong. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AccentColor" /t REG_DWORD /d 0x0078D7 /f echo. echo - Hien thi mau sac nhan manh tren Start, Taskbar, va Action Center. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "ShowColorInTaskbarAndStart" /t REG_DWORD /d 1 /f echo. echo - Bat mau sac tren Start, Taskbar, Action Center. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v ColorPrevalence /t REG_DWORD /d 1 /f echo. echo - OFF: Thanh tim kiem. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f echo. echo - OFF: Task View. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f echo. echo - OFF: Widgets. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f echo. echo - OFF: Chat icon. reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f echo. echo - Chuyen Taskbar Alignment sang trai. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarAl /t REG_DWORD /d 0 /f echo. echo - OFF: thong bao Toast trong Windows 11. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f echo. echo - OFF: thong bao cap nhat he thong. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f echo. echo - OFF: thong bao bao mat tu Windows Defender. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v WindowsDefenderSecurityCenter /t REG_DWORD /d 0 /f echo. echo - OFF: thong bao canh bao he thong khac. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOCLOSE /t REG_DWORD /d 1 /f echo. echo - OFF: Focus Assist. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v FocusAssistState /t REG_DWORD /d 0 /f echo. :: --------------------------------- Chạy file REG -------------------- set REGISTRY_DIR=%~dp0RegistryFiles if exist "%REGISTRY_DIR%" ( echo - Dang quet thu muc chua file REG. echo. for %%F in ("%REGISTRY_DIR%\*.reg") do ( echo - Dang ap dung: %%~nxF regedit /s "%%F" if %errorlevel% neq 0 ( echo - Co loi: %%~nxF ) else ( echo - Thanh cong: %%~nxF ) echo. ) ) else ( echo - Thu muc khong ton tai: "%REGISTRY_DIR%". ) echo. echo - Cai dat REG hoan tat. taskkill /f /im explorer.exe start explorer.exe pause exit