@prompt $s
@color 5f
@cd /d %~dp0
@title hosts 각종 설정 한번에 ...
@mode con cols=73 lines=35
@setlocal enabledelayedexpansion

@echo 관리자권한 확인용 >%windir%\admin.confirm || @(
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\admin.vbs"
echo UAC.ShellExecute "%~0", "", "", "runas", 1 >> "%temp%\admin.vbs"
wscript.exe "%temp%\admin.vbs" & del "%temp%\admin.vbs" & exit)
@del %windir%\admin.confirm


@echo off
cls
echo.
echo.
echo                                 -설정 목록-
echo.
echo ▩-------------------------------------------------------------------
echo ▩   1, DNS 케시 최적화 /제어판에 업데이트콘 생성 / 안전모드 활성
echo ▩-------------------------------------------------------------------
echo ▩   2, 익스 우상단에서 쪼개는 늠 추방/시스템 트레이 구신들 추방 
echo ▩-------------------------------------------------------------------
echo ▩   3, 최대 절전 모드 off / 화면 시간 제한 2시간으로 설정
echo ▩-------------------------------------------------------------------
echo ▩   4, 탐색기 중복 표시 제거 /라이브러리,바로가기 화살표 제거
echo ▩-------------------------------------------------------------------
echo ▩   5, 휴지통 우 클릭 메뉴 중에 시작 화면에 고정 제거  
echo ▩------------------------------------------------------------------- 
echo ▩   6, 윈도 로그인 암호 변경 요구 제거
echo ▩-------------------------------------------------------------------
echo ▩   7, 알림 메시지 제거 및 아이콘 제거
echo ▩-------------------------------------------------------------------
echo ▩   8, 사진 뷰어 생성/사용자 계정 컨트롤 알리지 않음으로 설정 
echo ▩-------------------------------------------------------------------
echo ▩   9, 개인 정보 옵션 끄기 /탐색기 서치 이전화
echo ▩-------------------------------------------------------------------
echo ▩  10, 윈도에 대한 팁 표시 끄기
echo ▩-------------------------------------------------------------------
echo ▩  11, 시스템 위치 끄기
echo ▩-------------------------------------------------------------------
echo ▩  12, 필수 우클릭 메뉴 생성(전원,명령창,숨김/보기)
echo ▩-------------------------------------------------------------------
echo.
echo    여러 가지를 끄기로 지정하오니 신중히 실행하세요 
echo.   
echo    취소하려면 창을 닫으시고  실행은  엔터                                 
pause >nul     

cls
setlocal enabledelayedexpansion
bcdedit /set {default} bootmenupolicy legacy   
echo.
powercfg -h off  
Powercfg /CHANGE monitor-timeout-ac 120
Powercfg /CHANGE standby-timeout-ac 120
echo.
ipconfig/flushdns
echo.
echo f  | xcopy /y "icon" "C:\Windows\System32\" /e /h /k  
cls
Reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SoftLanding" /v "Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_BADGE_ENABLED" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoToastApplicationNotification" /t REG_DWORD /d "1" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d "0" /f
:: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ActivityDataModel\ReaderRevisionInfo --> 24FDFE48-D631-3641-91F1-806EF1A310FE"=hex(7):31,00,32,36,33,36,36,00,30,00,7b,\
:: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$de${e3d33a5c-2f29-40d1-bb0f-28192ca56072}$$windows.data.unifiedtile.localstartvolatiletilepropertiesmap\Current --> Data"=hex:02,00,00,00,9d,1c,21,da,c1,8f,d4,01,00,00,00,00,43,42,01,00,0d,12,\

Reg add "HKCU\Control Panel\International\User Profile" /v "HttpAcceptLanguageOptOut" /t REG_DWORD /d "1" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ActivityDataModel\ReaderRevisionInfo" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$de${e3d33a5c-2f29-40d1-bb0f-28192ca56072}$$windows.data.unifiedtile.localstartvolatiletilepropertiesmap\Current" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "1" /f

Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v "Settings" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /f
Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v "Settings" /t REG_BINARY /d "30000000feffffff02100000030000003e00000028000000000000001004000080070000380400006000000001000000" /f
Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\ToastAppIdentities" /f

 :: 암호 사용 기간 설정 제거
 echo [System Access] > set.inf
 echo PasswordComplexity = 0 >> set.inf
 echo MaximumPasswordAge = -1 >> set.inf
 echo [Version] >> set.inf
 echo signature="$CHICAGO$" >> set.inf
 echo Revision=1 >> set.inf
 secedit /configure /db test.sdb /cfg set.inf
 del  %windir%\security\logs\scesrv.log

 :: 라이브러리 제거
Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f

Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f

Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f

Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f

Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f

Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
Reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /F

::사용자 계정 콘트롤 조정   시작 화면에 표시 제거   중복 표시 제거
cls
Reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
Reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f
Reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f
::Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f
::Reg delete "HKCR\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f
::Reg delete "HKCR\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f
::Reg delete "HKCR\mscfile\shellex\ContextMenuHandlers\PintoStartScreen" /f
::Reg delete "HKLM\SOFTWARE\Classes\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f
Reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions" /v NoHelpItemSendFeedback /t REG_DWORD /d 1 /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /v PeopleBand /t REG_DWORD /d 0 /f

:: 바로가기 아이콘 화살표 제거
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /t REG_SZ /d "%%windir%%\System32\imageres.dll,-17" /f


:: 포토뷰 외 우클릭
Reg add "HKCR\Applications\photoviewer.dll\shell\open" /v "MuiVerb" /t REG_SZ /d "@photoviewer.dll,-3043" /f
Reg add "HKCR\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKCR\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tiff" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".bmp" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".dib" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".gif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jfif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpe" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpeg" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jxr" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
Reg add "HKLM\SOFTWARE\Classes\.bmp\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.dib\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.gif\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.jfif\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.jpe\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.jpeg\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.jpg\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.png\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.tif\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\.tiff\OpenWithProgIds" /v "Microsoft.PhotoManager.imagetype" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\Applications\photoviewer.dll\shell\open" /v "MuiVerb" /t REG_SZ /d "@photoviewer.dll,-3043" /f
Reg add "HKLM\SOFTWARE\Classes\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3056" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-70" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "EditFlags" /t REG_DWORD /d "65536" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "EditFlags" /t REG_DWORD /d "65536" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Png" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Png" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3057" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-71" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp" /v "EditFlags" /t REG_DWORD /d "65536" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\wmphoto.dll,-400" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
Reg add "HKLM\SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /v "System.Software.TasksFileUrl" /t REG_SZ /d "Internal" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /v "System.ApplicationName" /t REG_SZ /d "Microsoft.WindowsUpdate" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /v "System.ControlPanel.Category" /t REG_SZ /d "5" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\shell32.dll,-22068" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /v "InfoTip" /t REG_SZ /d "@%%SystemRoot%%\system32\shell32.dll,-22580" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}\DefaultIcon" /ve /t REG_SZ /d "shell32.dll,-47" /f
Reg add "HKCR\CLSID\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}\Shell\Open\Command" /ve /t REG_EXPAND_SZ /d "control.exe /name Microsoft.WindowsUpdate" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}" /ve /t REG_SZ /d "Windows Update" /f
Reg add "HKCU\Control Panel\International" /v "sShortDate" /t REG_SZ /d "yy/MM/dd(ddd)" /f
Reg add "HKCU\Control Panel\International" /v "sTimeFormat" /t REG_SZ /d "tt: hh/mm" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSecondsInSystemClock" /t REG_DWORD /d "1" /f
Reg add "HKCR\Directory\Background\shell\Explorer 재시작" /ve /t REG_SZ /d "Explorer 재시작(&L)" /f
Reg add "HKCR\Directory\Background\shell\Explorer 재시작" /v "Icon" /t REG_SZ /d "shell32.dll,-16739" /f
Reg add "HKCR\Directory\Background\shell\Explorer 재시작" /v "Position" /t REG_SZ /d "top" /f
Reg add "HKCR\Directory\Background\shell\Explorer 재시작\command" /ve /t REG_SZ /d "tskill explorer" /f
Reg add "HKCR\Directory\Background\shell\runas" /ve /t REG_SZ /d "여기서 명령창 열기" /f
Reg add "HKCR\Directory\Background\shell\runas" /v "Icon" /t REG_SZ /d "System32\cmd.exe" /f
Reg add "HKCR\Directory\Background\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f
Reg add "HKCR\*\shell\runas" /ve /t REG_SZ /d "관리자 권한 얻기" /f
Reg add "HKCR\*\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f
Reg add "HKCR\*\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
Reg add "HKCR\*\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-5-32-544:F" /f
Reg add "HKCR\*\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-5-32-544:F" /f
Reg add "HKCR\exefile\shell\runas2" /ve /t REG_SZ /d "관리자 권한 얻기" /f
Reg add "HKCR\exefile\shell\runas2" /v "HasLUAShield" /t REG_SZ /d "" /f
Reg add "HKCR\exefile\shell\runas2" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
Reg add "HKCR\exefile\shell\runas2\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-5-32-544:F" /f
Reg add "HKCR\exefile\shell\runas2\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-5-32-544:F" /f
Reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "관리자 권한 얻기" /f
Reg add "HKCR\Directory\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f
Reg add "HKCR\Directory\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
Reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-5-32-544:F /t" /f
Reg add "HKCR\Directory\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-5-32-544:F /t" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d "0" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d "0" /f
Reg add "HKLM\SOFTWARE\Classes\*\shell\메모장으로 열기" /v "icon" /t REG_SZ /d "System32\notepad.exe" /f
Reg add "HKLM\SOFTWARE\Classes\*\shell\메모장으로 열기\command" /ve /t REG_SZ /d "notepad.exe %%1" /f


@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 0 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B
) else (
    pushd "%cd%"
    cd /d "%~dp0"
)

>"%Windir%\SuperHidden.vbs" echo If WScript.Arguments.length =0 Then
>>"%Windir%\SuperHidden.vbs" echo   Set objShell = CreateObject("Shell.Application")  
>>"%Windir%\SuperHidden.vbs" echo.
>>"%Windir%\SuperHidden.vbs" echo   objShell.ShellExecute "wscript.exe", Chr(34) ^& _
>>"%Windir%\SuperHidden.vbs" echo   WScript.ScriptFullName ^& Chr(34) ^& " uac", "", "runas", 1
>>"%Windir%\SuperHidden.vbs" echo Else
>>"%Windir%\SuperHidden.vbs" echo Dim WSHShell
>>"%Windir%\SuperHidden.vbs" echo Set WSHShell = WScript.CreateObject("WScript.Shell")
>>"%Windir%\SuperHidden.vbs" echo if WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden") = 1 then
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden", "숨겨진 항목 표시(&Z)", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden\Icon", "%SYSTEMROOT%\system32\imageres.dll,232", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden", "숨겨진 항목 표시(&Z)", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden\Icon", "%SYSTEMROOT%\system32\imageres.dll,232", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "0", "REG_DWORD"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden\Position", "Bottom", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden\Position", "Bottom", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.SendKeys "{F5}"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.Run "rundll32.exe shell32.dll,Options_RunDLL 7"
>>"%Windir%\SuperHidden.vbs" echo WScript.Sleep 100
>>"%Windir%\SuperHidden.vbs" echo WSHShell.SendKeys "{TAB}{DOWN}(^{ })(^{ }){TAB}{TAB}{ENTER}"
>>"%Windir%\SuperHidden.vbs" echo else
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden", "숨겨진 항목 표시(&Z)", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden\Icon", "%SYSTEMROOT%\system32\imageres.dll,227", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden", "숨겨진 항목 표시(&Z)", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden\Icon", "%SYSTEMROOT%\system32\imageres.dll,227", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "1", "REG_DWORD"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\ShowHidden\Position", "Bottom", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\ShowHidden\Position", "Bottom", "REG_SZ"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.SendKeys "{F5}"
>>"%Windir%\SuperHidden.vbs" echo WSHShell.Run "rundll32.exe shell32.dll,Options_RunDLL 7"
>>"%Windir%\SuperHidden.vbs" echo WScript.Sleep 100
>>"%Windir%\SuperHidden.vbs" echo WSHShell.SendKeys "{TAB}{DOWN}(^{ })(^{ }){TAB}{TAB}{ENTER}"
>>"%Windir%\SuperHidden.vbs" echo end if
>>"%Windir%\SuperHidden.vbs" echo Set WSHShell = Nothing
>>"%Windir%\SuperHidden.vbs" echo WScript.Quit(0)
>>"%Windir%\SuperHidden.vbs" echo End If
>"%temp%\_.reg" echo Windows Registry Editor Version 5.00
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\ShowHidden]
>>"%temp%\_.reg" echo @="숨겨진 항목 표시(&Z)"
>>"%temp%\_.reg" echo "Icon"="imageres.dll,232"
>>"%temp%\_.reg" echo "Position"="Bottom"
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\ShowHidden\command]
>>"%temp%\_.reg" echo @="Wscript.exe \"%HOMEDRIVE%\\Windows\\SuperHidden.vbs\""
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\Directory\Background\shell\ShowHidden]
>>"%temp%\_.reg" echo @="숨겨진 항목 표시(&Z)"
>>"%temp%\_.reg" echo "Icon"="imageres.dll,232"
>>"%temp%\_.reg" echo "Position"="Bottom"
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\Directory\background\shell\ShowHidden\command]
>>"%temp%\_.reg" echo @="Wscript.exe \"%HOMEDRIVE%\\Windows\\SuperHidden.vbs\""
regedit /s "%temp%\_.reg"
del /f /q "%temp%\_.reg"
>"%Windir%\FileExt.vbs" echo If WScript.Arguments.length =0 Then
>>"%Windir%\FileExt.vbs" echo   Set objShell = CreateObject("Shell.Application")  
>>"%Windir%\FileExt.vbs" echo.
>>"%Windir%\FileExt.vbs" echo   objShell.ShellExecute "wscript.exe", Chr(34) ^& _
>>"%Windir%\FileExt.vbs" echo   WScript.ScriptFullName ^& Chr(34) ^& " uac", "", "runas", 1
>>"%Windir%\FileExt.vbs" echo Else
>>"%Windir%\FileExt.vbs" echo Dim WSHShell
>>"%Windir%\FileExt.vbs" echo Set WSHShell = WScript.CreateObject("WScript.Shell")
>>"%Windir%\FileExt.vbs" echo if WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 1 then
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile", "파일 확장자 표시(&X)", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile\icon", "%SYSTEMROOT%\system32\imageres.dll,227", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile", "파일 확장자 표시(&X)", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile\icon", "%SYSTEMROOT%\system32\imageres.dll,227", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0", "REG_DWORD"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile\Position", "Bottom", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile\Position", "Bottom", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.SendKeys "{F5}"
>>"%Windir%\FileExt.vbs" echo WSHShell.Run "rundll32.exe shell32.dll,Options_RunDLL 7"
>>"%Windir%\FileExt.vbs" echo WScript.Sleep 100
>>"%Windir%\FileExt.vbs" echo WSHShell.SendKeys "{TAB}{DOWN}(^{ })(^{ }){TAB}{TAB}{ENTER}"
>>"%Windir%\FileExt.vbs" echo else
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile", "파일 확장자 표시(&X)", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile\icon", "%SYSTEMROOT%\system32\imageres.dll,232", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile", "파일 확장자 표시(&X)", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile\icon", "%SYSTEMROOT%\system32\imageres.dll,232", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "1", "REG_DWORD"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\LibraryFolder\background\shell\HideFile\Position", "Bottom", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.RegWrite "HKCR\Directory\background\shell\HideFile\Position", "Bottom", "REG_SZ"
>>"%Windir%\FileExt.vbs" echo WSHShell.SendKeys "{F5}"
>>"%Windir%\FileExt.vbs" echo WSHShell.Run "rundll32.exe shell32.dll,Options_RunDLL 7"
>>"%Windir%\FileExt.vbs" echo WScript.Sleep 100
>>"%Windir%\FileExt.vbs" echo WSHShell.SendKeys "{TAB}{DOWN}(^{ })(^{ }){TAB}{TAB}{ENTER}"
>>"%Windir%\FileExt.vbs" echo end if
>>"%Windir%\FileExt.vbs" echo Set WSHShell = Nothing
>>"%Windir%\FileExt.vbs" echo WScript.Quit(0)
>>"%Windir%\FileExt.vbs" echo End If
>"%temp%\_.reg" echo Windows Registry Editor Version 5.00
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\HideFile]
>>"%temp%\_.reg" echo @="파일 확장자 표시(&X)"
>>"%temp%\_.reg" echo "Icon"="imageres.dll,232"
>>"%temp%\_.reg" echo "Position"="Bottom"
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\HideFile\command]
>>"%temp%\_.reg" echo @="Wscript.exe \"%HOMEDRIVE%\\Windows\\FileExt.vbs\""
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\Directory\Background\shell\HideFile]
>>"%temp%\_.reg" echo @="파일 확장자 표시(&X)"
>>"%temp%\_.reg" echo "Icon"="imageres.dll,232"
>>"%temp%\_.reg" echo "Position"="Bottom"
>>"%temp%\_.reg" echo [HKEY_CLASSES_ROOT\Directory\background\shell\HideFile\command]
>>"%temp%\_.reg" echo @="Wscript.exe \"%HOMEDRIVE%\\Windows\\FileExt.vbs\""
regedit /s "%temp%\_.reg"
del /f /q "%temp%\_.reg"  
:: 종료 메뉴
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Shutdown" /v "icon" /t REG_SZ /d "System32\start.ico" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Shutdown" /v "Position" /t REG_SZ /d "Bottom" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Shutdown" /ve /t REG_SZ /d "컴,     종료" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Shutdown\command" /ve /t REG_SZ /d "C:\Windows\System32\shutdown.exe /s /t 0" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Restart" /v "icon" /t REG_SZ /d "System32\Restart.ico" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Restart" /v "Position" /t REG_SZ /d "Bottom" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Restart" /ve /t REG_SZ /d "컴,  재시작" /f

cls
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\Restart\command" /ve /t REG_SZ /d "C:\Windows\System32\shutdown.exe -r -t 0" /f
Reg add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}" /f
Reg add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13}" /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d "1" /f

del  /A/S/F/Q "set.inf"
del  /A/S/F/Q "test.jfm"
del  /A/S/F/Q "test.sdb"
FOR /F %%I in ('DIR /S /B /A:D "%USERPROFILE%\AppData\Local\Temp\*.tmp"') DO RD /S /Q "%%I"
FOR /F %%I in ('DIR /S /B /A:D "%USERPROFILE%\AppData\Local\Temp\*.000"') DO RD /S /Q "%%I"
cls
mode con cols=70 lines=12
echo.
echo.
echo.
echo.
echo             -설정 완료-
echo.
echo             - 마치고 탐색기 재시작을 한번 하세요-
timeout /t 03 /nobreak > nul


exit /b
