-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
541 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+56.5 KB
RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE/01_TXTprint_context_menu_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+28.2 KB
RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE/02_3DEdit_context_menu_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+2.43 KB
RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE/03_3DPrint_context_menu_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+19.7 KB
RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE/04_Optimize_context_menu_RESTORE_ALL.reg
Binary file not shown.
221 changes: 221 additions & 0 deletions
221
RESTORE DEFAULT/01_Context_Menu_DEBLOAT_RESTORE_MERGED.bat
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+992 Bytes
..._Context_Menu_CUSTOMIZE_REMOVE/01_PinToStart_for_Folders_Links_and_Executables_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+5.02 KB
...LT/02_Context_Menu_CUSTOMIZE_REMOVE/02_CMD_and_Powershell_Run_as_Administrator_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+438 Bytes
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/03_GetFileHash_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+564 Bytes
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/04_MSI_extract_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+1.01 KB
...AULT/02_Context_Menu_CUSTOMIZE_REMOVE/05_Scan_with_WindowsDefender_CommandLine_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+834 Bytes
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/06_WindowsDefender_Exclusions_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+568 Bytes
..._Context_Menu_CUSTOMIZE_REMOVE/07_Desktop_Background_CheckWindowsUpdate_Script_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+706 Bytes
...RE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/08_Desktop_Background_ControlPanel_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+650 Bytes
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/09_Desktop_Background_Settings_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+502 Bytes
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/10_Desktop_Background_System_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+638 Bytes
...DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE/11_Desktop_Background_Toggle_Firewall_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+478 Bytes
...AULT/02_Context_Menu_CUSTOMIZE_REMOVE/12_Directory_Background_Restart Explorer_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+538 Bytes
..._Context_Menu_CUSTOMIZE_REMOVE/13_Directory_Background_SnippingTool_ScreenSnip_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+614 Bytes
...02_Context_Menu_CUSTOMIZE_REMOVE/14_Open_Disk_Cleaner_Recycle_Bin_Context_Menu_REMOVE.reg
Binary file not shown.
86 changes: 86 additions & 0 deletions
86
RESTORE DEFAULT/02_Context_Menu_CUSTOMIZE_REMOVE_MERGED.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+828 Bytes
...DEFAULT/03_Control Panel_RESTORE/01_REMOVE_Classic_Personalization_from_Control_Panel.reg
Binary file not shown.
Binary file added
BIN
+774 Bytes
RESTORE DEFAULT/03_Control Panel_RESTORE/02_REMOVE_WindowsUpdate_from_Control_Panel.reg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+984 Bytes
RESTORE DEFAULT/04_System_RESTORE/01_Explorer Advanced Personalization_RESTORE.reg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+768 Bytes
...04_System_RESTORE/03_Change_how_many_People_Contacts_can_be_Pinned_to_Taskbar_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+528 Bytes
RESTORE DEFAULT/04_System_RESTORE/04_People_Button_in_Taskbar_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+1.06 KB
RESTORE DEFAULT/04_System_RESTORE/05_External_Drives_in_Navigation_Panel_RESTORE.reg
Binary file not shown.
Binary file added
BIN
+1.13 KB
RESTORE DEFAULT/04_System_RESTORE/06_Show_Drive_Letters_After_(DEFAULT).reg
Binary file not shown.
Binary file added
BIN
+564 Bytes
RESTORE DEFAULT/04_System_RESTORE/07_Show_Seconds_on_Taskbar_Clock_REMOVE.reg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.43 KB
RESTORE DEFAULT/05_Applications_REMOVE/01_NSudo_Context_Menu_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+4.34 KB
RESTORE DEFAULT/05_Applications_REMOVE/02_Notepad++ContextMenu_REMOVE.reg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+864 Bytes
RESTORE DEFAULT/05_Applications_REMOVE/04_Open_with_Photoshop_REMOVE.reg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+964 Bytes
RESTORE DEFAULT/05_Applications_REMOVE/06_Open_with_SoundForge_REMOVE.reg
Binary file not shown.
Binary file added
BIN
+914 Bytes
RESTORE DEFAULT/05_Applications_REMOVE/07_Open_with_iZotope_RX_REMOVE.reg
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Remove_Lock_Group1.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
16 changes: 16 additions & 0 deletions
16
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Remove_Scripts_Group1b.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 17 additions & 0 deletions
17
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Remove_SoftRestart_Group1.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
41 changes: 41 additions & 0 deletions
41
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Restore_ALL/DefaultWinX.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+11.3 KB
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Restore_ALL/DefaultWinX.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Restore_ALL/Script_ReadMe.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Leave .zip file next to the script. |
34 changes: 34 additions & 0 deletions
34
...FAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group2/DefaultWinX_Restore_Only_Group2.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+2.63 KB
...FAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group2/DefaultWinX_Restore_Only_Group2.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group2/Script_ReadMe.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Leave .zip file next to the script. |
36 changes: 36 additions & 0 deletions
36
...FAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group3/DefaultWinX_Restore_Only_Group3.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+7.57 KB
...FAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group3/DefaultWinX_Restore_Only_Group3.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
RESTORE DEFAULT/06_WinX_RESTORE/DefaultWinX_Restore_Only_Group3/Script_ReadMe.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Leave .zip file next to the script. |
17 changes: 17 additions & 0 deletions
17
RESTORE DEFAULT/06_WinX_RESTORE/Remove_Lock_Group1/DefaultWinX_Remove_Lock.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |