@@ -14,6 +14,11 @@ echo ---------------------------------------------------------------------------
1414
1515echo Change Log
1616echo .
17+ echo V5.1.5
18+ echo - Added Take OwnerShip to Context Menu
19+ echo - Blocks Camera on lockscreen
20+ echo - Multiple Privacy Tweaks
21+ echo - Added Alternative Tweak for HDD (SSD trim tweak)
1722echo V5.1.0
1823echo -Integrated multiple tweaks and her exe from Melody more info about her on readme.md
1924echo -Added TRIM option
@@ -104,8 +109,30 @@ echo Restore Point Created!
104109echo .
105110echo .
106111echo .
107-
108-
112+ echo Backing Up Registry...
113+ SETLOCAL
114+ SET RegBackup = %SYSTEMDRIVE% \RegBackup
115+ IF NOT EXIST " %RegBackup% " md " %RegBackup% "
116+ IF EXIST " %RegBackup% \HKLM.reg" DEL " %RegBackup% \HKLM.reg"
117+ REG export HKLM " %RegBackup% \HKLM.reg"
118+ IF EXIST " %RegBackup% \HKCU.reg" DEL " %RegBackup% \HKCU.reg"
119+ REG export HKCU " %RegBackup% \HKCU.reg"
120+ IF EXIST " %RegBackup% \HKCR.reg" DEL " %RegBackup% \HKCR.reg"
121+ REG export HKCR " %RegBackup% \HKCR.reg"
122+ IF EXIST " %RegBackup% \HKU.reg" DEL " %RegBackup% \HKU.reg"
123+ REG export HKU " %RegBackup% \HKU.reg"
124+ IF EXIST " %RegBackup% \HKCC.reg" DEL " %RegBackup% \HKCC.reg"
125+ REG export HKCC " %RegBackup% \HKCC.reg"
126+ IF EXIST " %RegBackup% \Backup.reg" DEL " %RegBackup% \Backup.reg"
127+ COPY " %RegBackup% \HKLM.reg" +" %RegBackup% \HKCU.reg" +" %RegBackup% \HKCR.reg" +" %RegBackup% \HKU.reg" +" %RegBackup% \HKCC.reg" " %RegBackup% \Backup.reg"
128+ DEL " %RegBackup% \HKLM.reg"
129+ DEL " %RegBackup% \HKCU.reg"
130+ DEL " %RegBackup% \HKCR.reg"
131+ DEL " %RegBackup% \HKU.reg"
132+ DEL " %RegBackup% \HKCC.reg"
133+ echo .
134+ echo Registry Backup completed! (found in C:> RegBckup)
135+ echo .
109136echo integrating Zusier's Registry Tweak
110137echo .
111138Reg.exe add " HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v " AllowTelemetry" /t REG_DWORD /d " 0" /f
@@ -228,20 +255,24 @@ Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{de01174f-7fa8-4f81-8f8
228255Reg.exe add " HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /f
229256powercfg -devicedisablewake " HID-compliant mouse"
230257powercfg -devicedisablewake " HID keyboard Device"
231- powercfg -setactive " de01174f-7fa8-4f81-8f82-bc6c84a39e47"
258+ powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
259+ powercfg -attributes SUB_PROCESSOR 5d76a2ca-e8c0-402f-a133-2158492d58ad -ATTRIB_HIDE
232260
233261
234262echo .
235263echo .
236264echo .
237- echo Tweaking Steam priorities
265+ echo Tweaking Program Priorities
238266echo .
239267reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\gameoverlayui.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 00000001 /f
240268reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\gameoverlayui.exe\PerfOptions" /v IoPriority /t REG_DWORD /d 00000000 /f
241269reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\steamservice.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 00000001 /f
242270reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\steamservice.exe\PerfOptions" /v IoPriority /t REG_DWORD /d 00000000 /f
243271reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\steamwebhelper.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 00000001 /f
244272reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\steamwebhelper.exe\PerfOptions" /v IoPriority /t REG_DWORD /d 00000000 /f
273+ Reg.exe add " HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FortniteClient-Win64-Shipping.exe\PerfOptions" /v " CpuPriorityClass" /t REG_DWORD /d " 3" /f
274+ wmic process where name=" javaw.exe" CALL setpriority " High"
275+ wmic process where name=" GTA5.exe" CALL setpriority " High"
245276echo .
246277echo The Registry integration error level is %ErrorLevel%
247278echo Finished!
@@ -825,12 +856,60 @@ reg.exe add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderApiLog
825856reg.exe add " HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderAuditLogger" /v " Start" /t REG_DWORD /d " 0" /f
826857Reg.exe add " HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v " EnableVirtualizationBasedSecurity" /t REG_DWORD /d " 0" /f
827858Reg.exe add " HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v " HVCIMATRequired" /t REG_DWORD /d " 0" /f
828-
859+ REG ADD " HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v " NoLockScreenCamera" /t REG_DWORD /d 1 /f
860+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\15.0\osm" /v " enablefileobfuscation" /t REG_DWORD /d 1 /f
861+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\15.0\osm" /v " enablelogging" /t REG_DWORD /d 0 /f
862+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\15.0\osm" /v " enableupload" /t REG_DWORD /d 0 /f
863+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common" /v " qmenable" /t REG_DWORD /d 0 /f
864+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common" /v " sendcustomerdata" /t REG_DWORD /d 0 /f
865+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common" /v " updatereliabilitydata" /t REG_DWORD /d 0 /f
866+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common\feedback" /v " enabled" /t REG_DWORD /d 0 /f
867+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common\feedback" /v " includescreenshot" /t REG_DWORD /d 0 /f
868+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common\internet" /v " useonlinecontent" /t REG_DWORD /d 0 /f
869+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\common\ptwatson" /v " ptwoptin" /t REG_DWORD /d 0 /f
870+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm" /v " enablefileobfuscation" /t REG_DWORD /d 1 /f
871+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm" /v " enablelogging" /t REG_DWORD /d 0 /f
872+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm" /v " enableupload" /t REG_DWORD /d 0 /f
873+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " accesssolution" /t REG_DWORD /d 1 /f
874+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " olksolution" /t REG_DWORD /d 1 /f
875+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " onenotesolution" /t REG_DWORD /d 1 /f
876+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " pptsolution" /t REG_DWORD /d 1 /f
877+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " projectsolution" /t REG_DWORD /d 1 /f
878+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " publishersolution" /t REG_DWORD /d 1 /f
879+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " visiosolution" /t REG_DWORD /d 1 /f
880+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " wdsolution" /t REG_DWORD /d 1 /f
881+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedapplications" /v " xlsolution" /t REG_DWORD /d 1 /f
882+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v " agave" /t REG_DWORD /d 1 /f
883+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v " appaddins" /t REG_DWORD /d 1 /f
884+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v " comaddins" /t REG_DWORD /d 1 /f
885+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v " documentfiles" /t REG_DWORD /d 1 /f
886+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v " templatefiles" /t REG_DWORD /d 1 /f
887+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\excel\security" /v " blockcontentexecutionfrominternet" /t REG_DWORD /d 1 /f
888+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\outlook\security" /v " level" /t REG_DWORD /d 2 /f
889+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\powerpoint\security" /v " blockcontentexecutionfrominternet" /t REG_DWORD /d 1 /f
890+ REG ADD " HKCU\SOFTWARE\Policies\Microsoft\office\16.0\word\security" /v " blockcontentexecutionfrominternet" /t REG_DWORD /d 0 /f
891+ REG ADD " HKCU\SOFTWARE\Microsoft\Tracing\WPPMediaPerApp\Skype\ETW" /v " TraceLevelThreshold" /t REG_DWORD /d 0 /f
892+ REG ADD " HKCU\SOFTWARE\Microsoft\Tracing\WPPMediaPerApp\Skype" /v " EnableTracing" /t REG_DWORD /d 0 /f
893+ REG ADD " HKCU\SOFTWARE\Microsoft\Tracing\WPPMediaPerApp\Skype\ETW" /v " EnableTracing" /t REG_DWORD /d 0 /f
894+ REG ADD " HKCU\SOFTWARE\Microsoft\Tracing\WPPMediaPerApp\Skype" /v " WPPFilePath" /t REG_SZ /d " %% SYSTEMDRIVE%% \TEMP\Tracing\WPPMedia" /f
895+ REG ADD " HKCU\SOFTWARE\Microsoft\Tracing\WPPMediaPerApp\Skype\ETW" /v " WPPFilePath" /t REG_SZ /d " %% SYSTEMDRIVE%% \TEMP\WPPMedia" /f
896+ echo .
897+ echo Adding Take Ownership to Context Menu
898+ REG ADD " HKCR\*\shell\runas" /ve /t REG_SZ /d " Take ownership" /f
899+ REG ADD " HKCR\*\shell\runas" /v " HasLUAShield" /t REG_SZ /d " " /f
900+ REG ADD " HKCR\*\shell\runas" /v " NoWorkingDirectory" /t REG_SZ /d " " /f
901+ REG ADD " HKCR\*\shell\runas\command" /ve /t REG_SZ /d " cmd.exe /c takeown /f \" %% 1\" && icacls \" %% 1\" /grant administrators:F" /f
902+ REG ADD " HKCR\*\shell\runas\command" /v " IsolatedCommand" /t REG_SZ /d " cmd.exe /c takeown /f \" %% 1\" && icacls \" %% 1\" /grant administrators:F" /f
903+ REG ADD " HKCR\Directory\shell\runas" /ve /t REG_SZ /d " Take ownership" /f
904+ REG ADD " HKCR\Directory\shell\runas" /v " HasLUAShield" /t REG_SZ /d " " /f
905+ REG ADD " HKCR\Directory\shell\runas" /v " NoWorkingDirectory" /t REG_SZ /d " " /f
906+ REG ADD " HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d " cmd.exe /c takeown /f \" %% 1\" /r /d y && icacls \" %% 1\" /grant administrators:F /t" /f
907+ 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 administrators:F /t" /f
829908
830909echo .
831910echo .
832911echo .
833- echo Finished prevention of Data Collection and Telemetry!
912+ echo Finished prevention of Data Collection and Telemetry! (privacy)
834913echo .
835914echo .
836915echo .
@@ -905,8 +984,11 @@ if /I "%c%" EQU "N" goto :Hw23
905984
906985:ssd!
907986fsutil behavior set disabledeletenotify 0
908-
987+ SET Prefetch = 0
909988:Hw23
989+ fsutil behavior set disabledeletenotify 1
990+ SET Prefetch = 0
991+ :bcfuhdw
910992set /P c = Would you like BCDedit tweaks? (Would reccomend as long as you have done your research).[Y/N]?
911993if /I " %c% " EQU " Y" goto :bcdedit67
912994if /I " %c% " EQU " N" goto :next766
0 commit comments