@echo off
color 1f
mode con cols=67 lines=27
pushd %~dp0
setlocal enabledelayedexpansion

net session >nul 2>&1 || mshta vbscript:close(createobject("shell.application").shellexecute("%~s0","%*","","runas",1)) && exit

echo.
echo.
echo.
echo    여러 가지를 끄기로 지정하오니 신중히 실행하세요 
echo.   
echo    취소하려면 창을 닫으시고  실행은  엔터                                 
pause >nul     

cls
setlocal enabledelayedexpansion
bcdedit /set {default} bootmenupolicy legacy   
bcdedit /set {default} bootmenupolicy legacy   

echo f  | xcopy /y "icon" "C:\Windows\System32\" /e /h /k
echo f  | xcopy /y "Portable\Tools\" "C:\Program Files\Portable\Tools\" /e /h /k
cls


 ::사용자 계정 콘트롤 조정   시작 화면에 표시 제거   중복 표시 제거
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

set regPath=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}
REM 레지스트리 키 존재 여부 확인
reg query "%regPath%" >nul 2>&1
if %errorlevel%==0 (
    echo.
    reg delete "%regPath%" /f
    echo 삭제 완료.
) else (
    echo.
)

 ::권한
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /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 add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /t REG_SZ /d "%%windir%%\System32\transparent.ico" /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\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


>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"
)


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
)
if exist "C:\Windows\System32\SecurityHealthCore.dll" goto :Windows11

:Windows10
>"%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\ShutdownRestart" /v "icon" /t REG_SZ /d "\"C:\Windows\System32\Start.ico\"" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /v "Position" /t REG_SZ /d "Bottom" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /ve /t REG_SZ /d "종료 및 재시작" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /v "Possion" /t REG_SZ /d "Bottme" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart\command" /ve /t REG_SZ /d "\"C:\Program Files\Portable\Tools\Shutdown.exe\"" /f


:: 바탕 아이콘 내 PC 
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /t REG_DWORD /d "1" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d "0" /f
::Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d "0" /f

::바탕화면 저장 새로고침
Reg.exe delete "HKLM\1\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /f
Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Update" /v "UpdateMode" /t REG_DWORD /d "0" /f


:: 시간 표시
Reg add "HKCU\Control Panel\International" /v "sTimeFormat" /t REG_SZ /d "tt h:mm" /f
Reg add "HKCU\Control Panel\International" /v "sShortTime" /t REG_SZ /d "tt h:mm" /f


mode con cols=70 lines=12

cls
echo.
echo.
echo.
echo.
echo             -설정 완료-
echo.
echo             - 마치고 탐색기 재시작을 한번 하세요-
timeout /t 03 /nobreak > nul
exit


:Windows11
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 "imageres.dll,229" /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

>"%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,233", "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,233", "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,228", "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,228", "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,233"
>>"%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,233"
>>"%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,228", "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,228", "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,233", "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,233", "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,233"
>>"%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,233"
>>"%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\ShutdownRestart" /v "icon" /t REG_SZ /d "\"C:\Windows\System32\Start.ico\"" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /v "Position" /t REG_SZ /d "Bottom" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /ve /t REG_SZ /d "종료 및 재시작" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart" /v "Possion" /t REG_SZ /d "Bottme" /f
Reg add "HKLM\Software\Classes\DesktopBackground\Shell\ShutdownRestart\command" /ve /t REG_SZ /d "\"C:\Program Files\Portable\Tools\Shutdown.exe\"" /f

:: 바탕 아이콘 1,내 PC 
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /t REG_DWORD /d "1" /f
Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d "0" /f
::Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d "0" /f

::바탕화면 저장 새로고침
REM 대상 레지스트리 경로
set regPath=HKLM\1\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments

REM 레지스트리 키 존재 여부 확인
reg query "%regPath%" >nul 2>&1
if %errorlevel%==0 (
    echo.
    reg delete "%regPath%" /f
    echo.
) else (
    echo.
)

Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Update" /v "UpdateMode" /t REG_DWORD /d "0" /f

:: 시간 표시
Reg add "HKCU\Control Panel\International" /v "sTimeFormat" /t REG_SZ /d "tt h:mm" /f
Reg add "HKCU\Control Panel\International" /v "sShortTime" /t REG_SZ /d "tt h:mm" /f

::우클릭 메뉴 형태 우클릭 만들기
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick" /v "SubCommands" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick" /v "MUIVerb" /t REG_SZ /d "우클릭 메뉴 전환" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick" /v "icon" /t REG_SZ /d "imageres.dll,310" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick" /v "SeparatorBefore" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick" /v "SeparatorAfter" /t REG_SZ /d "" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\Classic" /ve /t REG_SZ /d "클래식 메뉴" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\Classic" /v "icon" /t REG_SZ /d "shell32.dll,-62998" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\Classic\Command" /ve /t REG_SZ /d "cmd /s /c reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f & tskill explorer" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\MoreOption" /ve /t REG_SZ /d "추가 옵션 표시" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\MoreOption" /v "icon" /t REG_SZ /d "shell32.dll,-62999" /f
Reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\RightClick\shell\MoreOption\Command" /ve /t REG_SZ /d "cmd /s /c reg delete HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} /f & tskill explorer" /f

::탐색기의 겔러리 삭제
set regPath="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}"
reg query "%regPath%" >nul 2>&1
if %errorlevel%==0 (
    echo.
    reg delete "%regPath%" /f
    echo.
) else (
    echo.
)

mode con cols=70 lines=12
cls
echo.
echo.
echo.
echo.
echo             -설정 완료-
echo.
echo             - 마치고 탐색기 재시작을 한번 하세요-
timeout /t 03 /nobreak > nul
exit

