-
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(interface tweaks): recent items scripts
- Loading branch information
Showing
3 changed files
with
107 additions
and
14 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
44 changes: 44 additions & 0 deletions
44
...s/AtlasDesktop/4. Interface Tweaks/Unlock Recent Items/Disable Recent Items (default).cmd
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,44 @@ | ||
@echo off | ||
|
||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
echo Disabling recent items... | ||
|
||
( | ||
rem Policy | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInstrumentation" /t REG_DWORD /d "1" /f | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d "1" /f | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d "1" /f | ||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoRemoteDestinations" /t REG_DWORD /d "1" /f | ||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoStartMenuMFUprogramsList" /t REG_DWORD /d "1" /f | ||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d "1" /f | ||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "ShowOrHideMostUsedApps" /t REG_DWORD /d "1" /f | ||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideRecentlyAddedApps" /t REG_DWORD /d "1" /f | ||
|
||
rem Non-policy | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "0" /f | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "0" /f | ||
) > nul | ||
|
||
( | ||
taskkill /f /im SettingsApp.exe | ||
taskkill /f /im explorer.exe | ||
start explorer.exe | ||
) > nul 2>&1 | ||
|
||
call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /hide privacy-general | ||
|
||
echo] | ||
echo Finished, features relating to app, document, etc tracking have been disabled. | ||
echo Press any key to exit... | ||
pause > nul | ||
exit /b |
43 changes: 43 additions & 0 deletions
43
.../Executables/AtlasDesktop/4. Interface Tweaks/Unlock Recent Items/Unlock Recent Items.cmd
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,43 @@ | ||
@echo off | ||
|
||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
echo Unlocking recent items... | ||
|
||
( | ||
rem Policy | ||
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInstrumentation" /f | ||
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /f | ||
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /f | ||
reg delete "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoRemoteDestinations" /f | ||
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoStartMenuMFUprogramsList" /f | ||
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /f | ||
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "ShowOrHideMostUsedApps" /f | ||
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideRecentlyAddedApps" /f | ||
|
||
rem Non-policy | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "1" /f | ||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "1" /f | ||
|
||
taskkill /f /im SettingsApp.exe | ||
taskkill /f /im explorer.exe | ||
start explorer.exe | ||
) > nul 2>&1 | ||
|
||
call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide privacy-general | ||
|
||
echo] | ||
echo Finished, you should be able to configure features relating to app, document, etc tracking. | ||
echo See File Explorer's options panel, as well as the Start and general privacy settings pages. | ||
echo Press any key to exit... | ||
pause > nul | ||
exit /b |