Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Thdub authored Jun 11, 2019
1 parent 140319a commit 80d0504
Show file tree
Hide file tree
Showing 54 changed files with 541 additions and 0 deletions.
45 changes: 45 additions & 0 deletions CUSTOMIZE ALL.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@echo off

%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

set "Install=FULL"
<nul set /p dummyName=Debloating Context Menu...
echo:
call "%~dp0\CUSTOMIZE\01_Context_Menu_DEBLOAT_MERGED.bat"
echo:
<nul set /p dummyName=Customizing Context Menu...
echo:
call "%~dp0\CUSTOMIZE\02_Context_Menu_CUSTOMIZE_MERGED.bat"
reg import "%~dp0\CUSTOMIZE\Display.reg" >NUL 2>&1
echo Done.
<nul set /p dummyName=Customizing Control Panel...
reg import "%~dp0\CUSTOMIZE\03_Control_Panel_MERGED.reg" >NUL 2>&1
echo Done.
<nul set /p dummyName=Applying Various System Tweaks...
reg import "%~dp0\CUSTOMIZE\04_System_MERGED.reg" >NUL 2>&1
echo Done.
<nul set /p dummyName=Customizing Applications Context Menu...
call "%~dp0\CUSTOMIZE\05_Applications_Context_Menu_MERGED.bat"
echo:
<nul set /p dummyName=Customizing WinX Menu...
call "%~dp0\CUSTOMIZE\06_WinX_Menu_CUSTOMIZE\CustomWinX_ALL\CustomWinX_ALL.bat"
echo Done.
<nul set /p dummyName=Installing Additional Tools...
call "%~dp0\CUSTOMIZE\07_Install_Additional_Scripts_and_Tools\Install_Additional_Scripts_and_Tools.bat"
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
echo: [?25l
setlocal EnableDelayedExpansion
for /f %%a in ('copy /Z "%~f0" nul') do set "CR=%%a"
for /L %%n in (30 -1 1) do (
<nul set /p "=Full personalization task has completed, closing script in %%n seconds...!CR!"
ping -n 2 localhost > nul
)
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
221 changes: 221 additions & 0 deletions RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE_MERGED.bat

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
86 changes: 86 additions & 0 deletions RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE_MERGED.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
@echo off

%windir%\system32\whoami.exe /USER | find /i "S-1-5-18" 1>nul && (
goto :OK
) || (
goto START
)
:START
cd /d "%~dp0"
:: IMPORT for NSudo
if exist "%ProgramFiles%\7-Zip\7z.exe" (
"%ProgramFiles%\7-Zip\7z.exe" x "%~dp0..\CUSTOMIZE\02_Context_Menu_CUSTOMIZE\Required_Scripts_and_Tools.zip" -y -r -o"%TEMP%\ContextMenuCustomize" >NUL & goto NSudo
)
:WINRAR
if exist "%programFiles%\WinRAR\WinRAR.exe" (
"%programFiles%\WinRAR\WinRAR.exe" x "%~dp0..\CUSTOMIZE\02_Context_Menu_CUSTOMIZE\Required_Scripts_and_Tools.zip" -ibck -o+ "%TEMP%\ContextMenuCustomize" >NUL & goto NSudo
)
:PS
powershell -ExecutionPolicy Bypass -command "Expand-Archive -Path "..\CUSTOMIZE\02_Context_Menu_CUSTOMIZE\Required_Scripts_and_Tools.zip" -DestinationPath "$env:TEMP\ContextMenuCustomize" -Force" >NUL 2>&1
:NSudo
"%TEMP%\ContextMenuCustomize\Nsudo\NSudoG.exe" -U:T -P:E "%~dpnx0"&exit /b >NUL 2>&1
:OK
<nul set /p dummyName=Restoring Default Values...
reg delete "HKCR\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f >NUL 2>&1
reg delete "HKCR\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f >NUL 2>&1
reg delete "HKCR\lnkfile\shellex\ContextMenuHandlers\PintoStartScreen" /f >NUL 2>&1
reg delete "HKCR\Directory\background\shell\cmd" /f >NUL 2>&1
reg delete "HKCR\Directory\background\shell\Powershell" /f >NUL 2>&1
reg delete "HKCR\Directory\background\shell\runas" /f >NUL 2>&1
reg delete "HKCR\Directory\shell\cmd" /f >NUL 2>&1
reg delete "HKCR\Directory\shell\Powershell" /f >NUL 2>&1
reg delete "HKCR\Directory\shell\runas" /f >NUL 2>&1
reg delete "HKCR\Drive\shell\cmd" /f >NUL 2>&1
reg delete "HKCR\Drive\shell\Powershell" /f >NUL 2>&1
reg delete "HKCR\Drive\shell\runas" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\cmd" /ve /t REG_SZ /d "@shell32.dll,-8506" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\cmd" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\cmd" /v "HideBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\cmd" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\cmd\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\Powershell" /ve /t REG_SZ /d "@shell32.dll,-8508" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\Powershell" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\Powershell" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\Powershell" /v "ShowBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Directory\background\shell\Powershell\command" /ve /t REG_SZ /d "powershell.exe -noexit -command Set-Location -literalPath '%%V'" /f >NUL 2>&1
reg add "HKCR\Directory\shell\cmd" /ve /t REG_SZ /d "@shell32.dll,-8506" /f >NUL 2>&1
reg add "HKCR\Directory\shell\cmd" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\shell\cmd" /v "HideBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Directory\shell\cmd" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\shell\cmd\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >NUL 2>&1
reg add "HKCR\Directory\shell\Powershell" /ve /t REG_SZ /d "@shell32.dll,-8508" /f >NUL 2>&1
reg add "HKCR\Directory\shell\Powershell" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\shell\Powershell" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Directory\shell\Powershell" /v "ShowBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Directory\shell\Powershell\command" /ve /t REG_SZ /d "powershell.exe -noexit -command Set-Location -literalPath '%%V'" /f >NUL 2>&1
reg add "HKCR\Drive\shell\cmd" /ve /t REG_SZ /d "@shell32.dll,-8506" /f >NUL 2>&1
reg add "HKCR\Drive\shell\cmd" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Drive\shell\cmd" /v "HideBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Drive\shell\cmd" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Drive\shell\cmd\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >NUL 2>&1
reg add "HKCR\Drive\shell\Powershell" /ve /t REG_SZ /d "@shell32.dll,-8508" /f >NUL 2>&1
reg add "HKCR\Drive\shell\Powershell" /v "Extended" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Drive\shell\Powershell" /v "NoWorkingDirectory" /t REG_SZ /d "" /f >NUL 2>&1
reg add "HKCR\Drive\shell\Powershell" /v "ShowBasedOnVelocityId" /t REG_DWORD /d "6527944" /f >NUL 2>&1
reg add "HKCR\Drive\shell\Powershell\command" /ve /t REG_SZ /d "powershell.exe -noexit -command Set-Location -literalPath '%%V'" /f >NUL 2>&1
reg delete "HKCR\*\shell\GetFileHash" /f >NUL 2>&1
reg delete "HKCR\Msi.Package\shell\Extract" /f >NUL 2>&1
reg delete "HKCR\*\shell\01_WinDefenderScan" /f >NUL 2>&1
reg delete "HKCR\Directory\shell\01_WinDefenderScan" /f >NUL 2>&1
reg delete "HKCR\Drive\shell\01_WinDefenderScan" /f >NUL 2>&1
reg delete "HKCR\*\shell\02_WinDefenderExclusions" /f >NUL 2>&1
reg delete "HKCR\Directory\shell\02_WinDefenderExclusions" /f >NUL 2>&1
reg delete "HKCR\Drive\shell\02_WinDefenderExclusions" /f >NUL 2>&1
reg delete "HKCR\DesktopBackground\shell\CheckForUpdates" /f >NUL 2>&1
reg delete "HKCR\DesktopBackground\shell\ControlPanel" /f >NUL 2>&1
reg delete "HKCR\DesktopBackground\shell\Settings" /f >NUL 2>&1
reg delete "HKCR\DesktopBackground\shell\System" /f >NUL 2>&1
reg delete "HKCR\DesktopBackground\shell\ToggleFirewall" /f >NUL 2>&1
reg delete "HKCR\Directory\background\shell\01_RestartExplorer" /f >NUL 2>&1
reg delete "HKCR\Directory\background\shell\02_SnippingTool" /f >NUL 2>&1
reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\Open Disk Cleaner" /f >NUL 2>&1
echo Done.
cd /d "%TEMP%"
rmdir /s /q "%TEMP%\ContextMenuCustomize" >NUL 2>&1
timeout /t 3 /nobreak >NUL 2>&1
exit /b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added RESTORE DEFAULT/04_System_RESTORE_MERGED.reg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Remove_Lock_Group1.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

cd /d "%LocalAppdata%\Microsoft\Windows\WinX\Group1" >NUL 2>&1
del "2 - Lock.lnk" /s /q >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group1b\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group1b" /s /q >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

cd /d "%LocalAppdata%\Microsoft\Windows\WinX\Group1" >NUL 2>&1
del "3 - Soft Restart.lnk" /s /q >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

:: Check Directories
if not exist "%LocalAppdata%\Microsoft\Windows\WinX\" mkdir "%LocalAppdata%\Microsoft\Windows\WinX" >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group1\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group1" /s /q >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group1b\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group1b" /s /q >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group2\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group2" /s /q >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group3\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group3" /s /q >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group4\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group4" /s /q >NUL 2>&1
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group5\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group5" /s /q >NUL 2>&1
:: Import
cd /d "%~dp0"
if exist "%ProgramFiles%\7-Zip\7z.exe" (
"%ProgramFiles%\7-Zip\7z.exe" x "%~dp0DefaultWinX.zip" -y -r -o"%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :RestoreAttrib
) || (
goto WINRAR
)
:WINRAR
if exist "%programFiles%\WinRAR\WinRAR.exe" (
"%programFiles%\WinRAR\WinRAR.exe" x "%~dp0DefaultWinX.zip" -ibck -o+ "%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :RestoreAttrib
) || (
goto PS
)
:PS
PowerShell -NoProfile -ExecutionPolicy Bypass "Expand-Archive -Path "DefaultWinX.zip" -DestinationPath "$env:LocalAppdata\Microsoft\Windows\WinX" -Force"
:RestoreAttrib
attrib +h +s "%LocalAppdata%\Microsoft\Windows\WinX\Group1\desktop.ini" & attrib +r +s "%LocalAppdata%\Microsoft\Windows\WinX\Group1" >NUL 2>&1
attrib +h +s "%LocalAppdata%\Microsoft\Windows\WinX\Group3\desktop.ini" & attrib +r +s "%LocalAppdata%\Microsoft\Windows\WinX\Group3" >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Leave .zip file next to the script.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

:: Check Directories
if not exist "%LocalAppdata%\Microsoft\Windows\WinX\" mkdir "%LocalAppdata%\Microsoft\Windows\WinX" >NUL 2>&1
cd /d "%LocalAppdata%\Microsoft\Windows\WinX"
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group2\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group2" /s /q >NUL 2>&1
:: Import
cd /d "%~dp0"
if exist "%ProgramFiles%\7-Zip\7z.exe" (
"%ProgramFiles%\7-Zip\7z.exe" x "%~dp0DefaultWinX_Restore_Only_Group2.zip" -y -r -o"%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :Restart_Explorer
) || (
goto WINRAR
)
:WINRAR
if exist "%programFiles%\WinRAR\WinRAR.exe" (
"%programFiles%\WinRAR\WinRAR.exe" x "%~dp0DefaultWinX_Restore_Only_Group2.zip" -ibck -o+ "%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :Restart_Explorer
) || (
goto PS
)
:PS
PowerShell -NoProfile -ExecutionPolicy Bypass "Expand-Archive -Path "DefaultWinX_Restore_Only_Group2.zip" -DestinationPath "$env:LocalAppdata\Microsoft\Windows\WinX" -Force" >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Leave .zip file next to the script.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

:: Check Directories
if not exist "%LocalAppdata%\Microsoft\Windows\WinX\" mkdir "%LocalAppdata%\Microsoft\Windows\WinX" >NUL 2>&1
cd /d "%LocalAppdata%\Microsoft\Windows\WinX"
if exist "%LocalAppdata%\Microsoft\Windows\WinX\Group3\" rmdir "%LocalAppdata%\Microsoft\Windows\WinX\Group3" /s /q >NUL 2>&1
:: Import
cd /d "%~dp0"
if exist "%ProgramFiles%\7-Zip\7z.exe" (
"%ProgramFiles%\7-Zip\7z.exe" x "%~dp0DefaultWinX_Restore_Only_Group3.zip" -y -r -o"%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :RestoreAttrib
) || (
goto WINRAR
)
:WINRAR
if exist "%programFiles%\WinRAR\WinRAR.exe" (
"%programFiles%\WinRAR\WinRAR.exe" x "%~dp0DefaultWinX_Restore_Only_Group3.zip" -ibck -o+ "%LocalAppdata%\Microsoft\Windows\WinX" >NUL & goto :RestoreAttrib
) || (
goto PS
)
:PS
PowerShell -NoProfile -ExecutionPolicy Bypass "Expand-Archive -Path "DefaultWinX_Restore_Only_Group3.zip" -DestinationPath "$env:LocalAppdata\Microsoft\Windows\WinX" -Force" >NUL 2>&1
:RestoreAttrib
attrib +h +s "%LocalAppdata%\Microsoft\Windows\WinX\Group3\desktop.ini" & attrib +r +s "%LocalAppdata%\Microsoft\Windows\WinX\Group3" >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Leave .zip file next to the script.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN

cd /d "%LocalAppdata%\Microsoft\Windows\WinX\Group1" >NUL 2>&1
del "2 - Lock.lnk" /s /q >NUL 2>&1
:Restart_Explorer
taskkill /IM explorer.exe /f >NUL 2>&1
runas /trustlevel:0x20000 "explorer.exe"
timeout /t 3 /nobreak >NUL 2>&1
schTasks /query /TN "CreateExplorerShellUnelevatedTask" >NUL 2>&1 && schTasks /Delete /TN "CreateExplorerShellUnelevatedTask" /f >NUL 2>&1
exit /b

:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof
8 changes: 8 additions & 0 deletions RESTORE DEFAULT/06_WinX_RESTORE_DEFAULT.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>NUL 2>NUL || goto :NOADMIN
"%~dp0\06_WinX_RESTORE\DefaultWinX_Restore_ALL\DefaultWinX.bat"& exit /b
:NOADMIN
echo You must have administrator rights to run this script.
<nul set /p dummyName=Press any key to exit...
pause >nul
goto :eof

0 comments on commit 80d0504

Please sign in to comment.