::YMtechMultiUSB 환경설정 유용한 레지스트리 값 적용하기-멀티 OS 공통적용 v9.98_2023-11-21

:: All OS 적용 시작 

::YMtechLOGO 와 SAFE Mode 구현용 파일 및 작업표시줄 복구파일 및 파일삭제 파일복사 
copy /y .\ymtech.bmp C:\windows\
copy /y .\safe\*.* C:\Windows\
copy /y .\DTiconMK.cmd C:\windows\
copy /y .\restore.cmd C:\Windows\
copy /y .\del.cmd C:\Windows\
copy /y .\alert_v.cmd C:\Windows\


::DTiconView_ Runonce 추가
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "DTiconView" /t REG_SZ /d "C:\windows\DTiconMK.cmd" /f


::IE 아이콘 표시 v9.96에서 삭제


::우클릭 제어판 추가
reg.exe add "HKEY_CLASSES_ROOT\DesktopBackground\Shell\Control Panel" /v "" /d "ControlPanel" /f
reg.exe add "HKEY_CLASSES_ROOT\DesktopBackground\Shell\Control Panel" /v "icon" /d "Control.exe" /f
reg.exe add "HKEY_CLASSES_ROOT\DesktopBackground\Shell\Control Panel\command" /v "" /d "Control.exe" /f



::우클릭 시스템 종료관련 메뉴추가
reg.exe add "HKEY_CLASSES_ROOT\Directory\background\shell\Shutdown Command" /v "SubCommands" /d "Lock;SwitchUser;SignOut;Sleep;Hibernate;NormalMode;SafeMode;Restart;BootOptions;Shutdown;HybridShutdown;ReservationEndTime01;ReservationEndTime02;ReservationEndTime03;ReservationEndTime04;Abort" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\background\shell\Shutdown Command" /v "Position" /d "Bottom" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\background\shell\Shutdown Command" /v "MUIVerb" /d "ShutDown" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\background\shell\Shutdown Command" /v "icon" /d "shell32.dll,-28" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\background\shell\Shutdown Command" /v "MultiSelectModel" /d "Player" /f
reg.exe add "HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Shutdown Command" /v "SubCommands" /d "Lock;SwitchUser;SignOut;Sleep;Hibernate;SafeMode;Restart;BootOptions;Shutdown;HybridShutdown;ReservationEndTime01;ReservationEndTime02;ReservationEndTime03;ReservationEndTime04;Abort" /f
reg.exe add "HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Shutdown Command" /v "Position" /d "Bottom" /f
reg.exe add "HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Shutdown Command" /v "MUIVerb" /d "ShutDown" /f
reg.exe add "HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Shutdown Command" /v "icon" /d "shell32.dll,-28" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime01" /v "" /d "R-Shutdown - 10M" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime01" /v "icon" /d "shell32.dll,-16771" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime01" /v "CommandFlags" /t REG_DWORD /d "32" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime01\Command" /v "" /d "shutdown -s -f -t 600" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime02" /v "" /d "R-Shutdown - 20M" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime02" /v "icon" /d "shell32.dll,-16771" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime02\Command" /v "" /d "shutdown -s -f -t 1200" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime03" /v "" /d "R-Shutdown - 30M" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime03" /v "icon" /d "shell32.dll,-16771" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime03\Command" /v "" /d "shutdown -s -f -t 1800" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime04" /v "" /d "R-Shutdown - 60M" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime04" /v "icon" /d "shell32.dll,-16771" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReservationEndTime04\Command" /v "" /d "shutdown -s -f -t 3600" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Abort" /v "" /d "R-Shutdown Cancel" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Abort" /v "icon" /d "imageres.dll,-98" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Abort" /v "CommandFlags" /t REG_DWORD /d "32" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Abort\Command" /v "" /d "shutdown -a" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\BootOptions" /v "" /d "Restart Advanced Boot Menu" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\BootOptions" /v "icon" /d "shell32.dll,-176" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\BootOptions\Command" /v "" /d "Shutdown -r -o -f -t 00" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Hibernate" /v "" /d "hibernation mode" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Hibernate" /v "icon" /d "imageres.dll,-101" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Hibernate\Command" /v "" /d "rundll32.exe powrprof.dll, SetSuspendState Hibernate" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\HybridShutdown" /v "" /d "Quick Shutdown" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\HybridShutdown" /v "icon" /d "shell32.dll,-28" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\HybridShutdown\Command" /v "" /d "shutdown -s -f -hybrid -t 00" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Lock" /v "" /d "Lock Screen" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Lock" /v "icon" /d "shell32.dll,-48" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Lock\Command" /v "" /d "rundll32.exe user32.dll, LockWorkStation" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Restart" /v "" /d "Reboot" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Restart" /v "icon" /d "shell32.dll,-290" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Restart" /v "CommandFlags" /t REG_DWORD /d "32" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Restart\Command" /v "" /d "shutdown.exe -r -t 00 -f" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Shutdown" /v "" /d "Shutdown" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Shutdown" /v "icon" /d "shell32.dll,-28" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Shutdown\Command" /v "" /d "shutdown.exe -s -t 00 -f" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SignOut" /v "" /d "Logout" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SignOut" /v "icon" /d "shell32.dll,-45" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SignOut\Command" /v "" /d "shutdown.exe -L" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Sleep" /v "" /d "PowerSave" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Sleep" /v "icon" /d "powercpl.dll,-514" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Sleep\Command" /v "" /d "rundll32.exe powrprof.dll, SetSuspendState Sleep" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SwitchUser" /v "" /d "CH User" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SwitchUser" /v "icon" /d "imageres.dll,-88" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SwitchUser\Command" /v "" /d "tsdiscon.exe" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\NormalMode" /v "" /d "Reboot Normal" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\NormalMode" /v "Icon" /d "c:\Windows\Safe.ico" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\NormalMode" /v "HasLUAShield" /d "" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\NormalMode" /v "CommandFlags" /t REG_DWORD /d "32" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\NormalMode\Command" /v "" /d "WScript c:\Windows\Normal_Mode.vbs" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SafeMode" /v "" /d "Reboot SaveMode" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SafeMode" /v "Icon" /d "c:\Windows\Safe.ico" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SafeMode" /v "HasLUAShield" /d "" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SafeMode\Command" /v "" /d "WScript c:\Windows\Safe_Mode.vbs" /f



::우클릭 CMD관리자 메뉴 추가
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas" /v "" /d "Open a CMD window Here with Admin Privileges" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas" /v "icon" /d "CMD.EXE" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command" /v "" /d "cmd.exe /s /k pushd \"%%V\"" /f



::빠른 종료 시간설정
reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v WaitToKillServiceTimeout /d 100 /f
reg add "HKCU\Control Panel\Desktop" /v AutoEndTasks /d 1 /f
reg add "HKCU\Control Panel\Desktop" /v HungAppTimeout /d 100 /f
reg add "HKCU\Control Panel\Desktop" /v WaitToKillAppTimeout /d 100 /f
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v AutoEndTasks /d 1 /f
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v HungAppTimeout /d 100 /f
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v WaitToKillAppTimeout /d 100 /f

::tcp-ip 패치
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpNumConnections" /t REG_DWORD /d "50" /f

::timeOut 100
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d "100" /f


::우클릭 캡처도구 추가 v9.96에서 삭제 작업표시줄 등록 Win11에서 업데이트 되면서 오류떠서 삭제


::단축아이콘에 ~바로가기 문구 삭제
reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "link" /t REG_BINARY /d "00000000" /f


::newKillAPPtimeOut 설정
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ActiveWndTrkTimeout" /t REG_DWORD /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "CaretWidth" /t REG_DWORD /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "CoolSwitch" /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "CoolSwitchColumns" /d "7" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "CoolSwitchRows" /d "3" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "CursorBlinkRate" /d "530" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "DragFullWindows" /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "DragHeight" /d "4" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "DragWidth" /d "4" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "FontSmoothing" /d "2" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "FontSmoothingOrientation" /t REG_DWORD /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "FontSmoothingType" /t REG_DWORD /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ForegroundFlashCount" /t REG_DWORD /d "3" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ForegroundLockTimeout" /t REG_DWORD /d "200000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "GridGranularity" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "HungAppTimeout" /d "300" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowPowerActive" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowPowerTimeOut" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /d "100" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "PaintDesktopVersion" /t REG_DWORD /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "PowerOffActive" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "PowerOffTimeOut" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ScreenSaverIsSecure" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ScreenSaveTimeOut" /d "300" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ScreenSaveActive" /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "TileWallpaper" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d "be3e0780" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WaitToKillAppTimeout" /d "300" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "BorderWidth" /d "0" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "CaptionFont" /t REG_BINARY /d "f3ffffff000000000000000000000000bc020000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "CaptionHeight" /d "-375" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "CaptionWidth" /d "-270" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "IconFont" /t REG_BINARY /d "f4ffffff00000000000000000000000090010000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "IconSpacing" /d "-1125" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "IconTitleWrap" /d "1" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "IconVerticalspacing" /d "-1125" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MenuFont" /t REG_BINARY /d "f4ffffff00000000000000000000000090010000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MenuHeight" /d "-285" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MenuWidth" /d "-270" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MessageFont" /t REG_BINARY /d "f4ffffff00000000000000000000000090010000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "ScrollHeight" /d "-255" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "ScrollWidth" /d "-255" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "Shell Icon BPP" /d "16" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "SmCaptionFont" /t REG_BINARY /d "f4ffffff000000000000000000000000bc020000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "SmCaptionHeight" /d "-255" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "SmCaptionWidth" /d "-255" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "StatusFont" /t REG_BINARY /d "f4ffffff00000000000000000000000090010000000000010000000074adbcb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "Shell Icon Size" /d "32" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "AppliedDPI" /t REG_DWORD /d "96" /f
reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /d "1" /f



::UAC해제
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableSecureUIAPaths" /t REG_DWORD /d "1" /f


::우클릭 Explorer재시작 생성
If exist "%Temp%\~import.reg" (
 Attrib -R -S -H "%Temp%\~import.reg"
 del /F /Q "%Temp%\~import.reg"
 If exist "%Temp%\~import.reg" (
  Echo Could not delete file "%Temp%\~import.reg"
  Pause
 )
)
> "%Temp%\~import.reg" ECHO Windows Registry Editor Version 5.00
>> "%Temp%\~import.reg" ECHO.
>> "%Temp%\~import.reg" ECHO [HKEY_CLASSES_ROOT\Directory\background\shell\Explorer Reflash]
>> "%Temp%\~import.reg" ECHO @="Explorer Reflash(&L)"
>> "%Temp%\~import.reg" ECHO "Icon"="shell32.dll,-16739"
>> "%Temp%\~import.reg" ECHO "Position"="top"
>> "%Temp%\~import.reg" ECHO.
>> "%Temp%\~import.reg" ECHO [HKEY_CLASSES_ROOT\Directory\background\shell\Explorer Reflash\command]
>> "%Temp%\~import.reg" ECHO @="tskill explorer"
START /WAIT REGEDIT /S "%Temp%\~import.reg"
DEL "%Temp%\~import.reg"



::OS 체크 윈1110 과 윈7 구분 선택 적용 항목 SystemApps 없으면 윈7

:CheckOS
IF EXIST "%WINDIR%\SystemApps" (GOTO Win1011only) ELSE (GOTO Win7only)

:Win7only

::페이징파일 2048 강제 자동설정
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolQuota" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolSize" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolQuota" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolSize" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SecondLevelDataCache" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionPoolSize" /t REG_DWORD /d "4" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionViewSize" /t REG_DWORD /d "48" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SystemPages" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /d "c:\pagefile.sys 1024 2048" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PhysicalAddressExtension" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d "3" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d "3" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ExistingPageFiles" /t REG_MULTI_SZ /d "\??\C:\pagefile.sys" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "BootId" /t REG_DWORD /d "13" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "BaseTime" /t REG_DWORD /d "639596171" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d "3" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d "3" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableBootTrace" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\StoreParameters" /f


:: 윈도우7 등록정보 적용
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Model" /d "The Win7ENG MOD v2405" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /d "Custom by YMtech.COMLab" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /d "C:\WINDOWS\YMtech.bmp" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /d "" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /d "https://sihloh4me.tistory.com/402" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /d "09:00~21:00" /f

::윈도우7 업데이트 중지 설정 v9.3 추가
sc config wuauserv start= disabled

::디스크조각모음 중지 후 사용안함
sc stop defragsvc
sc config defragsvc start= disabled

::Disable Messenger Service
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger" /v "Start" /t REG_DWORD /d "4" /f

::Disable Automatic Updates
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv" /v "Start" /t REG_DWORD /d "4" /f

::Disable Indexing Service
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CiSvc" /v "Start" /t REG_DWORD /d "0" /f

::Disable Security Center
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc" /v "Start" /t REG_DWORD /d "4" /f

::Disable Telnet
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TlntSvr" /v "Start" /t REG_DWORD /d "4" /f

::Disable Firewall Service
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess" /v "Start" /t REG_DWORD /d "4" /f


::Disable Remote-Desktop Service
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d "1" /f
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f


GOTO END


:Win1011only

::OS 체크 윈11과 윈10 구분 선택 적용 항목 UUS 존재하면 윈11

:CheckOS
IF EXIST "%WINDIR%\UUS" (GOTO Win11only) ELSE (GOTO Win10only)

:Win10only
:: 윈도우10 전용 등록정보 적용 v2402 수정
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Model" /d "YMtech Custom Win 10" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /d "Custom by YMtech.COMLab" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "LOGO" /d "C:\windows\YMtech.bmp" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /d "" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /d "https://sihloh4me.tistory.com/" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /d "09:00~21:00" /f


GOTO END

:Win11only
:: 윈도우11 전용 등록정보 적용 v2402 수정
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Model" /d "YMtech Custom Win 11" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /d "Custom by YMtech.COMLab" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "LOGO" /d "C:\windows\YMtech.bmp" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /d "" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /d "https://sihloh4me.tistory.com/" /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /d "09:00~21:00" /f


GOTO END


:END
exit /b 

