-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install.bat
1541 lines (1320 loc) · 52.8 KB
/
Install.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
rem CenterSelf
mode 67, 30
IF NOT EXIST %temp%\POST_TEMP\ (cd /D ./IndividualScripts/) else ( cd /D %temp%/POST_TEMP/)
set ps=powershell.exe -NoProfile -ExecutionPolicy Unrestricted -Command "
title AFTER_WINDOWS_INSTALL
mode 67, 30
:start
cls
echo ----------------------------------------------------------------
echo Choose Options
echo ----------------------------------------------------------------
echo.
echo [1]. Windows Activator
echo [2]. ChrisTitusTech's Programs Install Manager
echo [3]. Enable/Disable Windows AutoLogin
echo [4]. Download Debloater Scripts/Programs
echo [5]. Extras
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter your choice on your keyboard [1,2,3,4,5,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==5 goto misc
if %op%==4 goto download_debloaters
if %op%==3 goto wal
if %op%==2 goto ctt
if %op%==1 goto mass
goto start
::======================================================================================
::======================================================================================
:misc
cls
cls
echo ----------------------------------------------------------------
echo Choose Options [Extras Page(1)]
echo ----------------------------------------------------------------
echo.
echo [1]. Standalone Winget Install
echo [2]. Extract all Drivers
echo [3]. Remove/Restore Folders from "This PC"
echo [4]. Enable/Disable UAC Verification
echo [5]. Backup Firefox Settings
echo [6]. Create Shortcut for this script (Desktop)
echo [7]. Download This Script Locally
echo [8]. Next Page
echo [9]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,4,5,6,7,8,9,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==9 goto start
if %op%==8 goto misc2
if %op%==7 goto dw_script
if %op%==6 goto shortcutmaker
if %op%==5 goto ff
if %op%==4 goto uac_verification
if %op%==3 goto remove_restore_folders
if %op%==2 goto ext_driver
if %op%==1 goto wg
goto misc
::======================================================================================
::======================================================================================
:misc2
cls
cls
echo ----------------------------------------------------------------
echo Choose Options [Extras Page(2)]
echo ----------------------------------------------------------------
echo.
echo [1]. Install APKs
echo [8]. Next Page
echo [9]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,8,9,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==9 goto start
if %op%==8 goto misc2
if %op%==1 goto install_apks
goto misc2
::======================================================================================
::======================================================================================
:mass
cls
set ps=powershell.exe -NoProfile -ExecutionPolicy Unrestricted -Command "
title Activate Windows 10 (FROM INDIVIDUAL FOLDER)
%ps%irm https://raw.githubusercontent.com/8mpty/MAS/master/link.ps1 | iex"
goto start
::======================================================================================
::======================================================================================
:ctt
cls
:: Check if script is running in admin mode
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Please rerun the script as an administrator.
pause
goto start
)
set ps=powershell.exe -NoProfile -ExecutionPolicy Unrestricted -Command "
title ChrisTitusTech Programs Installer (FROM INDIVIDUAL FOLDER)
%ps%irm https://raw.githubusercontent.com/8mpty/winutil/main/winutil.ps1 | iex"
goto start
::======================================================================================
::======================================================================================
:wg
cls
echo ----------------------------------------------------------------
echo Download Options
echo ----------------------------------------------------------------
echo.
echo [1]. Download / Install Standalone Winget
echo [2]. Download / Install Choco
echo [3]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==3 goto misc
if %op%==2 goto choco
if %op%==1 goto winget
goto wg
:winget
cls
set ps=powershell.exe -NoProfile -ExecutionPolicy Unrestricted -Command "
title Standalone Winget Install (FROM INDIVIDUAL FOLDER)
echo PLEASE STAND BY....
%ps%Set-ExecutionPolicy Unrestricted -Scope CurrentUser"
ping 127.0.0.1 -n 2 -w 1000 > NUL
%ps%Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted"
ping 127.0.0.1 -n 2 -w 1000 > NUL
::echo Press Enter
%ps%Install-Script -Name winget-install -Force"
ping 127.0.0.1 -n 2 -w 1000 > NUL
%ps%winget-install.ps1"
ping 127.0.0.1 -n 2 -w 1000 > NUL
goto start
:choco
cls
TITLE DOWNLOADING / INSTALLING CHOCO
echo INSTALLING CHOCO IF NOT INSTALLED
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo DONE
ping 127.0.0.1 -n 3 -w 1000 > NUL
goto start
::======================================================================================
::======================================================================================
:wal
cls
echo ----------------------------------------------------------------
echo Windows AutoLogon
echo ----------------------------------------------------------------
:: Check if windows auto login is enabled or disabled
set "RegKey=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
set "RegVal=AutoAdminLogon"
for /f "tokens=3" %%i in ('reg query "%RegKey%" /v "%RegVal%" 2^>nul') do (
set "ValueData=%%i"
)
if defined ValueData (
if "%ValueData%"=="1" (
echo Status: Enabled
) else (
echo Status: Disabled
)
) else (
echo Status: Disabled
)
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo.
echo USING IS SCRIPT IS DANGEROUS, PLEASE USE CHRIS'S TITUS TECH OPTION INSTEAD, YOU HAVE BEEN WARNED
echo.
echo [1]. Enable Windows AutoLogon
echo [2]. Disable Windows AutoLogon
echo [3]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==3 goto start
if %op%==2 goto dis_wal
if %op%==1 goto en_wal
goto wal
:en_wal
cls
echo Enabling Windows AutoLogon
echo.
echo Please Input Parameters
echo [*LOGIN DETAILS WILL BE IN PLAIN TEXT IN THE REGISTRY*]
echo.
set /P wal_user=Enter Windows Username:
:: Credits https://correct-log.com/en/bat_input_mask_with_powershell/
set "pscmd=powershell.exe -Command " ^
$inputPass = read-host 'Enter Windows Password' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($inputPass); ^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
for /f "tokens=*" %%a in ('%pscmd%') do set wal_pass=%%a
ping 127.0.0.1 -n 2 -w 1000 > NUL
cls
echo Please Wait
echo.
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d %wal_user% /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d %wal_pass% /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
ping 127.0.0.1 -n 4 -w 1000 > NUL
echo DONE!
set op=%~1
if "%op%"=="" (
pause
) else (
echo Y | pause
)
goto wal_start
:dis_wal
cls
echo Disabling Windows AutoLogon
echo.
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f
echo.
ping 127.0.0.1 -n 4 -w 1000 > NUL
echo DONE!
goto wal
:ext_driver
cls
echo REMOVE "Drivers" FOLDER IF EXISTS
rmdir /S /Q %UserProfile%\Documents\Drivers
ping 127.0.0.1 -n 5 -w 1000 > NUL
cls
echo CREATING NEW FOLDER
mkdir %UserProfile%\Documents\Drivers
ping 127.0.0.1 -n 5 -w 1000 > NUL
cls
DISM.exe /Online /Export-Driver /Destination:%HOMEDRIVE%%HOMEPATH%\Documents\Drivers
echo PLEASE WAIT...
ping 127.0.0.1 -n 5 -w 1000 > NUL
echo.
echo EXTRACTED in %UserProfile%\Documents\Drivers
set op=%~1
if "%op%"=="" (
pause
) else (
echo Y | pause
)
goto start
::======================================================================================
::======================================================================================
:download_debloaters
cls
echo ----------------------------------------------------------------
echo Download Options
echo ----------------------------------------------------------------
echo.
echo [1]. Using CURL (default/builtin/slow sometimes)
echo [2]. Using WGET (newer/takes up more space/needs to download)
echo [3]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==3 goto start
if %op%==2 goto choco
if %op%==1 goto curl_in
goto download_debloaters
:choco
cls
TITLE USING WGET
echo INSTALLING CHOCO IF NOT INSTALLED
ping 127.0.0.1 -n 1 -w 1000 > NUL
echo.
WHERE choco > nul
IF %ERRORLEVEL% NEQ 0 (
echo Choco is NOT installed. Downloading.....
ping 127.0.0.1 -n 2 -w 1000 > NUL
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo DONE
ping 127.0.0.1 -n 2 -w 1000 > NUL
) ELSE IF %ERRORLEVEL% NEQ 1 (
echo Choco is installed. Skipping Downloading.....
ping 127.0.0.1 -n 2 -w 1000 > NUL
)
goto wget
:wget
cls
WHERE wget > nul
IF %ERRORLEVEL% NEQ 0 (
echo Wget is NOT installed. Downloading.....
choco install wget
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo DONE
ping 127.0.0.1 -n 2 -w 1000 > NUL
) ELSE IF %ERRORLEVEL% NEQ 1 (
echo Wget is installed. Skipping Downloading.....
ping 127.0.0.1 -n 2 -w 1000 > NUL
)
goto wget_in
:wget_in
cls
TITLE USING WGET
echo Downloading builtbybel/bloatbox
ping 127.0.0.1 -n 2 -w 1000 > NUL
mkdir %UserProfile%\Downloads\bloatbox
wget -O %UserProfile%\Downloads\builtbybel.zip https://github.com/builtbybel/bloatbox/releases/download/0.20.0/bloatbox.zip & TITLE USING WGET
echo Downloading Sycnex/Windows10Debloater
ping 127.0.0.1 -n 3 -w 1000 > NUL
mkdir %UserProfile%\Downloads\Windows10Debloater
wget -O %UserProfile%\Downloads\Sycnex.zip https://github.com/Sycnex/Windows10Debloater/archive/refs/heads/master.zip
TITLE USING WGET
ping 127.0.0.1 -n 3 -w 1000 > NUL
goto extract_download_files
:curl_in
cls
TITLE USING CURL
echo Downloading builtbybel/bloatbox
ping 127.0.0.1 -n 3 -w 1000 > NUL
mkdir %UserProfile%\Downloads\bloatbox
curl -L -o %UserProfile%\Downloads\builtbybel.zip https://github.com/builtbybel/bloatbox/releases/download/0.20.0/bloatbox.zip
echo Downloading Sycnex/Windows10Debloater
ping 127.0.0.1 -n 3 -w 1000 > NUL
mkdir %UserProfile%\Downloads\Windows10Debloater
curl -L -o %UserProfile%\Downloads\Sycnex.zip https://github.com/Sycnex/Windows10Debloater/archive/refs/heads/master.zip
ping 127.0.0.1 -n 3 -w 1000 > NUL
goto extract_download_files
:extract_download_files
cls
echo EXTRACTING....
WHERE tar > NUL
IF %ERRORLEVEL% NEQ 0 (
powershell -command "Expand-Archive -Force '%UserProfile%\Downloads\builtbybel.zip' '%UserProfile%\Downloads\bloatbox'
powershell -command "Expand-Archive -Force '%UserProfile%\Downloads\Sycnex.zip' '%UserProfile%\Downloads\Windows10Debloater'
) ELSE IF %ERRORLEVEL% NEQ 1 (
tar -xf %UserProfile%\Downloads\builtbybel.zip -C %UserProfile%\Downloads\bloatbox
tar -xf %UserProfile%\Downloads\Sycnex.zip -C %UserProfile%\Downloads\Windows10Debloater
)
ping 127.0.0.1 -n 3 -w 1000 > NUL
del /f %UserProfile%\Downloads\builtbybel.zip
del /f %UserProfile%\Downloads\Sycnex.zip
echo.
echo Downloaded files to %UserProfile%\Downloads
echo.
echo Please run these scripts yourselves at your own risk!!
set op=%~1
if "%op%"=="" (
pause
) else (
echo Y | pause
)
goto start
::======================================================================================
::======================================================================================
:remove_restore_folders
title Remove or Restore Folders
mode 67, 30
cls
echo ----------------------------------------------------------------
echo Choose Options
echo ----------------------------------------------------------------
echo.
echo [1]. Remove Folders
echo [2]. Restore Folders
echo [3]. Go Back
echo [0]. Exit
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,0]:
) else (
shift
)
if %op%==0 goto end
if %op%==3 goto misc
if %op%==2 goto RESTORE_FOLDERS
if %op%==1 goto Architecture
goto remove_restore_folders
::======================================================================================
::======================================================================================
:Architecture
title Architecture Type
cls
echo ----------------------------------------------------------------
echo Choose Type
echo ----------------------------------------------------------------
echo.
if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
echo Your Type is 64-Bit
) else (
echo Your Type is 32-Bit/x86
)
echo.
echo [1]. 64-bit Architecture
echo [2]. 32-bit/x86 Architecture
echo [0]. Go Back
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,0]:
) else (
shift
)
if %op%==0 goto remove_restore_folders
if %op%==2 goto 32bit
if %op%==1 goto 64bit
goto Architecture
::======================================================================================
::======================================================================================
:32bit
title 32-Bit
cls
echo ----------------------------------------------------------------
echo Choose Options
echo ----------------------------------------------------------------
echo.
echo [1]. Remove Desktop Folder
echo [2]. Remove Documents Folder
echo [3]. Remove Downloads Folder
echo [4]. Remove Music Folder
echo [5]. Remove Pictures Folder
echo [6]. Remove Videos Folder
echo [7]. Remove ALL Folders
echo [0]. Go Back
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,4,5,6,7,0]:
) else (
shift
)
if %op%==0 goto Architecture
if %op%==7 goto 32_ALL
if %op%==6 goto 32_Videos
if %op%==5 goto 32_Pictures
if %op%==4 goto 32_Music
if %op%==3 goto 32_Downloads
if %op%==2 goto 32_Documents
if %op%==1 goto 32_Desktop
goto 32bit
:32_ALL
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
set delay=2
cls
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo Removing All Folders
echo Please Wait....
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo.
echo Removing Desktop Folder
REG DELETE "%def%\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Documents Folder
REG DELETE "%def%\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "%def%\{d3162b92-9365-467a-956b-92703aca08af}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Downloads Folder
REG DELETE "%def%\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "%def%\{088e3905-0323-4b02-9826-5d99428e115f}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Music Folder
REG DELETE "%def%\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "%def%\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Pictures Folder
REG DELETE "%def%\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "%def%\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Videos Folder
REG DELETE "%def%\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "%def%\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo.
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Desktop
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Desktop Folder
REG DELETE "%def%\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Documents
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Documents Folder
REG DELETE "%def%\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "%def%\{d3162b92-9365-467a-956b-92703aca08af}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Downloads
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Downloads Folder
REG DELETE "%def%\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "%def%\{088e3905-0323-4b02-9826-5d99428e115f}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Music
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Music Folder
REG DELETE "%def%\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "%def%\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Pictures
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Pictures Folder
REG DELETE "%def%\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "%def%"\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Videos
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Removing Videos Folder
REG DELETE "%def%\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "%def%\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
::======================================================================================
::======================================================================================
:64bit
title 64-Bit
cls
echo ----------------------------------------------------------------
echo Choose Options
echo ----------------------------------------------------------------
echo.
echo [1]. Remove Desktop Folder
echo [2]. Remove Documents Folder
echo [3]. Remove Downloads Folder
echo [4]. Remove Music Folder
echo [5]. Remove Pictures Folder
echo [6]. Remove Videos Folder
echo [7]. Remove ALL Folders
echo [0]. Go Back
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,4,5,6,7,0]:
) else (
shift
)
if %op%==0 goto Architecture
if %op%==7 goto 64_ALL
if %op%==6 goto 64_Videos
if %op%==5 goto 64_Pictures
if %op%==4 goto 64_Music
if %op%==3 goto 64_Downloads
if %op%==2 goto 64_Documents
if %op%==1 goto 64_Desktop
goto 64bit
:64_ALL
cls
set delay=2
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo Removing All Folders
echo Please Wait....
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo.
echo Removing Desktop Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Documents Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Downloads Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Music Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Pictures Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Removing Videos Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo.
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Desktop
set delay=2
cls
echo Removing Desktop Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Documents
set delay=2
cls
echo Removing Documents Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Downloads
set delay=2
cls
echo Removing Downloads Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Music
set delay=2
cls
echo Removing Music Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Pictures
set delay=2
cls
echo Removing Pictures Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:64_Videos
set delay=2
cls
echo Removing Videos Folder
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
echo Remove Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
::======================================================================================
::======================================================================================
:RESTORE_FOLDERS
title Architecture Type
cls
echo ----------------------------------------------------------------
echo Choose Type
echo ----------------------------------------------------------------
echo.
if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
echo Your Type is 64-Bit
) else (
echo Your Type is 32-Bit/x86
)
echo.
echo [1]. 64-bit Architecture
echo [2]. 32-bit/x86 Architecture
echo [0]. Go Back
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,0]:
) else (
shift
)
if %op%==0 goto remove_restore_folders
if %op%==2 goto 32bit_RES
if %op%==1 goto 64bit_RES
goto RESTORE_FOLDERS
:32bit_RES
title 32-Bit
cls
echo ----------------------------------------------------------------
echo Choose Options
echo ----------------------------------------------------------------
echo.
echo [1]. Restore Desktop Folder
echo [2]. Restore Documents Folder
echo [3]. Restore Downloads Folder
echo [4]. Restore Music Folder
echo [5]. Restore Pictures Folder
echo [6]. Restore Videos Folder
echo [7]. Restore ALL Folders
echo [0]. Go Back
echo.
set op=%~1
if "%op%"=="" (
set /P op=Enter choice on your keyboard [1,2,3,4,5,6,7,0]:
) else (
shift
)
if %op%==0 goto RESTORE_FOLDERS
if %op%==7 goto 32_ALL_RES
if %op%==6 goto 32_Videos_RES
if %op%==5 goto 32_Pictures_RES
if %op%==4 goto 32_Music_RES
if %op%==3 goto 32_Downloads_RES
if %op%==2 goto 32_Documents_RES
if %op%==1 goto 32_Desktop_RES
goto 32bit_RES
::======================================================================================
::======================================================================================
:32_ALL_RES
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
set delay=2
cls
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo Restoring All Folders
echo Please Wait....
ping 127.0.0.1 -n 2 -w 1000 > NUL
echo.
echo Restoring Desktop Folder
REG ADD "%def%\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Restoring Documents Folder
REG ADD "%def%\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG ADD "%def%\{d3162b92-9365-467a-956b-92703aca08af}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Restoring Downloads Folder
REG ADD "%def%\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG ADD "%def%\{088e3905-0323-4b02-9826-5d99428e115f}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Restoring Music Folder
REG ADD "%def%\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG ADD "%def%\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Restoring Pictures Folder
REG ADD "%def%\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG ADD "%def%\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo Restoring Videos Folder
REG ADD "%def%\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG ADD "%def%\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
ping 127.0.0.1 -n %delay% -w 1000 > NUL
echo.
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Desktop_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Desktop Folder
REG ADD "%def%\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Documents_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Documents Folder
REG ADD "%def%\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
REG ADD "%def%\{d3162b92-9365-467a-956b-92703aca08af}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Downloads_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Downloads Folder
REG ADD "%def%\{374DE290-123F-4565-9164-39C4925E467B}" /f
REG ADD "%def%\{088e3905-0323-4b02-9826-5d99428e115f}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Music_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Music Folder
REG ADD "%def%\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
REG ADD "%def%\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Pictures_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Pictures Folder
REG ADD "%def%\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
REG ADD "%def%\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
:32_Videos_RES
set delay=2
set def=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
echo Restoring Videos Folder
REG ADD "%def%\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
REG ADD "%def%\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
echo Restoring Successfull!
ping 127.0.0.1 -n %delay% -w 1000 > NUL
goto start
::======================================================================================