-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToolbox.bat
1698 lines (1469 loc) · 77.3 KB
/
Toolbox.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
@CHCP 65001 >NUL 2>&1
@REM mode con:cols=78 lines=28
SET Current_Version=2.1.3
TITLE MagicX Toolbox v%Current_Version%
@REM Global PATH Variables
SET "Current_Dir=%~dp0"
SET "DESKTOP=%UserProfile%\Desktop"
SET "AU_Temp_Path=%TEMP%\MagicXToolbox_psbdgtx"
SET "Update_Path=%Current_Dir%\Update"
IF NOT EXIST "%AU_Temp_Path%\UpdateAvailable.yes" (
CALL :Check_AU >NUL 2>&1
)
FLTMC >NUL 2>&1 || (
ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\GetAdmin.vbs"
ECHO UAC.ShellExecute "%~FS0", "", "", "runas", 1 >> "%TEMP%\GetAdmin.vbs"
CMD /U /C TYPE "%TEMP%\GetAdmin.vbs">"%TEMP%\GetAdminUnicode.vbs"
CSCRIPT //NOLOGO "%TEMP%\GetAdminUnicode.vbs"
DEL /F /Q "%TEMP%\GetAdmin.vbs" >NUL 2>&1
DEL /F /Q "%TEMP%\GetAdminUnicode.vbs" >NUL 2>&1
EXIT
)
@REM Global Color Variables
SET "C_Red=[1;31m"
SET "C_Green=[1;32m"
SET "C_Yellow=[1;33m"
SET "C_Blue=[1;34m"
SET "C_Violate=[1;35m"
SET "C_Cyan=[1;36m"
SET "C_DEFAULT=%C_Yellow%"
@REM Other Global Variables
@REM Unicode Symbols ■
SET "Status_Symbol=■"
SET "APPLIED=%C_Green%%Status_Symbol%%C_DEFAULT%"
SET "NOT_APPLIED=%C_Red%%Status_Symbol%%C_DEFAULT%"
SET "Bullet_Point1=%C_Yellow%%Status_Symbol%%C_DEFAULT%"
SET "Bullet_Point2=%C_Violate%%Status_Symbol%%C_DEFAULT%"
SET /a "_rand=(%RANDOM%*6/32768)"
:Main_Menu
CLS
COLOR 0E
SET Menu_Address=Main_Menu
CALL :Header
ECHO %C_Red%--------------------------------------
ECHO ^|%C_DEFAULT% Author: %C_Cyan%Ehsan Khan (@ehsan18t)%C_DEFAULT% %C_Red%^|
ECHO ^|%C_DEFAULT% Target: %C_Cyan%Windows 10 19H2-22H2 %C_DEFAULT% %C_Red%^|
ECHO ^|%C_DEFAULT% TG Group: %C_Blue%https:\\t.me\MagicXMod%C_DEFAULT% %C_Red%^|
ECHO ^|%C_DEFAULT% Website: %C_Blue%MagicXMod.github.io%C_DEFAULT% %C_Red%^|
ECHO --------------------------------------%C_DEFAULT%
CALL :TWO_ECHO
ECHO ***********************
ECHO *** Main Menu ***
ECHO ***********************
ECHO 1. Appearance
ECHO 2. Context Menu
ECHO 3. System Optimization
ECHO 4. Windows Update Settings
ECHO 5. Download Center
ECHO U. Check Update
ECHO R. Report BUGS
ECHO X. Exit
ECHO [1;37m
CHOICE /C:12345URX /N /M "Enter your choice: "
ECHO %C_DEFAULT%
IF ERRORLEVEL 8 GOTO Exit
IF ERRORLEVEL 7 CALL EXPLORER "https:\\t.me\MagicXMod" & GOTO Main_Menu
IF ERRORLEVEL 6 GOTO Check_Update
IF ERRORLEVEL 5 GOTO Downloads
IF ERRORLEVEL 4 GOTO Windows_Update
IF ERRORLEVEL 3 GOTO System_Menu
IF ERRORLEVEL 2 GOTO Context_Menu
IF ERRORLEVEL 1 GOTO Appearance
@REM ::::::::::::::::::::::::::
@REM :: ::
@REM :: Appearance ::
@REM :: ::
@REM ::::::::::::::::::::::::::
:Appearance
CLS
COLOR 0E
SET Menu_Name=Appearance Menu
SET Menu_Address=Appearance
@REM Creating some variables for checking status
SET "arrow_icon_status=%APPLIED% Disable"
SET "arrow_icon_val=1"
SET "action_center_status=%APPLIED% Disable"
SET "action_center_val=1"
SET "old_battery_status=%APPLIED% Disable"
SET "old_battery_val=1"
SET "old_network_status=%APPLIED% Disable"
SET "old_network_val=1"
SET "old_vol_status=%APPLIED% Disable"
SET "old_vol_val=1"
@REM Enable/Disable Arrow Icon In Shortcut
SET "REG_KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons"
SET "REG_DATA=29"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "%%systemroot%%\Blank.ico,0" (
SET "arrow_icon_status=%NOT_APPLIED% Enable"
SET "arrow_icon_val=0"
) ELSE (
SET "arrow_icon_status=%APPLIED% Disable"
)
@REM Enable/Disable Action Center
SET "REG_KEY=HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer"
SET "REG_DATA=DisableNotificationCenter"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x1" (
SET "action_center_status=%NOT_APPLIED% Enable"
SET "action_center_val=0"
) ELSE (
SET "action_center_status=%APPLIED% Disable"
)
@REM Enable/Disable Old Battery Flyout UI
SET "REG_KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell"
SET "REG_DATA=UseWin32BatteryFlyout"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x1" (
SET "old_battery_status=%APPLIED% Disable"
) ELSE (
SET "old_battery_status=%NOT_APPLIED% Enable"
SET "old_battery_val=0"
)
@REM Enable/Disable Old Network Flyout UI
SET "REG_KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network"
SET "REG_DATA=ReplaceVan"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x2" (
SET "old_network_status=%APPLIED% Disable"
) ELSE (
SET "old_network_status=%NOT_APPLIED% Enable"
SET "old_network_val=0"
)
@REM Enable/Disable Old Volume Control Flyout UI
SET "REG_KEY=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC"
SET "REG_DATA=EnableMtcUvc"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x0" (
SET "old_vol_status=%APPLIED% Disable"
) ELSE (
SET "old_vol_status=%NOT_APPLIED% Enable"
SET "old_vol_val=0"
)
CALL :Header
ECHO =============================
ECHO ^|^| Appearance Control Menu ^|^|
ECHO =============================
ECHO 1. %arrow_icon_status% Enable Arrow Icon In Shortcut
ECHO 2. %action_center_status% Enable Action Center
ECHO 3. %old_battery_status% Enable Old Battery Flyout UI
ECHO 4. %old_network_status% Enable Old Network Flyout UI
ECHO 5. %old_vol_status% Enable Old Volume Control Flyout UI
ECHO 6. %Bullet_Point1% Enable Taskbar
ECHO 7. %Bullet_Point1% Disable Taskbar (Hide)
ECHO.
ECHO %C_Cyan% H. Main Menu %C_DEFAULT%
ECHO [1;37m
CHOICE /C:1234567H /N /M "Enter your choice: "
ECHO %C_DEFAULT%
IF ERRORLEVEL 8 GOTO Main_Menu
IF ERRORLEVEL 7 GOTO ds_taskbar
IF ERRORLEVEL 6 GOTO en_taskbar
IF ERRORLEVEL 5 IF "%old_vol_val%" EQU "0" ( GOTO en_old_vol_ctrl ) ELSE ( GOTO ds_old_vol_ctrl )
IF ERRORLEVEL 4 IF "%old_network_val%" EQU "0" ( GOTO en_old_net ) ELSE ( GOTO ds_old_net )
IF ERRORLEVEL 3 IF "%old_battery_val%" EQU "0" ( GOTO en_old_battery ) ELSE ( GOTO ds_old_battery )
IF ERRORLEVEL 2 IF "%action_center_val%" EQU "0" ( GOTO en_act_cent ) ELSE ( GOTO ds_act_cent )
IF ERRORLEVEL 1 IF "%arrow_icon_val%" EQU "0" ( GOTO en_arw_shtct ) ELSE ( GOTO ds_arw_shtct )
:ds_arw_shtct
ECHO %C_DEFAULT% -^> Disabling Arrow Icon From Shortcut... %C_Green%
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /t REG_SZ /d "%%systemroot%%\Blank.ico,0" /f
CALL :RSTRT_WIN_EX
CAll :END_LINE
:en_arw_shtct
ECHO %C_DEFAULT% -^> Enabling Arrow Icon From Shortcut... %C_Green%
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f
CALL :RSTRT_WIN_EX
CAll :END_LINE
:en_act_cent
ECHO %C_DEFAULT% -^> Enabling Action Center... %C_Green%
REG DELETE "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /f
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /f
CALL :RSTRT_WIN_EX
CAll :END_LINE
:ds_act_cent
ECHO %C_DEFAULT% -^> Disabling Action Center... %C_Green%
REG ADD "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f
CALL :RSTRT_WIN_EX
CAll :END_LINE
:en_old_battery
ECHO %C_DEFAULT% -^> Enabling Old Battery Flyout UI... %C_Green%
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell" /v "UseWin32BatteryFlyout" /t REG_DWORD /d "1" /f
CAll :END_LINE
:ds_old_battery
ECHO %C_DEFAULT% -^> Disabling Old Battery Flyout UI... %C_Green%
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell" /v "UseWin32BatteryFlyout" /f
CAll :END_LINE
:en_old_net
SET "Lib_ID=1"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Enabling Old Network Flyout UI... %C_Green%
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn setowner -ownr "n:Administrators" >NUL 2>&1
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn ace -ace "n:Administrators;p:full" >NUL 2>&1
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" /v "ReplaceVan" /t REG_DWORD /d "2" /f
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn ace -ace "n:Administrators;p:read" >NUL 2>&1
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn setowner -ownr "n:nt service\trustedinstaller" >NUL 2>&1
CAll :END_LINE
:ds_old_net
SET "Lib_ID=1"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Disabling Old Network Flyout UI... %C_Green%
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn setowner -ownr "n:Administrators" >NUL 2>&1
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn ace -ace "n:Administrators;p:full" >NUL 2>&1
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" /v "ReplaceVan" /t REG_DWORD /d "0" /f
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn ace -ace "n:Administrators;p:read" >NUL 2>&1
SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network" -ot reg -actn setowner -ownr "n:nt service\trustedinstaller" >NUL 2>&1
CAll :END_LINE
:en_old_vol_ctrl
ECHO %C_DEFAULT% -^> Enabling Old Volume Control Flyout UI... %C_Green%
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" /v "EnableMtcUvc" /t REG_DWORD /d "0" /f
CAll :END_LINE
:ds_old_vol_ctrl
ECHO %C_DEFAULT% -^> Disabling Old Volume Control Flyout UI... %C_Green%
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" /v "EnableMtcUvc" /f
CAll :END_LINE
:en_taskbar
SET "Lib_ID=3"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Enabling Taskbar... %C_Green%
nircmd.exe win trans class Shell_TrayWnd 255
CAll :END_LINE
:ds_taskbar
SET "Lib_ID=3"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Disabling Taskbar... %C_Green%
nircmd.exe win trans class Shell_TrayWnd 256
CAll :END_LINE
@REM ::::::::::::::::::::::::::::::
@REM :: ::
@REM :: Context Menu ::
@REM :: ::
@REM ::::::::::::::::::::::::::::::
:Context_Menu
CLS
SET Menu_Name=Context Menu
SET Menu_Address=Context_Menu
COLOR 0E
CALL :Header
ECHO 1. Add Something To Context Menu
ECHO 2. Remove Something From Context Menu
ECHO %C_Cyan% H. Main Menu %C_DEFAULT%
ECHO [1;37m
CHOICE /C:12H /N /M "Enter your choice: "
ECHO %C_DEFAULT%
IF ERRORLEVEL 3 GOTO Main_Menu
IF ERRORLEVEL 2 GOTO CNTXT_REM
IF ERRORLEVEL 1 GOTO CNTXT_ADD
:CNTXT_ADD
CLS
SET "OPT_AMOUNT=17"
SET "INP_MSG= --> Select Options to Apply: "
SET "CNTXT_OPT1=Add Secure Delete"
SET "CNTXT_OPT2=Add Secure Clean to Recycle Bin"
SET "CNTXT_OPT3=Add Personalize Classic"
SET "CNTXT_OPT4=Add Quick Access to Explorer Navigation Pane"
SET "CNTXT_OPT5=Add Network to Explorer Navigation Pane"
SET "CNTXT_OPT6=Add Print"
SET "CNTXT_OPT7=Add BitLocker Options"
SET "CNTXT_OPT8=Add Scan With Windows Defender"
SET "CNTXT_OPT9=Add Pin to Quick Access"
SET "CNTXT_OPT10=Add Pin to Start"
SET "CNTXT_OPT11=Add Give Access"
SET "CNTXT_OPT12=Add Include in Library"
SET "CNTXT_OPT13=Add Open as Portable Devices"
SET "CNTXT_OPT14=Add Restore Previous Versions"
SET "CNTXT_OPT15=Add Burn Disc Image"
SET "CNTXT_OPT16=Add Cast to Device"
SET "CNTXT_OPT17=Add Share"
SET "OPT_ADRS1=add_sec_del"
SET "OPT_ADRS2=add_sec_cln_rec"
SET "OPT_ADRS3=add_personalize_classic"
SET "OPT_ADRS4=add_quik_acces_nav_pan"
SET "OPT_ADRS5=add_network_nav_pan"
SET "OPT_ADRS6=add_print"
SET "OPT_ADRS7=add_bit_locker"
SET "OPT_ADRS8=add_scan_defneder"
SET "OPT_ADRS9=add_pin_to_Quik"
SET "OPT_ADRS10=add_pin_to_strt"
SET "OPT_ADRS11=add_give_access"
SET "OPT_ADRS12=add_inc_lib"
SET "OPT_ADRS13=add_opn_as_port"
SET "OPT_ADRS14=add_rstr_prev_ver"
SET "OPT_ADRS15=add_brn_dsk_img"
SET "OPT_ADRS16=add_cast_dev"
SET "OPT_ADRS17=add_share"
CALL :Header
CAll :CNTXT_Menu_Fig
CALL :END_LINE
:add_print
ECHO %C_DEFAULT% -^> Adding Print... %C_Green%
REG DELETE "HKCR\SystemFileAssociations\image\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\batfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\cmdfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\docxfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\fonfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\htmlfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\inffile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\inifile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\JSEFile\Shell\Print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\otffile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\pfmfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\regfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\rtffile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\ttcfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\ttffile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\txtfile\shell\print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\VBEFile\Shell\Print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\VBSFile\Shell\Print" /v "ProgrammaticAccessOnly" /f
REG DELETE "HKCR\WSFFile\Shell\Print" /v "ProgrammaticAccessOnly" /f
EXIT /B
:add_bit_locker
ECHO %C_DEFAULT% -^> Adding BitLocker Options... %C_Green%
REG DELETE "HKCR\Drive\shell\change-passphrase" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\manage-bde" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\resume-bde" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\resume-bde-elev" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\encrypt-bde" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\encrypt-bde-elev" /v "LegacyDisable" /f
REG DELETE "HKCR\Drive\shell\unlock-bde" /v "LegacyDisable" /f
REG ADD "HKCR\Drive\shell\lock-bde" /v "AppliesTo" /t REG_SZ /d "System.Volume.BitLockerProtection:=1 OR System.Volume.BitLockerProtection:=3 OR System.Volume.BitLockerProtection:=5 NOT %SystemDrive%" /f
REG ADD "HKCR\Drive\shell\lock-bde" /ve /t REG_SZ /d "Lock Drive" /f
REG ADD "HKCR\Drive\shell\lock-bde" /v "HasLUAShield" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\lock-bde" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
REG ADD "HKCR\Drive\shell\lock-bde\command" /ve /t REG_EXPAND_SZ /d "wscript.exe lock-bde.vbs %%1" /f
REG ADD "HKCR\Drive\shell\suspend-bde" /ve /t REG_SZ /d "Suspend BitLocker protection" /f
REG ADD "HKCR\Drive\shell\suspend-bde" /v "AppliesTo" /t REG_SZ /d "(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#On" /f
REG ADD "HKCR\Drive\shell\suspend-bde" /v "HasLUAShield" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\suspend-bde" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
REG ADD "HKCR\Drive\shell\suspend-bde\command" /ve /t REG_EXPAND_SZ /d "wscript.exe suspend-bde.vbs %%1" /f
REG ADD "HKCR\Drive\shell\decrypt-bde" /ve /t REG_SZ /d "Turn off BitLocker" /f
REG ADD "HKCR\Drive\shell\decrypt-bde" /v "AppliesTo" /t REG_SZ /d "(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#On" /f
REG ADD "HKCR\Drive\shell\decrypt-bde" /v "HasLUAShield" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\decrypt-bde" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
REG ADD "HKCR\Drive\shell\decrypt-bde\command" /ve /t REG_EXPAND_SZ /d "wscript.exe decrypt-bde.vbs %%1" /f
EXIT /B
:add_scan_defneder
ECHO %C_DEFAULT% -^> Adding Scan With Windows Defender... %C_Green%
REG ADD "HKCR\*\shellex\ContextMenuHandlers\EPP" /ve /t REG_SZ /d "{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
REG ADD "HKCR\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}\InprocServer32" /ve /t REG_SZ /d "%SystemDrive%\Program Files\Windows Defender\shellext.dll" /f
REG ADD "HKCR\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Apartment" /f
REG ADD "HKCR\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}\Version" /ve /t REG_SZ /d "10.0.18362.1" /f
REG ADD "HKCR\Directory\shellex\ContextMenuHandlers\EPP" /ve /t REG_SZ /d "{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
REG ADD "HKCR\Drive\shellex\ContextMenuHandlers\EPP" /ve /t REG_SZ /d "{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
EXIT /B
:add_personalize_classic
ECHO %C_DEFAULT% -^> Adding Personalize Classic... %C_Green%
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize" /v "Icon" /t REG_SZ /d "themecpl.dll" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize" /v "MUIVerb" /t REG_SZ /d "Personalize (Classic)" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize" /v "Position" /t REG_SZ /d "Bottom" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize" /v "SubCommands" /t REG_SZ /d "" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\01 Theme Settings" /v "MUIVerb" /t REG_SZ /d "Theme Settings" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\01 Theme Settings" /v "ControlPanelName" /t REG_SZ /d "Microsoft.Personalization" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\01 Theme Settings" /v "Icon" /t REG_SZ /d "themecpl.dll" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\01 Theme Settings\command" /ve /t REG_SZ /d "explorer shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\02 Desktop Background" /v "Icon" /t REG_SZ /d "imageres.dll,-110" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\02 Desktop Background" /v "MUIVerb" /t REG_SZ /d "Desktop Background" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\02 Desktop Background" /v "CommandFlags" /t REG_DWORD /d "32" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\02 Desktop Background\command" /ve /t REG_SZ /d "explorer shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageWallpaper" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\03 Color and Appearance" /v "Icon" /t REG_SZ /d "themecpl.dll" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\03 Color and Appearance" /v "MUIVerb" /t REG_SZ /d "Color and Appearance" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\03 Color and Appearance\command" /ve /t REG_SZ /d "explorer shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageColorization" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\04 Sounds" /v "Icon" /t REG_SZ /d "SndVol.exe,-101" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\04 Sounds" /v "MUIVerb" /t REG_SZ /d "Sounds" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\04 Sounds\command" /ve /t REG_SZ /d "rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\05 Screen Saver Settings" /v "Icon" /t REG_SZ /d "PhotoScreensaver.scr" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\05 Screen Saver Settings" /v "MUIVerb" /t REG_SZ /d "Screen Saver Settings" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\05 Screen Saver Settings\command" /ve /t REG_SZ /d "rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\06 Desktop Icon Settings" /v "Icon" /t REG_SZ /d "desk.cpl" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\06 Desktop Icon Settings" /v "MUIVerb" /t REG_SZ /d "Desktop Icon Settings" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\06 Desktop Icon Settings" /v "CommandFlags" /t REG_DWORD /d "32" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\06 Desktop Icon Settings\command" /ve /t REG_SZ /d "rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\07 Mouse Pointers" /v "Icon" /t REG_SZ /d "main.cpl" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\07 Mouse Pointers" /v "MUIVerb" /t REG_SZ /d "Mouse Pointers" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\07 Mouse Pointers\command" /ve /t REG_SZ /d "rundll32.exe shell32.dll,Control_RunDLL main.cpl,,1" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\08 Notification Area Icons" /v "Icon" /t REG_SZ /d "taskbarcpl.dll,-1" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\08 Notification Area Icons" /v "MUIVerb" /t REG_SZ /d "Notification Area Icons" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\08 Notification Area Icons" /v "CommandFlags" /t REG_DWORD /d "32" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\08 Notification Area Icons\command" /ve /t REG_SZ /d "explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\09 System Icons" /v "Icon" /t REG_SZ /d "taskbarcpl.dll,-1" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\09 System Icons" /v "MUIVerb" /t REG_SZ /d "System Icons" /f
REG ADD "HKCR\DesktopBackground\Shell\ClassicPersonalize\shell\09 System Icons\command" /ve /t REG_SZ /d "explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} \SystemIcons,,0" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /ve /t REG_SZ /d "Personalization (classic)" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /v "InfoTip" /t REG_SZ /d "@%%SystemRoot%%\System32\themecpl.dll,-2#immutable1" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /v "System.ApplicationName" /t REG_SZ /d "Microsoft.Personalization" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /v "System.ControlPanel.Category" /t REG_DWORD /d "1" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /v "System.Software.TasksFileUrl" /t REG_SZ /d "Internal" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\themecpl.dll,-1" /f
REG ADD "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}\Shell\Open\command" /ve /t REG_SZ /d "explorer shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /ve /t REG_SZ /d "Personalization (classic)" /f
EXIT /B
:add_pin_to_Quik
ECHO %C_DEFAULT% -^> Adding Pin to Quick Access... %C_Green%
REG DELETE "HKCR\Folder\shell\pintohome" /f
REG ADD "HKCR\Folder\shell\pintohome" /v "AppliesTo" /t REG_SZ /d "System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True" /f
REG ADD "HKCR\Folder\shell\pintohome" /v "MUIVerb" /t REG_SZ /d "@shell32.dll,-51377" /f
REG ADD "HKCR\Folder\shell\pintohome\command" /v "DelegateExecute" /t REG_SZ /d "{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}" /f
REG DELETE "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /f
REG ADD "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /v "AppliesTo" /t REG_SZ /d "System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True" /f
REG ADD "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /v "MUIVerb" /t REG_SZ /d "@shell32.dll,-51377" /f
REG ADD "HKLM\SOFTWARE\Classes\Folder\shell\pintohome\command" /v "DelegateExecute" /t REG_SZ /d "{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}" /f
EXIT /B
:add_pin_to_strt
ECHO %C_DEFAULT% -^> Adding Pin to Start... %C_Green%
REG ADD "HKCR\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /ve /t REG_SZ /d "{470C0EBD-5D73-4d58-9CED-E91E22E23282}" /f
REG ADD "HKCR\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /ve /t REG_SZ /d "{470C0EBD-5D73-4d58-9CED-E91E22E23282}" /f
REG ADD "HKCR\Microsoft.Website\ShellEx\ContextMenuHandlers\PintoStartScreen" /ve /t REG_SZ /d "{470C0EBD-5D73-4d58-9CED-E91E22E23282}" /f
REG ADD "HKCR\mscfile\shellex\ContextMenuHandlers\PintoStartScreen" /ve /t REG_SZ /d "{470C0EBD-5D73-4d58-9CED-E91E22E23282}" /f
EXIT /B
:add_give_access
ECHO %C_DEFAULT% -^> Adding Give Access... %C_Green%
REG ADD "HKCR\*\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f >NUL 2>&1
REG ADD "HKCR\Directory\Background\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\Directory\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\Directory\shellex\CopyHookHandlers\Sharing" /ve /t REG_SZ /d "{40dd6e20-7c17-11ce-a804-00aa003ca9f6}" /f
REG ADD "HKCR\Directory\shellex\PropertySheetHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\Drive\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\Drive\shellex\PropertySheetHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG ADD "HKCR\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInplaceSharing" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}" /f >NUL 2>&1
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "forceguest" /t REG_DWORD /d "0" /f
EXIT /B
:add_inc_lib
ECHO %C_DEFAULT% -^> Adding Include in Library... %C_Green%
REG ADD "HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location" /ve /t REG_SZ /d "{3dad6c5d-2167-4cae-9914-f99e41c12cfa}" /f
REG ADD "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\Library Location" /ve /t REG_SZ /d "{3dad6c5d-2167-4cae-9914-f99e41c12cfa}" /f
EXIT /B
:add_sec_del
SET "Lib_ID=2"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Adding Secure Delete... %C_Green%
REG ADD "HKCR\*\shell\Z007AAO" /ve /t REG_SZ /d "Secure Delete" /f
REG ADD "HKCR\*\shell\Z007AAO" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
REG ADD "HKCR\*\shell\Z007AAO" /v "Position" /t REG_SZ /d "bottom" /f
REG ADD "HKCR\*\shell\Z007AAO" /v "Icon" /t REG_SZ /d "imageres.dll,-5320" /f
REG ADD "HKCR\*\shell\Z007AAO\command" /ve /t REG_SZ /d "sdelete -p 3 \"%%1\"" /f
REG ADD "HKCR\Directory\shell\Z007AAO" /ve /t REG_SZ /d "Secure Delete" /f
REG ADD "HKCR\Directory\shell\Z007AAO" /v "AppliesTo" /t REG_SZ /d "NOT (System.ItemPathDisplay:=\"%SystemDrive%\Users\" OR System.ItemPathDisplay:=\"%SystemDrive%\ProgramData\" OR System.ItemPathDisplay:=\"%SystemDrive%\Windows\" OR System.ItemPathDisplay:=\"%SystemDrive%\Windows.old\" OR System.ItemPathDisplay:=\"%SystemDrive%\Windows\System32\" OR System.ItemPathDisplay:=\"%SystemDrive%\Program Files\" OR System.ItemPathDisplay:=\"%SystemDrive%\Program Files (x86)\")" /f
REG ADD "HKCR\Directory\shell\Z007AAO" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
REG ADD "HKCR\Directory\shell\Z007AAO" /v "Position" /t REG_SZ /d "bottom" /f
REG ADD "HKCR\Directory\shell\Z007AAO" /v "Icon" /t REG_SZ /d "imageres.dll,-5320" /f
REG ADD "HKCR\Directory\shell\Z007AAO\command" /ve /t REG_SZ /d "sdelete -p 3 -s \"%%1\"" /f
EXIT /B
:add_sec_cln_rec
SET "Lib_ID=2"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Adding Secure Clean to Recycle Bin... %C_Green%
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /ve /t REG_SZ /d "Secure Clean" /f
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /v "CommandStateHandler" /t REG_SZ /d "{c9298eef-69dd-4cdd-b153-bdbc38486781}" /f
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /v "Icon" /t REG_SZ /d "imageres.dll,-5305" /f
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /v "HasLUAShield" /t REG_SZ /d "" /f
REG ADD "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean\command" /ve /t REG_EXPAND_SZ /d "cmd /c \"for %%%%I in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST \"%%%%I:\$Recycle.Bin\" (sdelete.exe -p 3 -s \"%%%%I:\$Recycle.Bin\*\") ^&^& taskkill /im explorer.exe /f ^& start explorer.exe\"" /f
EXIT /B
:add_opn_as_port
ECHO %C_DEFAULT% -^> Adding Open as Portable Devices... %C_Green%
REG ADD "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}" /v "{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}" /t REG_SZ /d "Portable Devices Menu" /f
EXIT /B
:add_rstr_prev_ver
ECHO %C_DEFAULT% -^> Adding Restore Previous Versions... %C_Green%
REG ADD "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\AllFilesystemObjects\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\Directory\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG ADD "HKCR\Drive\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\PreviousVersions" /v "DisableLocalPage" /f >NUL 2>&1
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKCU\Software\Policies\Microsoft\PreviousVersions" /v "DisableLocalPage" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f >NUL 2>&1
EXIT /B
:add_brn_dsk_img
ECHO %C_DEFAULT% -^> Adding Burn Disc Image... %C_Green%
REG ADD "HKCR\Windows.IsoFile\shell\burn" /v "MUIVerb" /t REG_EXPAND_SZ /d "@%%SystemRoot%%\System32\isoburn.exe,-351" /f
REG ADD "HKCR\Windows.IsoFile\shell\burn\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\isoburn.exe \"%%1\"" /f
EXIT /B
:add_cast_dev
ECHO %C_DEFAULT% -^> Adding Cast to Device... %C_Green%
REG Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V {7AD84985-87B4-4a16-BE58-8B72A5B390F7} /F
CALL :RSTRT_WIN_EX
EXIT /B
:add_share
ECHO %C_DEFAULT% -^> Adding Share... %C_Green%
REG ADD "HKCR\*\shellex\ContextMenuHandlers\ModernSharing" /ve /t REG_SZ /d "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" /f
EXIT /B
:add_quik_acces_nav_pan
ECHO %C_DEFAULT% -^> Adding Quick Access to Explorer Navigation Pane... %C_Green%
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /f
EXIT /B
:add_network_nav_pan
SET "Lib_ID=1"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Adding Network to Explorer Navigation Pane... %C_Green%
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn setowner -ownr "n:Administrators" >NUL 2>&1
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn ace -ace "n:Administrators;p:full" >NUL 2>&1
REG ADD "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" /v "Attributes" /t REG_DWORD /d "2953052260" /f
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn ace -ace "n:Administrators;p:read" >NUL 2>&1
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn setowner -ownr "n:nt service\trustedinstaller" >NUL 2>&1
CALL :RSTRT_WIN_EX
EXIT /B
:CNTXT_REM
CLS
SET "OPT_AMOUNT=17"
SET "INP_MSG= --> Select Options to Apply: "
SET "CNTXT_OPT1=Remove Secure Delete"
SET "CNTXT_OPT2=Remove Secure Clean from Recycle Bin"
SET "CNTXT_OPT3=Remove Personalize Classic"
SET "CNTXT_OPT4=Remove Quick Access from Explorer Navigation Pane"
SET "CNTXT_OPT5=Remove Network from Explorer Navigation Pane"
SET "CNTXT_OPT6=Remove Print"
SET "CNTXT_OPT7=Remove BitLocker Options"
SET "CNTXT_OPT8=Remove Scan With Windows Defender"
SET "CNTXT_OPT9=Remove Pin to Quick Access"
SET "CNTXT_OPT10=Remove Pin to Start"
SET "CNTXT_OPT11=Remove Give Access"
SET "CNTXT_OPT12=Remove Include in Library"
SET "CNTXT_OPT13=Remove Open as Portable Devices"
SET "CNTXT_OPT14=Remove Restore Previous Versions"
SET "CNTXT_OPT15=Remove Burn Disc Image"
SET "CNTXT_OPT16=Remove Cast to Device"
SET "CNTXT_OPT17=Remove Share"
SET "OPT_ADRS1=rmv_sec_del"
SET "OPT_ADRS2=rmv_sec_cln_rec"
SET "OPT_ADRS3=rmv_personalize_classic"
SET "OPT_ADRS4=rmv_quik_acces_nav_pan"
SET "OPT_ADRS5=rmv_network_nav_pan"
SET "OPT_ADRS6=rmv_print"
SET "OPT_ADRS7=rmv_bit_locker"
SET "OPT_ADRS8=rmv_scan_defneder"
SET "OPT_ADRS9=rmv_pin_to_Quik"
SET "OPT_ADRS10=rmv_pin_to_Strt"
SET "OPT_ADRS11=rmv_give_access"
SET "OPT_ADRS12=rmv_inc_lib"
SET "OPT_ADRS13=rmv_opn_as_port"
SET "OPT_ADRS14=rmv_rstr_prev_ver"
SET "OPT_ADRS15=rmv_brn_dsk_img"
SET "OPT_ADRS16=rmv_cast_dev"
SET "OPT_ADRS17=rmv_share"
CALL :Header
CAll :CNTXT_Menu_Fig
CALL :END_LINE
:rmv_print
ECHO %C_DEFAULT% -^> Removing Print... %C_Green%
REG ADD "HKCR\SystemFileAssociations\image\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\batfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\cmdfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\docxfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\fonfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\htmlfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\inffile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\inifile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\JSEFile\Shell\Print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\otffile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\pfmfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\regfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\rtffile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\ttcfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\ttffile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\txtfile\shell\print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\VBEFile\Shell\Print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\VBSFile\Shell\Print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
REG ADD "HKCR\WSFFile\Shell\Print" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f
EXIT /B
:rmv_bit_locker
ECHO %C_DEFAULT% -^> Removing BitLocker Options... %C_Green%
REG DELETE "HKCR\Drive\shell\suspend-bde" /f
REG DELETE "HKCR\Drive\shell\decrypt-bde" /f
REG DELETE "HKCR\Drive\shell\lock-bde" /f
REG ADD "HKCR\Drive\shell\change-passphrase" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\manage-bde" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\resume-bde" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\resume-bde-elev" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\encrypt-bde" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\encrypt-bde-elev" /v "LegacyDisable" /t REG_SZ /d "" /f
REG ADD "HKCR\Drive\shell\unlock-bde" /v "LegacyDisable" /t REG_SZ /d "" /f
EXIT /B
:rmv_scan_defender
ECHO %C_DEFAULT% -^> Removing Scan With Windows Defender... %C_Green%
REG DELETE "HKCR\*\shellex\ContextMenuHandlers\EPP" /f
REG DELETE "HKCR\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
REG DELETE "HKCR\Directory\shellex\ContextMenuHandlers\EPP" /f
REG DELETE "HKCR\Drive\shellex\ContextMenuHandlers\EPP" /f
EXIT /B
:rmv_personalize_classic
ECHO %C_DEFAULT% -^> Removing Personalize Classic... %C_Green%
REG DELETE "HKCR\CLSID\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{580722ff-16a7-44c1-bf74-7e1acd00f4f9}" /f
REG DELETE "HKCR\DesktopBackground\Shell\ClassicPersonalize" /f
EXIT /B
:rmv_pin_to_Quik
ECHO %C_DEFAULT% -^> Removing Pin to Quick Access... %C_Green%
REG DELETE "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /f
REG DELETE "HKCR\Folder\shell\pintohome" /f >NUL 2>&1
EXIT /B
:rmv_pin_to_Strt
ECHO %C_DEFAULT% -^> Removing Pin to Start... %C_Green%
REG DELETE "HKCR\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f
REG DELETE "HKCR\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f
REG DELETE "HKCR\Microsoft.Website\ShellEx\ContextMenuHandlers\PintoStartScreen" /f
REG DELETE "HKCR\mscfile\shellex\ContextMenuHandlers\PintoStartScreen" /f
EXIT /B
:rmv_give_access
ECHO %C_DEFAULT% -^> Removing Give Access... %C_Green%
REG DELETE "HKCR\*\shellex\ContextMenuHandlers\Sharing" /f
REG DELETE "HKCR\Directory\Background\shellex\ContextMenuHandlers\Sharing" /f
REG DELETE "HKCR\Directory\shellex\ContextMenuHandlers\Sharing" /f
REG DELETE "HKCR\Directory\shellex\CopyHookHandlers\Sharing" /f
REG DELETE "HKCR\Directory\shellex\PropertySheetHandlers\Sharing" /f
REG DELETE "HKCR\Drive\shellex\ContextMenuHandlers\Sharing" /f
REG DELETE "HKCR\Drive\shellex\PropertySheetHandlers\Sharing" /f
REG DELETE "HKCR\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing" /f
REG DELETE "HKCR\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing" /f
EXIT /B
:rmv_inc_lib
ECHO %C_DEFAULT% -^> Removing Include in Library... %C_Green%
REG DELETE "HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location" /f
REG DELETE "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\Library Location" /f
EXIT /B
:rmv_sec_del
ECHO %C_DEFAULT% -^> Removing Secure Delete... %C_Green%
REG DELETE "HKCR\*\shell\Z007AAO" /f
REG DELETE "HKCR\Directory\shell\Z007AAO" /f
EXIT /B
:rmv_sec_cln_rec
ECHO %C_DEFAULT% -^> Removing Secure Clean from Recycle Bin... %C_Green%
REG DELETE "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureClean" /f
EXIT /B
:rmv_opn_as_port
ECHO %C_DEFAULT% -^> Removing Open as Portable Devices... %C_Green%
REG DELETE "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}" /f
EXIT /B
:rmv_rstr_prev_ver
ECHO %C_DEFAULT% -^> Removing Restore Previous Versions... %C_Green%
REG DELETE "HKCR\AllFilesystemObjects\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\Directory\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\Drive\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f
REG DELETE "HKCR\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f >NUL 2>&1
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\PreviousVersions" /v "DisableLocalPage" /f >NUL 2>&1
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "NoPreviousVersionsPage" /f >NUL 2>&1
REG DELETE "HKCU\Software\Policies\Microsoft\PreviousVersions" /v "DisableLocalPage" /f >NUL 2>&1
EXIT /B
:rmv_brn_dsk_img
ECHO %C_DEFAULT% -^> Removing Burn Disc Image... %C_Green%
REG DELETE "HKCR\Windows.IsoFile\shell\burn" /f
EXIT /B
:rmv_cast_dev
ECHO %C_DEFAULT% -^> Removing Cast to Device... %C_Green%
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V {7AD84985-87B4-4a16-BE58-8B72A5B390F7} /T REG_SZ /D "Play to Menu" /F
CALL :RSTRT_WIN_EX
EXIT /B
:rmv_share
ECHO %C_DEFAULT% -^> Removing Share... %C_Green%
REG DELETE "HKCR\*\shellex\ContextMenuHandlers\ModernSharing" /f
EXIT /B
:rmv_quik_acces_nav_pan
ECHO %C_DEFAULT% -^> Removing Quick Access from Explorer Navigation Pane... %C_Green%
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t REG_DWORD /d "1" /f
EXIT /B
:rmv_network_nav_pan
SET "Lib_ID=1"
CALL :Check_Lib
ECHO %C_DEFAULT% -^> Removing Network from Explorer Navigation Pane... %C_Green%
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn setowner -ownr "n:Administrators" >NUL 2>&1
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn ace -ace "n:Administrators;p:full" >NUL 2>&1
REG ADD "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" /v "Attributes" /t REG_DWORD /d "2954100836" /f
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn ace -ace "n:Administrators;p:read" >NUL 2>&1
SetACL.exe -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" -ot reg -actn setowner -ownr "n:nt service\trustedinstaller" >NUL 2>&1
CALL :RSTRT_WIN_EX
EXIT /B
@REM ::::::::::::::::::::::
@REM :: ::
@REM :: System ::
@REM :: ::
@REM ::::::::::::::::::::::
:System_Menu
CLS
COLOR 0E
SET Menu_Name=System Menu
SET Menu_Address=System_Menu
@REM Variables for Status Checking
SET "large_system_cache_status=%NOT_APPLIED% Enable"
SET "large_system_cache_val=0"
SET "hibernation_status=%NOT_APPLIED% Enable"
SET "hibernation_val=0"
SET "startup_delay_status=%APPLIED% Disable"
SET "startup_delay_val=1"
SET "being_search_status=%NOT_APPLIED% Enable"
SET "being_search_val=0"
SET "thumbnails_status=%APPLIED% Disable"
SET "thumbnails_val=1"
SET "large_icon_cache_4mb_status=%NOT_APPLIED%"
SET "large_icon_cache_8mb_status=%NOT_APPLIED%"
SET "large_icon_cache_500kb_status=%APPLIED%"
@REM Enable/Disable Large System Cache
SET "REG_KEY=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
SET "REG_DATA=LargeSystemCache"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x1" (
SET "large_system_cache_status=%APPLIED% Disable"
SET "large_system_cache_val=1"
)
@REM Enable/Disable Hibernation
IF EXIST "%SystemDrive%\hiberfil.sys" (
SET "hibernation_status=%APPLIED% Disable"
SET "hibernation_val=1"
)
@REM Enable/Disable Startup Delay
SET "REG_KEY=HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize"
SET "REG_DATA=StartupDelayInMSec"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x0" (
SET "startup_delay_status=%NOT_APPLIED% Enable"
SET "startup_delay_val=0"
)
@REM Enable/Disable Web/Being Search in Windows Search
SET "REG_KEY=HKCU\Software\Microsoft\Windows\CurrentVersion\Search"
SET "REG_DATA=BingSearchEnable"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x1" (
SET "being_search_status=%APPLIED% Disable"
SET "being_search_val=1"
)
@REM Enable/Disable Thumbnails
SET "REG_KEY=HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
SET "REG_DATA=DisableThumbnails"
SET "REG_VALUE="
CALL :Check_REG_Value
IF "%REG_VALUE%" EQU "0x1" (
SET "thumbnails_status=%NOT_APPLIED% Enable"
SET "thumbnails_val=0"
)
@REM Enable/Disable Large Icon Cache
SET "REG_KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
SET "REG_DATA=Max Cached Icons"
SET "REG_VALUE="
@REM Because of space in REG_DATA Token is different here...
REG QUERY "%REG_KEY%" /v "%REG_DATA%" >NUL 2>&1
IF %ERRORLEVEL% EQU 0 (
FOR /F "TOKENS=5" %%A IN ('REG QUERY "%REG_KEY%" /v "%REG_DATA%"') DO (SET "REG_VALUE=%%A")
)
IF "%REG_VALUE%" EQU "4096" (
SET "large_icon_cache_4mb_status=%APPLIED%"
SET "large_icon_cache_8mb_status=%NOT_APPLIED%"
SET "large_icon_cache_500kb_status=%NOT_APPLIED%"
)
IF "%REG_VALUE%" EQU "8192" (
SET "large_icon_cache_4mb_status=%NOT_APPLIED%"
SET "large_icon_cache_8mb_status=%APPLIED%"
SET "large_icon_cache_500kb_status=%NOT_APPLIED%"
)
CALL :Header
ECHO =========================
ECHO ^|^| System Control Menu ^|^|
ECHO =========================
ECHO 1. %large_system_cache_status% Large System Cache %C_Cyan%(Only for %C_Red%8GB+%C_Cyan% RAM Users)%C_DEFAULT%
ECHO 2. %hibernation_status% Hibernation %C_Cyan%(Recommended)%C_DEFAULT%
ECHO 3. %startup_delay_status% Startup Delay %C_Cyan%(Recommended for %C_Red%HDD%C_Cyan%)%C_DEFAULT%
ECHO 4. %being_search_status% Web/Being Search in Windows Search
ECHO 5. %thumbnails_status% Thumbnails
ECHO 6. %large_icon_cache_4mb_status% Enable Large Icon Cache %C_Cyan%(4MB)%C_DEFAULT%
ECHO 7. %large_icon_cache_8mb_status% Enable Large Icon Cache %C_Red%(8MB)%C_DEFAULT%
ECHO 8. %large_icon_cache_500kb_status% Disable Large Icon Cache %C_Cyan%(Default=%C_Green%500KB%C_Cyan%)%C_DEFAULT%
ECHO 9. %Bullet_Point1% HELP %C_Cyan%(Description of All Above Tweaks)%C_DEFAULT%
ECHO.
ECHO %C_Cyan% H. Main Menu %C_DEFAULT%
ECHO [1;37m
CHOICE /C:123456789H /N /M "Enter your choice: "
ECHO %C_DEFAULT%
IF ERRORLEVEL 10 GOTO Main_Menu
IF ERRORLEVEL 9 GOTO sys_help
IF ERRORLEVEL 8 GOTO ds_large_icn_cache
IF ERRORLEVEL 7 GOTO en_large_icn_cache_8mb
IF ERRORLEVEL 6 GOTO en_large_icn_cache_4mb
IF ERRORLEVEL 5 IF "%thumbnails_val%" EQU "0" ( GOTO en_thumb ) ELSE ( GOTO ds_thumb )
IF ERRORLEVEL 4 IF "%being_search_val%" EQU "0" ( GOTO en_web_search ) ELSE ( GOTO ds_web_search )
IF ERRORLEVEL 3 IF "%startup_delay_val%" EQU "0" ( GOTO en_strtup_delay ) ELSE ( GOTO ds_strtup_delay )
IF ERRORLEVEL 2 IF "%hibernation_val%" EQU "0" ( GOTO en_hibernate ) ELSE ( GOTO ds_hibernate )
IF ERRORLEVEL 1 IF "%large_system_cache_val%" EQU "0" ( GOTO en_large_sys_cache ) ELSE ( GOTO ds_large_sys_cache )
:en_large_sys_cache
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "1" /f
CAll :END_LINE_RSRT
:ds_large_sys_cache
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "0" /f
CAll :END_LINE_RSRT
:en_large_icn_cache_4mb
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "Max Cached Icons" /t REG_SZ /d "4096" /f
CAll :END_LINE_RSRT
:en_large_icn_cache_8mb
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "Max Cached Icons" /t REG_SZ /d "8192" /f
CAll :END_LINE_RSRT
:ds_large_icn_cache
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "Max Cached Icons" /f
CAll :END_LINE_RSRT
:en_hibernate
POWERCFG /H OFF
ECHO SUCCESS: Hibernation Enabled
CAll :END_LINE_RSRT
:ds_hibernate
POWERCFG /H ON
ECHO SUCCESS: Hibernation Disabled
CAll :END_LINE_RSRT
:en_strtup_delay
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /f
CALL :END_LINE_RSRT
:ds_strtup_delay
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d "0" /f
CALL :END_LINE_RSRT
:en_web_search
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnable" /t REG_DWORD /d "1" /f >NUL 2>&1
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnable" /t REG_DWORD /d "1" /f >NUL 2>&1
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaConsent" /f >NUL 2>&1
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaConsent" /f >NUL 2>&1
REG DELETE "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /f >NUL 2>&1
REG DELETE "HKLM\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /f
CALL :RSTRT_WIN_EX
CALL :END_LINE_RSRT
:ds_web_search
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnable" /t REG_DWORD /d "0" /f >NUL 2>&1
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnable" /t REG_DWORD /d "0" /f >NUL 2>&1
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaConsent" /t REG_DWORD /d "0" /f >NUL 2>&1
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaConsent" /t REG_DWORD /d "0" /f >NUL 2>&1
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f >NUL 2>&1
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f
CALL :RSTRT_WIN_EX
CALL :END_LINE_RSRT
:en_thumb
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisableThumbnails" /f >NUL 2>&1
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisableThumbnails" /f
CALL :END_LINE_RSRT
:ds_thumb
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisableThumbnails" /t REG_DWORD /d "1" /f >NUL 2>&1
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisableThumbnails" /t REG_DWORD /d "1" /f
CALL :END_LINE_RSRT
:sys_help
ECHO ^=^> %C_Red%Large System Cache%C_DEFAULT% Make system faster but uses more RAM.
ECHO Thats why use it only if you have 8GB or more RAM.
ECHO.
ECHO ^=^> %C_Red%Large Icon Cache%C_DEFAULT% Help system and system icons load faster.
ECHO Use the one works best for you.
ECHO.
ECHO ^=^> %C_Red%Hibernation%C_DEFAULT% uses 3GB~6GB of space(HDD/SSD) for fastboot/sleep mode.
ECHO However if you disable this option PC boot time will be incresed.
CALL :END_LINE
@REM ::::::::::::::::::::::::::