-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathWinClick.bat
More file actions
795 lines (686 loc) · 54.5 KB
/
Copy pathWinClick.bat
File metadata and controls
795 lines (686 loc) · 54.5 KB
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
@echo off
Color 0f
Mode 20,10
chcp 65001 >nul
echo "%~dp0\Work" | findstr /r "[()!]" >nul && echo Путь до .bat содержит недопустимые символы. && timeout /t 7 >nul && exit
SetLocal EnableDelayedExpansion
cd /d "%~dp0\Work"
reg query "HKU\S-1-5-19" >nul 2>&1 || (Helper /Elevate "%~f0" && exit || %ch% {red} Права не выданы.{\n#}&& pause>nul && exit)
set "TI=NSudoLG -U:T -P:E -ShowWindowMode:Hide -Wait cmd.exe /c"
Helper /HideConsole
call :WinVer
sc query wuauserv | find /i "RUNNING" >nul 2>&1 && (
net stop wuauserv >nul 2>&1
timeout /t 1 /nobreak >nul 2>&1
sc query wuauserv | find /i "RUNNING" >nul 2>&1 && %TI% net stop wuauserv
)
:loop
if "%~1" == "" (
start /b "" Helper /Overlay
chcp 866>nul
powershell -NoProfile -ExecutionPolicy Bypass -File "%Temp%\wc70tmp\GUI.ps1" -ShowReboot
chcp 65001 >nul
exit
)
set "arg=%~1"
if /i "%arg%"=="/RemoveUpdateFiles" call :RemoveOverlay & call :RemoveUpdateFiles
if /i "%arg%"=="/RemoveStoreCache" call :RemoveOverlay & call :RemoveStoreCache
if /i "%arg%"=="/RemoveExplorerCache" call :RemoveOverlay & call :RemoveExplorerCache
if /i "%arg%"=="/CleanWinSxS" call :RemoveOverlay & call :CleanWinSxS
if /i "%arg%"=="/RemoveJunkFolders" call :RemoveOverlay & call :RemoveJunkFolders
if /i "%arg%"=="/RemoveOldDrivers" call :RemoveOverlay & call :RemoveOldDrivers
if /i "%arg%"=="/RemoveShellBags" call :RemoveOverlay & call :RemoveShellBags
if /i "%arg%"=="/RemoveAppx" call :AppOverlay & call :RemoveAppx
if /i "%arg%"=="/RemoveOneDrive" call :AppOverlay & call :RemoveOneDrive
if /i "%arg%"=="/CleanStartMenu" call :AppOverlay & call :CleanStartMenu
if /i "%arg%"=="/RemoveRemoteAssistant" call :AppOverlay & call :RemoveRemoteAssistant
if /i "%arg%"=="/RemoveEdge" call :EdgeOverlay & call :RemoveEdge
if /i "%arg%"=="/RemoveEdgeWebView" call :WebViewOverlay & call :RemoveEdgeWebView
if /i "%arg%"=="/RemoveDefender" call :DefenderOverlay & call :RemoveDefender
if /i "%arg%"=="/RemoveComponents" call :ComponentsOverlay & call :RemoveComponents
if /i "%arg%"=="/DisableTasks" call :TasksOverlay & call :DisableTasks
if /i "%arg%"=="/DisableHibernate" call :OptimizationOverlay & call :DisableHibernate
if /i "%arg%"=="/DisableReservedStorage" call :OptimizationOverlay & call :DisableReservedStorage
if /i "%arg%"=="/DisableRestorePoints" call :OptimizationOverlay & call :DisableRestorePoints
if /i "%arg%"=="/DelayedServices" call :OptimizationOverlay & call :DelayedServices
if /i "%arg%"=="/SystemLog" call :OptimizationOverlay & call :SystemLog
if /i "%arg%"=="/BoostIconCache" call :OptimizationOverlay & call :BoostIconCache
if /i "%arg%"=="/SvcSplit" call :OptimizationOverlay & call :SvcSplit
if /i "%arg%"=="/FastFolders" call :OptimizationOverlay & call :FastFolders
if /i "%arg%"=="/DisableVBS" call :OptimizationOverlay & call :DisableVBS
if /i "%arg%"=="/DisableGameDVR" call :OptimizationOverlay & call :DisableGameDVR
if /i "%arg%"=="/UltimatePerformance" call :OptimizationOverlay & call :UltimatePerformance
if /i "%arg%"=="/DisableResume" call :OptimizationOverlay & call :DisableResume
if /i "%arg%"=="/DisableWUDrivers" call :UpdateOverlay & call :DisableWUDrivers
if /i "%arg%"=="/DisableDefenderUpdates" call :UpdateOverlay & call :DisableDefenderUpdates
if /i "%arg%"=="/PauseUpdates" call :UpdateOverlay & call :PauseUpdates
if /i "%arg%"=="/DisableAutoUpdates" call :UpdateOverlay & call :DisableAutoUpdates
if /i "%arg%"=="/DisableUAC" call :TweaksOverlay & call :DisableUAC
if /i "%arg%"=="/EnableAdmin" call :TweaksOverlay & call :EnableAdmin
if /i "%arg%"=="/UnlockRegion" call :TweaksOverlay & call :UnlockRegion
if /i "%arg%"=="/KillFreezeApps" call :TweaksOverlay & call :KillFreezeApps
if /i "%arg%"=="/DisableRemote" call :TweaksOverlay & call :DisableRemote
if /i "%arg%"=="/DisableStickyKeys" call :TweaksOverlay & call :DisableStickyKeys
if /i "%arg%"=="/TTL" call :TweaksOverlay & call :TTL
if /i "%arg%"=="/DisableNotificationsAds" call :TweaksOverlay & call :DisableNotificationsAds
if /i "%arg%"=="/DNS" call :TweaksOverlay & call :DNS
if /i "%arg%"=="/InstallDrivers" call :DriversOverlay & call :InstallDrivers
if /i "%arg%"=="/InstallVC" call :VisualCOverlay & call :InstallVC
if /i "%arg%"=="/InstallDX" call :DirectXOverlay & call :InstallDX
if /i "%arg%"=="/RemoveHome" call :VisualOverlay & call :RemoveHome
if /i "%arg%"=="/RemoveGallery" call :VisualOverlay & call :RemoveGallery
if /i "%arg%"=="/RemoveNetwork" call :VisualOverlay & call :RemoveNetwork
if /i "%arg%"=="/DarkTheme" call :VisualOverlay & call :DarkTheme
if /i "%arg%"=="/SetWallpaper" call :VisualOverlay & call :SetWallpaper
if /i "%arg%"=="/BlueIcons" call :VisualOverlay & call :BlueIcons
if /i "%arg%"=="/Icaros" call :VisualOverlay & call :Icaros
if /i "%arg%"=="/TraySeconds" call :VisualOverlay & call :TraySeconds
if /i "%arg%"=="/TrayDate" call :VisualOverlay & call :TrayDate
if /i "%arg%"=="/TaskbarEndTask" call :VisualOverlay & call :TaskbarEndTask
if /i "%arg%"=="/RemoveTaskbarIcons" call :VisualOverlay & call :RemoveTaskbarIcons
if /i "%arg%"=="/HideRecommended" call :VisualOverlay & call :HideRecommended
if /i "%arg%"=="/StartSettingsIcon" call :VisualOverlay & call :StartSettingsIcon
if /i "%arg%"=="/WallpaperQuality" call :VisualOverlay & call :WallpaperQuality
if /i "%arg%"=="/RemoveLockScreen" call :VisualOverlay & call :RemoveLockScreen
if /i "%arg%"=="/NoIconShadow" call :VisualOverlay & call :NoIconShadow
if /i "%arg%"=="/ExplorerThisPC" call :VisualOverlay & call :ExplorerThisPC
if /i "%arg%"=="/ShowExtensions" call :VisualOverlay & call :ShowExtensions
if /i "%arg%"=="/CompressOS" call :CompressOverlay & call :CompressOS
if /i "%arg%"=="/CompressDrive" call :CompressDriveOverlay & call :CompressDrive
shift
goto :loop
:RemoveUpdateFiles
Rem Удаление файлов обновлений
del /q /f /s "%SystemRoot%\SoftwareDistribution\Download\*.*" >nul 2>&1
rd /q /s "%SystemRoot%\SoftwareDistribution\Download\" >nul 2>&1
del /q /f /s "%SystemRoot%\SoftwareDistribution\Download" >nul 2>&1
del /q /f /s "%ProgramFiles(x86)%\Microsoft\EdgeUpdate\Download\*.*" >nul 2>&1
rd /q /s "%ProgramFiles(x86)%\Microsoft\EdgeUpdate\Download\" >nul 2>&1
rd /q /s "%ProgramFiles(x86)%\Microsoft\EdgeUpdate\Download\" >nul 2>&1
exit /b
:RemoveStoreCache
Rem Удаление кэша Windows Store
del /q /f /s "%userprofile%\AppData\Local\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalCache\*.*" >nul 2>&1
rd /q /s "%userprofile%\AppData\Local\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalCache\" >nul 2>&1
exit /b
:RemoveExplorerCache
Rem Удаление кэша Проводника
pushd "%LocalAppData%\Microsoft\Windows\Explorer" >nul 2>&1
del /s /q /a:h "IconCache*" "thumbcache*" >nul 2>&1
del /s /q /f "IconCache*" "thumbcache*" >nul 2>&1
popd
pushd "%LocalAppData%" >nul 2>&1
if exist IconCache.db del /a /q IconCache.db >nul 2>&1
if exist IconCache.db-wal del /a /q IconCache.db-wal >nul 2>&1
del /s /q /a:h "IconCache*" "thumbcache*" >nul 2>&1
popd
exit /b
:CleanWinSxS
Rem Очистка WinSxS
Dism /online /Cleanup-Image /StartComponentCleanup /ResetBase >nul 2>&1
exit /b
:RemoveJunkFolders
Rem Удаление лишних папок на диске С
for %%F in ("%SystemDrive%\Windows.old" "%SystemDrive%\PerfLogs" "%SystemDrive%\inetpub") do %TI% rd /q /s %%F
exit /b
:RemoveOldDrivers
Rem Удаления старых драйверов
chcp 866 >nul
PowerShell -encodedCommand JABkAGkAcwBtAE8AdQB0ACAAPQAgAGQAaQBzAG0AIAAvAG8AbgBsAGkAbgBlACAALwBnAGUAdAAtAGQAcgBpAHYAZQByAHMADQAKACQATABpAG4AZQBzACAAPQAgACQAZABpAHMAbQBPAHUAdAAgAHwAIABzAGUAbABlAGMAdAAgAC0AUwBrAGkAcAAgADEAMAANAAoAJABPAHAAZQByAGEAdABpAG8AbgAgAD0AIAAiAHQAaABlAE4AYQBtAGUAIgANAAoAJABEAHIAaQB2AGUAcgBzACAAPQAgAEAAKAApAA0ACgBmAG8AcgBlAGEAYwBoACAAKAAgACQATABpAG4AZQAgAGkAbgAgACQATABpAG4AZQBzACAAKQAgAHsADQAKACAAIAAgACAAJAB0AG0AcAAgAD0AIAAkAEwAaQBuAGUADQAKACAAIAAgACAAJAB0AHgAdAAgAD0AIAAkACgAJAB0AG0AcAAuAFMAcABsAGkAdAAoACAAJwA6ACcAIAApACkAWwAxAF0ADQAKACAAIAAgACAAcwB3AGkAdABjAGgAIAAoACQATwBwAGUAcgBhAHQAaQBvAG4AKQAgAHsADQAKACAAIAAgACAAIAAgACAAIAAnAHQAaABlAE4AYQBtAGUAJwAgAHsAIAAkAE4AYQBtAGUAIAA9ACAAJAB0AHgAdAANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJABPAHAAZQByAGEAdABpAG8AbgAgAD0AIAAnAHQAaABlAEYAaQBsAGUATgBhAG0AZQAnAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABiAHIAZQBhAGsADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAAgACAAIAAgACcAdABoAGUARgBpAGwAZQBOAGEAbQBlACcAIAB7ACAAJABGAGkAbABlAE4AYQBtAGUAIAA9ACAAJAB0AHgAdAAuAFQAcgBpAG0AKAApAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACQATwBwAGUAcgBhAHQAaQBvAG4AIAA9ACAAJwB0AGgAZQBFAG4AdAByACcADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYgByAGUAYQBrAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAAgACAAIAAgACcAdABoAGUARQBuAHQAcgAnACAAewAgACQARQBuAHQAcgAgAD0AIAAkAHQAeAB0AC4AVAByAGkAbQAoACkADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACQATwBwAGUAcgBhAHQAaQBvAG4AIAA9ACAAJwB0AGgAZQBDAGwAYQBzAHMATgBhAG0AZQAnAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABiAHIAZQBhAGsADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAAgACAAIAAgACcAdABoAGUAQwBsAGEAcwBzAE4AYQBtAGUAJwAgAHsAIAAkAEMAbABhAHMAcwBOAGEAbQBlACAAPQAgACQAdAB4AHQALgBUAHIAaQBtACgAKQANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACQATwBwAGUAcgBhAHQAaQBvAG4AIAA9ACAAJwB0AGgAZQBWAGUAbgBkAG8AcgAnAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYgByAGUAYQBrAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAB9AA0ACgAgACAAIAAgACAAIAAgACAAJwB0AGgAZQBWAGUAbgBkAG8AcgAnACAAewAgACQAVgBlAG4AZABvAHIAIAA9ACAAJAB0AHgAdAAuAFQAcgBpAG0AKAApAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJABPAHAAZQByAGEAdABpAG8AbgAgAD0AIAAnAHQAaABlAEQAYQB0AGUAJwANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGIAcgBlAGEAawANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAAgACAAIAAgACcAdABoAGUARABhAHQAZQAnACAAewAgACAAJAB0AG0AcAAgAD0AIAAkAHQAeAB0AC4AcwBwAGwAaQB0ACgAIAAnAC4AJwAgACkADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACQAdAB4AHQAIAA9ACAAIgAkACgAJAB0AG0AcABbADIAXQApAC4AJAAoACQAdABtAHAAWwAxAF0AKQAuACQAKAAkAHQAbQBwAFsAMABdAC4AVAByAGkAbQAoACkAKQAiAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAEQAYQB0AGUAIAA9ACAAJAB0AHgAdAANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJABPAHAAZQByAGEAdABpAG8AbgAgAD0AIAAnAHQAaABlAFYAZQByAHMAaQBvAG4AJwANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYgByAGUAYQBrAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAH0ADQAKACAAIAAgACAAIAAgACAAIAAnAHQAaABlAFYAZQByAHMAaQBvAG4AJwAgAHsAIAAkAFYAZQByAHMAaQBvAG4AIAA9ACAAJAB0AHgAdAAuAFQAcgBpAG0AKAApAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAE8AcABlAHIAYQB0AGkAbwBuACAAPQAgACcAdABoAGUATgB1AGwAbAAnAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAHAAYQByAGEAbQBzACAAPQAgAFsAbwByAGQAZQByAGUAZABdAEAAewAgACcARgBpAGwAZQBOAGEAbQBlACcAIAA9ACAAJABGAGkAbABlAE4AYQBtAGUADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJwBWAGUAbgBkAG8AcgAnACAAPQAgACQAVgBlAG4AZABvAHIADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJwBEAGEAdABlACcAIAA9ACAAJABEAGEAdABlAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACcATgBhAG0AZQAnACAAPQAgACQATgBhAG0AZQANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAnAEMAbABhAHMAcwBOAGEAbQBlACcAIAA9ACAAJABDAGwAYQBzAHMATgBhAG0AZQANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAnAFYAZQByAHMAaQBvAG4AJwAgAD0AIAAkAFYAZQByAHMAaQBvAG4ADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJwBFAG4AdAByACcAIAA9ACAAJABFAG4AdAByAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJABvAGIAagAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAALQBUAHkAcABlAE4AYQBtAGUAIABQAFMATwBiAGoAZQBjAHQAIAAtAFAAcgBvAHAAZQByAHQAeQAgACQAcABhAHIAYQBtAHMADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACQARAByAGkAdgBlAHIAcwAgACsAPQAgACQAbwBiAGoADQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGIAcgBlAGEAawANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAB9AA0ACgAgACAAIAAgACAAIAAgACAAIAAnAHQAaABlAE4AdQBsAGwAJwAgAHsAIAAkAE8AcABlAHIAYQB0AGkAbwBuACAAPQAgACcAdABoAGUATgBhAG0AZQAnAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGIAcgBlAGEAawANAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQANAAoAIAAgACAAIAB9AA0ACgB9AA0ACgAkAGwAYQBzAHQAIAA9ACAAJwAnAA0ACgAkAE4AbwB0AFUAbgBpAHEAdQBlACAAPQAgAEAAKAApAA0ACgBmAG8AcgBlAGEAYwBoACAAKAAgACQARAByACAAaQBuACAAJAAoACQARAByAGkAdgBlAHIAcwAgAHwAIABzAG8AcgB0ACAARgBpAGwAZQBuAGEAbQBlACkAIAApACAAewANAAoAIAAgACAAIABpAGYAIAAoACQARAByAC4ARgBpAGwAZQBOAGEAbQBlACAALQBlAHEAIAAkAGwAYQBzAHQAIAAgACkAIAB7ACAAIAAkAE4AbwB0AFUAbgBpAHEAdQBlACAAKwA9ACAAJABEAHIAIAAgAH0ADQAKACAAIAAgACAAJABsAGEAcwB0ACAAPQAgACQARAByAC4ARgBpAGwAZQBOAGEAbQBlAA0ACgB9AA0ACgAkAE4AbwB0AFUAbgBpAHEAdQBlACAAfAAgAHMAbwByAHQAIABGAGkAbABlAE4AYQBtAGUAIAB8ACAAZgB0AA0ACgAjAFMAZQBhAHIAYwBoAGkAbgBnACAAZgBvAHIAIABkAHUAcABsAGkAYwBhAHQAZQAgAGQAcgBpAHYAZQByAHMAIAANAAoAJABsAGkAcwB0ACAAPQAgACQATgBvAHQAVQBuAGkAcQB1AGUAIAB8ACAAcwBlAGwAZQBjAHQAIAAtAEUAeABwAGEAbgBkAFAAcgBvAHAAZQByAHQAeQAgAEYAaQBsAGUATgBhAG0AZQAgAC0AVQBuAGkAcQB1AGUADQAKACQAVABvAEQAZQBsACAAPQAgAEAAKAApAA0ACgBmAG8AcgBlAGEAYwBoACAAKAAgACQARAByACAAaQBuACAAJABsAGkAcwB0ACAAKQAgAHsADQAKACAAIAAgACAAVwByAGkAdABlAC0ASABvAHMAdAAgACIARAB1AHAAbABpAGMAYQB0AGUAIABkAHIAaQB2AGUAcgAgAGYAbwB1AG4AZAAiACAALQBGAG8AcgBlAGcAcgBvAHUAbgBkAEMAbwBsAG8AcgAgAFkAZQBsAGwAbwB3AA0ACgAgACAAIAAgACQAcwBlAGwAIAA9ACAAJABEAHIAaQB2AGUAcgBzACAAfAAgAHcAaABlAHIAZQAgAHsAIAAkAF8ALgBGAGkAbABlAE4AYQBtAGUAIAAtAGUAcQAgACQARAByACAAfQAgAHwAIABzAG8AcgB0ACAAZABhAHQAZQAgAC0ARABlAHMAYwBlAG4AZABpAG4AZwAgAHwAIABzAGUAbABlAGMAdAAgAC0AUwBrAGkAcAAgADEADQAKACAAIAAgACAAJABzAGUAbAAgAHwAIABmAHQADQAKACAAIAAgACAAJABUAG8ARABlAGwAIAArAD0AIAAkAHMAZQBsAA0ACgB9AA0ACgAjAFcAcgBpAHQAZQAtAEgAbwBzAHQAIAAiAEwAaQBzAHQAIABvAGYAIABkAHIAaQB2AGUAcgAgAHYAZQByAHMAaQBvAG4AIAAgAHQAbwAgAHIAZQBtAG8AdgBlACIAIAAtAEYAbwByAGUAZwByAG8AdQBuAGQAQwBvAGwAbwByACAAUgBlAGQADQAKACQAVABvAEQAZQBsACAAfAAgAGYAdAANAAoAIwBEAGUAbABlAHQAaQBuAGcAIABvAGwAZAAgAGQAcgBpAHYAZQByAHMADQAKAGYAbwByAGUAYQBjAGgAIAAoACAAJABpAHQAZQBtACAAaQBuACAAJABUAG8ARABlAGwAIAApACAAewANAAoAIAAgACAAIAAkAE4AYQBtAGUAIAA9ACAAJAAoACQAaQB0AGUAbQAuAE4AYQBtAGUAKQAuAFQAcgBpAG0AKAApAA0ACgAgACAAIAAgAFcAcgBpAHQAZQAtAEgAbwBzAHQAIAAiAGQAZQBsAGUAdABpAG4AZwAgACQATgBhAG0AZQAiACAALQBGAG8AcgBlAGcAcgBvAHUAbgBkAEMAbwBsAG8AcgAgAFkAZQBsAGwAbwB3AA0ACgAgACAAIAAgAFcAcgBpAHQAZQAtAEgAbwBzAHQAIAAiAHAAbgBwAHUAdABpAGwALgBlAHgAZQAgAC8AZABlAGwAZQB0AGUALQBkAHIAaQB2AGUAcgAgACAAJABOAGEAbQBlACIAIAAtAEYAbwByAGUAZwByAG8AdQBuAGQAQwBvAGwAbwByACAAWQBlAGwAbABvAHcADQAKACAAIAAgACAASQBuAHYAbwBrAGUALQBFAHgAcAByAGUAcwBzAGkAbwBuACAALQBDAG8AbQBtAGEAbgBkACAAIgBwAG4AcAB1AHQAaQBsAC4AZQB4AGUAIAAvAGQAZQBsAGUAdABlAC0AZAByAGkAdgBlAHIAIAAkAE4AYQBtAGUAIgANAAoAfQA= >nul 2>&1
chcp 65001 >nul
exit /b
:RemoveShellBags
Rem Удаление ShellBags
for %%k in (Bags BagMRU BagsMRU) do (
reg delete "HKCU\Software\Microsoft\Windows\Shell\%%k" /f >nul 2>&1
reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\%%k" /f >nul 2>&1
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\%%k" /f >nul 2>&1
)
exit /b
:RemoveAppx
REM Удаление всех предустановленных UWP-приложений
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Get-AppxPackage | Where-Object { $_.NonRemovable -eq $false } | ForEach-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers -ErrorAction SilentlyContinue }" >nul 2>&1
exit /b
:RemoveOneDrive
Rem Удаление OneDrive
taskkill /f /im OneDrive.exe >nul 2>&1
%SystemRoot%\System32\OneDriveSetup.exe /uninstall >nul 2>&1
for %%P in ("%LocalAppData%\OneDrive" "%ProgramData%\Microsoft OneDrive" "%UserProfile%\OneDrive" "%LocalAppData%\Microsoft\OneDrive") do rd /s /q "%%P" >nul 2>&1
for /d %%i in ("%SystemRoot%\WinSxS\amd64_microsoft-windows-onedrive-setup*") do %TI% rd /s /q "%%i"
for %%F in ("OneDriveSetup.exe" "OneDrive.ico") do %TI% del /q "%SystemRoot%\System32\%%F"
if exist "%SystemRoot%\WinSxS\amd64_microsoft-windows-onedrive-setup*" for /d %%i in ("%SystemRoot%\WinSxS\amd64_microsoft-windows-onedrive-setup*") do %TI% rd /s /q "%%i"
reg delete "HKCU\Software\Microsoft\OneDrive" /f >nul 2>&1
reg delete "HKLM\Software\Microsoft\OneDrive" /f >nul 2>&1
exit /b
:CleanStartMenu
Rem Удаление лишних папок с приложениями в Пуске
rd "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessibility" /Q /S >nul 2>&1
rd "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Accessories\System Tools" /Q /S >nul 2>&1
exit /b
:RemoveRemoteAssistant
Rem Удаление Помощника по удаленному подключению
chcp 866 >nul
PowerShell "Start-Process mstsc.exe -ArgumentList '/uninstall' -WindowStyle Hidden -ErrorAction SilentlyContinue"
chcp 65001 >nul
timeout /t 5 /nobreak >nul 2>&1
taskkill /f /im mstsc.exe >nul 2>&1
exit /b
:RemoveEdge
Rem Удаление браузера Edge
%TI% taskkill /f /im MicrosoftEdge.exe >nul 2>&1
%TI% taskkill /f /im MicrosoftEdgeUpdate.exe >nul 2>&1
%TI% taskkill /f /im MicrosoftEdgeWebView.exe >nul 2>&1
start /wait "" "%~dp0\Work\setup.exe" --uninstall --system-level --force-uninstall --msedge >nul 2>&1
%TI% rd /s /q "%ProgramFiles(x86)%\Microsoft\Edge" & %TI% rd /s /q "%ProgramFiles(x86)%\Microsoft\EdgeCore" & %TI% rd /s /q "%ProgramFiles(x86)%\Microsoft\Temp"
exit /b
:RemoveEdgeWebView
Rem Удаление компонента Edge WebView2
%TI% taskkill /f /im MicrosoftEdge.exe >nul 2>&1
%TI% taskkill /f /im MicrosoftEdgeUpdate.exe >nul 2>&1
%TI% taskkill /f /im MicrosoftEdgeWebView.exe >nul 2>&1
start /wait "" "%~dp0\Work\setup.exe" --uninstall --system-level --force-uninstall --msedgewebview >nul 2>&1
%TI% rd /s /q "%ProgramFiles(x86)%\Microsoft\EdgeWebView" "%ProgramFiles(x86)%\Microsoft\EdgeCore"
exit /b
:RemoveDefender
Rem Удаление Защитника Windows
timeout /t 2 /nobreak >nul 2>&1
start /b "" Helper /Overlay
start /wait "" "%~dp0\Work\DK\DefenderKiller.bat" /DelWD
:check
reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Windows Defender/Operational" >nul 2>&1 && (
timeout /t 5 >nul
goto check
)
exit /b
:RemoveComponents
REM Удаление дополнительных компонентов
for %%C in (
Microsoft.Windows.Notepad.System
Microsoft.Windows.PowerShell.ISE
Print.Management.Console
VBSCRIPT
OpenSSH.Client
Hello.Face
MathRecognizer
InternetExplorer
StepsRecorder
Media.WindowsMediaPlayer
Microsoft.Wallpapers.Extended
) do (
for /f "tokens=2 delims=:" %%A in ('dism /Online /Get-Capabilities ^| findstr /I "%%C"') do (
set "cap=%%A"
set "cap=!cap:~1!"
dism /Online /Remove-Capability /CapabilityName:!cap! /NoRestart
)
) >nul 2>&1
exit /b
:DisableTasks
REM Отключение лишнего в Планировщике задач
chcp 866 >nul
for %%T in (
"\Microsoft\Windows\Active Directory Rights Management Services Client\AD RMS Rights Policy Template Management (Automated)" "\Microsoft\Windows\AppID\EDP Policy Manager" "\Microsoft\Windows\AppID\PolicyConverter"
"\Microsoft\Windows\Application Experience\MareBackup" "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser Exp"
"\Microsoft\Windows\Application Experience\PcaPatchDbTask" "\Microsoft\Windows\Application Experience\SdbinstMergeDbTask" "\Microsoft\Windows\Application Experience\StartupAppTask"
"\Microsoft\Windows\Application Experience\ProgramDataUpdater" "\Microsoft\Windows\Application Experience\ProgramInventoryUpdater" "\Microsoft\Windows\ApplicationData\appuriverifierdaily"
"\Microsoft\Windows\ApplicationData\appuriverifierinstall" "\Microsoft\Windows\ApplicationData\DsSvcCleanup" "\Microsoft\Windows\AppxDeploymentClient\Pre-staged app cleanup"
"\Microsoft\Windows\AppxDeploymentClient\UCPD velocity" "\Microsoft\Windows\Autochk\Proxy" "\Microsoft\Windows\AutoLogger\AutoLogger-Diagtrack-Listener" "\Microsoft\Windows\AutoLogger\AutoLogger-FileSizeTracking"
"\Microsoft\Windows\BrokerInfrastructure\BgTaskRegistrationMaintenanceTask" "\Microsoft\Windows\CEIP\Uploader" "\Microsoft\Windows\CertificateServicesClient\AikCertEnrollTask" "\Microsoft\Windows\CertificateServicesClient\CryptoPolicyTask"
"\Microsoft\Windows\CertificateServicesClient\KeyPreGenTask" "\Microsoft\Windows\CertificateServicesClient\SystemTask" "\Microsoft\Windows\Cleanup\UpdateCleanup" "\Microsoft\Windows\Clip\License Validation" "\Microsoft\Windows\Clip\LicenseImdsIntegration"
"\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" "\Microsoft\Windows\CloudExperienceHost\SyncHost" "\Microsoft\Windows\CloudRestore\Backup" "\Microsoft\Windows\CloudRestore\Restore" "\Microsoft\Windows\ContactSupport\Scheduled"
"\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
"\Microsoft\Windows\Customer Experience Improvement Program\BthSQM" "\Microsoft\Windows\Customer Experience Improvement Program\Uploader" "\Microsoft\Windows\Device Information\Device" "\Microsoft\Windows\Device Information\Device User"
"\Microsoft\Windows\Device Setup\Driver Recovery on Reboot" "\Microsoft\Windows\Device Setup\Metadata Refresh" "\Microsoft\Windows\DeviceDirectoryClient\HandleCommand" "\Microsoft\Windows\DeviceDirectoryClient\HandleWnsCommand"
"\Microsoft\Windows\DeviceDirectoryClient\IntegrityCheck" "\Microsoft\Windows\DeviceDirectoryClient\LocateCommandUserSession" "\Microsoft\Windows\DeviceDirectoryClient\RegisterDeviceAccountChange" "\Microsoft\Windows\DeviceDirectoryClient\RegisterDeviceLocationRightsChange"
"\Microsoft\Windows\DeviceDirectoryClient\RegisterDevicePeriodic24" "\Microsoft\Windows\DeviceDirectoryClient\RegisterDevicePolicyChange" "\Microsoft\Windows\DeviceDirectoryClient\RegisterDeviceProtectionStateChanged"
"\Microsoft\Windows\DeviceDirectoryClient\RegisterDeviceSettingChange" "\Microsoft\Windows\DeviceDirectoryClient\RegisterUserDevice" "\Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" "\Microsoft\Windows\Diagnosis\Scheduled"
"\Microsoft\Windows\Diagnosis\UnexpectedCodepath" "\Microsoft\Windows\DiskCleanup\SilentCleanup" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver"
"\Microsoft\Windows\DiskDiagnostic\DiagnosticResolver" "\Microsoft\Windows\DiskDiagnostic\DiskDiagnostic" "\Microsoft\Windows\DiskFootprint\Diagnostics" "\Microsoft\Windows\DiskFootprint\StorageSense" "\Microsoft\Windows\DUSM\dusmtask" "\Microsoft\Windows\ErrorReporting\QueueReporting"
"\Microsoft\Windows\ErrorReporting\KernelCeipTask" "\Microsoft\Windows\ExploitGuard\ExploitGuard MDM policy Refresh" "\Microsoft\Windows\Feedback\Siuf\DmClient" "\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" "\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioUpload"
"\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioRun" "\Microsoft\Windows\Feedback\Siuf\DmClientOnUserSignIn" "\Microsoft\Windows\File Classification Infrastructure\Property Definition Sync" "\Microsoft\Windows\FileHistory\File History (maintenance mode)"
"\Microsoft\Windows\Help\OEMSupport" "\Microsoft\Windows\Help\WindowsHelpUpdateTask" "\Microsoft\Windows\HelloFace\FODCleanupTask" "\Microsoft\Windows\HelloFace\FeatureCleanup" "\Microsoft\Windows\input\InputSettingsRestoreDataAvailable"
"\Microsoft\Windows\input\LocalUserSyncDataAvailable" "\Microsoft\Windows\input\MouseSyncDataAvailable" "\Microsoft\Windows\input\PenSyncDataAvailable" "\Microsoft\Windows\input\RemoteMouseSyncDataAvailable" "\Microsoft\Windows\input\RemotePenSyncDataAvailable"
"\Microsoft\Windows\input\RemoteTouchpadSyncDataAvailable" "\Microsoft\Windows\input\TouchpadSyncDataAvailable" "\Microsoft\Windows\InstallService\WakeUpAndContinueUpdates" "\Microsoft\Windows\InstallService\WakeUpAndScanForUpdates"
"\Microsoft\Windows\International\Synchronize Language Settings" "\Microsoft\Windows\LanguageComponentsInstaller\Installation" "\Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" "\Microsoft\Windows\LanguageComponentsInstaller\Uninstallation"
"\Microsoft\Windows\License Manager\TempSignedLicenseExchange" "\Microsoft\Windows\Location\WindowsActionDialog" "\Microsoft\Windows\Maintenance\WinSAT" "\Microsoft\Windows\Maps\MapsToastTask"
"\Microsoft\Windows\Maps\MapsUpdateTask" "\Microsoft\Windows\MemoryDiagnostic\AutomaticOfflineMemoryDiagnostic" "\Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" "\Microsoft\Windows\NlaSvc\WiFiTask"
"\Microsoft\Windows\Offline Files\Background Synchronization" "\Microsoft\Windows\Offline Files\Logon Synchronization" "\Microsoft\Windows\PCRPF\PCR Prediction Framework Firmware Update Task" "\Microsoft\Windows\PerformanceTrace\WhesvcToast"
"\Microsoft\Windows\PI\Secure-Boot-Update" "\Microsoft\Windows\PI\Sqm-Tasks" "\Microsoft\Windows\Pluton\Pluton-Ksp-Provisioning" "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" "\Microsoft\Windows\Printing\EduPrintProv"
"\Microsoft\Windows\Printing\PrintJobCleanupTask" "\Microsoft\Windows\PushToInstall\LoginCheck" "\Microsoft\Windows\PushToInstall\Registration" "\Microsoft\Windows\Ras\MobilityManager" "\Microsoft\Windows\ReFsDedupSvc\Initialization"
"\Microsoft\Windows\Registry\RegIdleBackup" "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" "\Microsoft\Windows\RetailDemo\CleanupOfflineContent" "\Microsoft\Windows\Search\IndexerDiagnosticsTask"
"\Microsoft\Windows\Search\SearchIndexerMaintenance" "\Microsoft\Windows\Setup\SetupCleanupTask" "\Microsoft\Windows\SharedPC\Account Cleanup" "\Microsoft\Windows\Shell\FamilySafetyMonitor" "\Microsoft\Windows\Shell\FamilySafetyRefreshTask"
"\Microsoft\Windows\Shell\IndexerAutomaticMaintenance" "\Microsoft\Windows\Shell\ThemeAssetTask_SyncFODState" "\Microsoft\Windows\Shell\ThemesSyncedImageDownload" "\Microsoft\Windows\Shell\UndockedFlightingUpdate" "\Microsoft\Windows\Shell\UpdateUserPictureTask"
"\Microsoft\Windows\Storage Tiers Management\Storage Tiers Optimization" "\Microsoft\Windows\Subscription\EnableLicenseAcquisition" "\Microsoft\Windows\Subscription\LicenseAcquisition" "\Microsoft\Windows\Sysmain\WsSwapAssessmentTask" "\Microsoft\Windows\Sysmain\HybridDriveCacheRebalance"
"\Microsoft\Windows\Sysmain\HybridDriveCachePrepopulate" "\Microsoft\Windows\UPnP\UPnPHostConfig" "\Microsoft\Windows\UpdateOrchestrator\CleanupUpdateTask" "\Microsoft\Windows\User Profile Service\HiveUploadTask" "\Microsoft\Windows\WaaSMedic\PerformRemediation"
"\Microsoft\Windows\WaaSMedic\ScanForUpdates" "\Microsoft\Windows\WaaSMedic\WsusScan" "\Microsoft\Windows\Windows Error Reporting\QueueReporting" "\Microsoft\Windows\Windows Error Reporting\ReportQueue" "\Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange"
"\Microsoft\Windows\WindowsAI\Recall\InitialConfiguration" "\Microsoft\Windows\WindowsAI\Recall\PolicyConfiguration" "\Microsoft\Windows\WindowsAI\Settings\InitialConfiguration" "\Microsoft\Windows\WindowsAI\Copilot\CopilotDataCollectionTask"
"\Microsoft\Windows\WindowsAI\Insights\InsightsDataCollectionTask" "\Microsoft\Windows\WindowsUpdate\Refresh Group Policy Cache" "\Microsoft\Windows\WlanSvc\CDSSync" "\Microsoft\Windows\WOF\WIM-Hash-Management" "\Microsoft\Windows\WOF\WIM-Hash-Validation"
"\Microsoft\Windows\Workplace Join\Automatic-Device-Join" "\Microsoft\Windows\Workplace Join\Device-Sync" "\Microsoft\Windows\Workplace Join\Recovery-Check" "\Microsoft\Windows\UNP\RunCampaignManager" "\MicrosoftEdgeUpdateTaskMachineCore"
"\MicrosoftEdgeUpdateTaskMachineUA" "\Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" "\Microsoft\Windows\Windows Defender Cleanup" "\Microsoft\Windows\Windows Defender Scheduled Scan" "\Microsoft\Windows\Windows Defender Verification"
) do (
%TI% schtasks /Change /TN %%T /Disable >nul 2>&1
)
chcp 65001 >nul
exit /b
:DisableHibernate
Rem Отключение гибернации
powercfg -h off >nul 2>&1
reg add "HKLM\System\CurrentControlSet\Control\Power" /v "HibernateEnabledDefault" /t REG_DWORD /d 0x0 /f >nul 2>&1
exit /b
:DisableReservedStorage
Rem Отключение зарезервированного хранилища
Dism /Online /Set-ReservedStorageState /State:Disabled >nul 2>&1
exit /b
:DisableRestorePoints
Rem Отключение точек восстановления
vssadmin resize shadowstorage /on=c: /for=c: /maxsize=1%% >nul 2>&1
PowerShell -Command "Disable-ComputerRestore -Drive '%SystemDrive%\'" >nul 2>&1
vssadmin delete shadows /all /quiet >nul 2>&1
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "RPSessionInterval" /f >nul 2>&1
exit /b
:DelayedServices
Rem Отложенный запуск автоматических служб
for %%p in (EventSystem NlaSvc) do reg add "HKLM\System\CurrentControlSet\Services\%%p" /v "DelayedAutostart" /t reg_dword /d 1 /f >nul 2>&1
exit /b
:SystemLog
Rem Минимизация системных отчетов
"%~dp0\Work\Eventlog" >nul 2>&1
exit /b
:BoostIconCache
Rem Увеличить кэш иконок
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "MaxCachedIcons" /t REG_SZ /d 4096 /f >nul
exit /b
:SvcSplit
Rem Увеличение порога разделения SVC
chcp 866 >nul
PowerShell "$key = 'HKLM:\SYSTEM\CurrentControlSet\Control'; if (-not (Get-ItemProperty -Path $key -Name 'SvcHostSplitThresholdInKB' -ErrorAction SilentlyContinue)) { Write-Output ' Параметра SvcHostSplitThresholdInKB нет, отмена действий'; Pause; Exit } elseif (-not (Get-ItemProperty -Path $key -Name 'SvcHostSplitThresholdInKB_orig' -ErrorAction SilentlyContinue)) { Rename-ItemProperty -Path $key -Name 'SvcHostSplitThresholdInKB' -NewName 'SvcHostSplitThresholdInKB_orig'; $mem = (Get-CimInstance Win32_OperatingSystem).TotalVisibleMemorySize + 1024000; Set-ItemProperty -Path $key -Name 'SvcHostSplitThresholdInKB' -Value $mem -Type DWord }
chcp 65001 >nul
exit /b
:FastFolders
Rem Ускорить открытие папок
reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "FolderType" /t REG_SZ /d NotSpecified /f >nul 2>&1
for %%k in (Directory.Audio Directory.Image Directory.Video) do (for %%c in (Enqueue Play) do (reg add "HKCR\SystemFileAssociations\%%k\shell\%%c" /v "LegacyDisable" /t REG_SZ /d "" /f >nul)) >nul 2>&1
exit /b
:DisableVBS
Rem Отключить VBS
bcdedit /set hypervisorlaunchtype off >nul
for %%p in (
HypervisorEnforcedCodeIntegrity
LsaCfgFlags
RequirePlatformSecurityFeatures
ConfigureSystemGuardLaunch
ConfigureKernelShadowStacksLaunch
) do reg delete "HKLM\Software\Policies\Microsoft\Windows\DeviceGuard" /v "%%p" /f >nul 2>&1
for %%p in (
EnableVirtualizationBasedSecurity
HVCIMATRequired
) do reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceGuard" /v "%%p" /t reg_dword /d 0 /f >nul 2>&1
for %%p in (
WasEnabledBy
WasEnabledBySysprep
) do reg delete "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "%%p" /f >nul 2>&1
for %%p in (
Enabled
HVCIMATRequired
Locked
) do reg add "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "%%p" /t reg_dword /d 0 /f >nul 2>&1
for %%p in (
EnableVirtualizationBasedSecurity
RequirePlatformSecurityFeatures
Locked
) do reg add "HKLM\System\CurrentControlSet\Control\DeviceGuard" /v "%%p" /t reg_dword /d 0 /f >nul 2>&1
for %%p in (
Enabled
AuditModeEnabled
WasEnabledBy
) do reg add "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\KernelShadowStacks" /v "%%p" /t reg_dword /d 0 /f >nul 2>&1
exit /b
:DisableGameDVR
Rem Отключить GameDVR
reg add "HKCR\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f >nul
reg add "HKCR\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\Software\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR" /v "Value" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f >nul
exit /b
:UltimatePerformance
Rem Схема питания Максимальная производительность
%TI% reg add "HKLM\System\CurrentControlSet\Control\Power\User\PowerSchemes" /v ActivePowerScheme /t REG_SZ /d e9a42b02-d5df-448d-aa00-03f14749eb61 /f >nul
exit /b
:DisableResume
Rem Функция Возобновить
"%~dp0\Work\vivetool.exe" /disable /id:56517033 >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CrossDeviceResume\Configuration" /v "IsResumeAllowed" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CrossDeviceResume\Configuration" /v "IsOneDriveResumeAllowed" /t REG_DWORD /d 0 /f >nul
exit /b
:DisableWUDrivers
Rem Запрет на установку драйверов из ЦО
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d "1" /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d "1" /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d "2" /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ExcludeWUDriversInQualityUpdate" /t REG_DWORD /d "1" /f >nul
exit /b
:DisableDefenderUpdates
Rem Отключить обновления средств удаления вредоносных программ
reg add "HKLM\Software\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "1" /f >nul
exit /b
:PauseUpdates
Rem Пауза обновлений до 07.07.77
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesStartTime" /t REG_SZ /d 2024-09-13T00:00:00Z /f >nul
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesExpiryTime" /t REG_SZ /d 2077-07-07T00:00:00Z /f >nul
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesStartTime" /t REG_SZ /d 2024-09-13T00:00:00Z /f >nul
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesExpiryTime" /t REG_SZ /d 2077-07-07T00:00:00Z /f >nul
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesStartTime" /t REG_SZ /d 2024-09-13T00:00:00Z /f >nul
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesExpiryTime" /t REG_SZ /d 2077-07-07T00:00:00Z /f >nul
reg add "HKLM\Software\Microsoft\WindowsUpdate\UpdatePolicy\Settings" /v "PausedFeatureStatus" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\Software\Microsoft\WindowsUpdate\UpdatePolicy\Settings" /v "PausedQualityStatus" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\Software\Microsoft\WindowsUpdate\UpdatePolicy\Settings" /v "PausedQualityDate" /t REG_SZ /d "2077-07-07 13:00:00" /f >nul
reg add "HKLM\Software\Microsoft\WindowsUpdate\UpdatePolicy\Settings" /v "PausedFeatureDate" /t REG_SZ /d "2077-07-07 13:00:00" /f >nul
exit /b
:DisableAutoUpdates
Rem Запрет автоматических обновлений
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f >nul
exit /b
:DisableUAC
Rem Отключение UAC
for %%a in (EnableLUA PromptOnSecureDesktop EnableVirtualization ConsentPromptBehaviorAdmin) do reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "%%a" /t REG_DWORD /d 0 /f >nul
for %%b in (batfile cmdfile exefile cplfile mscfile) do reg add "HKLM\Software\Classes\%%b\shell\runas" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f >nul
reg add "HKLM\Software\Classes\exefile\shell\runas2" /v "ProgrammaticAccessOnly" /t REG_SZ /d "" /f >nul
exit /b
:EnableAdmin
Rem Административная учетная запись
net user "%UserName%" /active:yes >nul
exit /b
:UnlockRegion
Rem Снятие региональных ограничений
sc start TrustedInstaller >nul
%TI% ren "%SystemRoot%\System32\IntegratedServicesRegionPolicySet.json" IntegratedServicesRegionPolicySet.json_bak
%TI% copy "%~dp0\Work\IntegratedServicesRegionPolicySet.json" "%SystemRoot%\System32"
exit /b
:KillFreezeApps
Rem Принудительное завершение программ при выключении
reg add "HKCR\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d 1 /f >nul
exit /b
:DisableRemote
Rem Отключение Удаленного помощника
reg add "HKLM\System\ControlSet001\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\System\ControlSet001\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\System\ControlSet001\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\System\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp" /v "UserAuthentication" /t REG_DWORD /d 0 /f >nul
exit /b
:DisableStickyKeys
Rem Отключение залипания клавиш
reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d 506 /f >nul
exit /b
:TTL
Rem Скрытие реального TTL
reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v DefaultTTL /t REG_DWORD /d 0x41 /f >nul
reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip6\Parameters" /v DefaultTTL /t REG_DWORD /d 0x41 /f >nul
exit /b
:DisableNotificationsAds
Rem Отключение уведомлений и рекомендаций
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /v "ScoobeSystemSettingEnabled" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v "ShowRecentList" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v "ShowFrequentList" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_IrisRecommendations" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_AccountNotifications" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_Layout" /t REG_DWORD /d 1 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowCloudFilesInQuickAccess" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecommendations" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f >nul
exit /b
:DNS
Rem Установка DNS на Wi-Fi адаптеры
set adapters=Ethernet "Беспроводная сеть" "Бездротова мережа" "Wireless network"
for %%a in (!adapters!) do (
netsh interface ipv4 set dns name=%%a static 1.1.1.1 >nul
netsh interface ip add dns name=%%a address=1.0.0.1 index=2 >nul
)
exit /b
:InstallDrivers
Rem Если есть папка Drivers на Рабочем столе
if exist "%USERPROFILE%\Desktop\Drivers" (
pnputil /add-driver "%USERPROFILE%\Desktop\Drivers\*.inf" /subdirs /install >nul 2>&1
timeout /t 3 /nobreak >nul 2>&1
) else (
Rem Если нет папки Driver на Рабочем столе
start /b "" Helper /Overlay "Папка с драйверами не обнаружена `n`n Пропускаю..." /Font "Bahnschrift" /Size "40"
timeout /t 3 /nobreak >nul 2>&1
)
exit /b
:InstallVC
Rem Установка Visual C++
start "" /wait "%~dp0\Work\VisualCppRedist_AIO_x86_x64.exe" /aiA /gm2
for %%R in (
vcredist08_x64 vcredist08_x86
vcredist09_x64 vcredist09_x86
vcredist10_x64 vcredist10_x86
vcredist11_x64 vcredist11_x86
vcredist12_x64 vcredist12_x86
vcredist14_x64 vcredist14_x86
) do (
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%%R" /f >nul 2>&1
)
exit /b
:InstallDX
Rem Установка DirecX 9-11
start "" /wait "%~dp0\Work\DirectX.exe"
exit /b
:RemoveHome
Rem Удаление Главная из Проводника
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t REG_DWORD /d 1 /f >nul
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Classes\Wow6432Node\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f >nul
exit /b
:RemoveGallery
Rem Удаление Галерея из Проводника
reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f >nul 2>&1
reg add "HKCU\Software\Classes\Wow6432Node\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v System.IsPinnedToNameSpaceTree /t REG_DWORD /d 0 /f >nul 2>&1
exit /b
:RemoveNetwork
Rem Удаление Сеть из Проводника
reg add "HKCU\Software\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f >nul 2>&1
exit /b
:DarkTheme
Rem Темная тема
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 0 /f >nul 2>&1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v SystemUsesLightTheme /t REG_DWORD /d 0 /f >nul 2>&1
exit /b
:SetWallpaper
Rem Установка обоев
copy "%~dp0\Work\1.jpg" "%SystemRoot%\Web\Wallpaper\Windows" >nul 2>&1
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "%SystemRoot%\Web\Wallpaper\Windows\1.jpg" /f >nul 2>&1
exit /b
:BlueIcons
Rem Установка синих папок
%TI% ren "%SystemRoot%\SystemResources\imageres.dll.mun" imageres.dll.mun_bak
%TI% copy "%~dp0\Work\BlueIcon\imageres.dll.mun" "%SystemRoot%\SystemResources"
for %%f in ("File Explorer.lnk" Проводник.lnk) do del /q "%AppData%\Microsoft\Windows\Start Menu\Programs\%%~f" "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\%%~f" >nul 2>&1
copy "%~dp0\Work\BlueIcon\File Explorer.lnk" "%AppData%\Microsoft\Windows\Start Menu\Programs" /y >nul
copy "%~dp0\Work\BlueIcon\File Explorer.lnk" "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" /y >nul
copy "%~dp0\Work\BlueIcon\Blank.ico" "%SystemRoot%" /y >nul
xcopy "%~dp0\Work\BlueIcon\windows" "%SystemRoot%" /E /I /Y /H /K /C /R /F >nul
xcopy "%~dp0\Work\BlueIcon\x64" "%ProgramFiles%" /E /I /Y /H /K /C /R /F >nul
xcopy "%~dp0\Work\BlueIcon\x86" "%ProgramFiles(x86)%" /E /I /Y /H /K /C /R /F >nul
xcopy "%~dp0\Work\BlueIcon\users" "%SystemDrive%\Users" /E /I /Y /H /K /C /R /F >nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "179" /t REG_EXPAND_SZ /d "%SystemRoot%\Blank.ico,0" /f >nul
reg add "HKCR\CompressedFolder\DefaultIcon" /v "" /t REG_EXPAND_SZ /d "%SystemRoot%\System32\imageres.dll,165" /f >nul
reg add "HKCR\ArchiveFolder\DefaultIcon" /v "" /t REG_EXPAND_SZ /d "%SystemRoot%\System32\imageres.dll,165" /f >nul
pushd "%ProgramFiles%"
for %%p in (x64.ico desktop.ini) do attrib +h %%p >nul 2>&1
popd
pushd "%ProgramFiles(x86)%"
for %%p in (x86.ico desktop.ini) do attrib +h %%p >nul 2>&1
popd
pushd "%SystemDrive%\Users"
for %%p in (users.ico desktop.ini) do attrib +h %%p >nul 2>&1
popd
pushd "%SystemRoot%"
for %%p in (windows.ico desktop.ini) do attrib +h %%p >nul 2>&1
popd
for %%f in ("%ProgramFiles(x86)%" "%ProgramFiles%" "%SystemDrive%\Users" "%SystemRoot%") do ATTRIB +R "%%~f" >nul 2>&1
exit /b
:Icaros
Rem Установка дополнительных эскизов через Icaros
if not exist "%ProgramFiles%\WinClean\Preview" mkdir "%ProgramFiles%\WinClean\Preview" >nul 2>&1
for %%F in (avcodec-ics-61.dll avformat-ics-61.dll avutil-ics-59.dll IcarosCache.dll IcarosPropertyHandler.dll IcarosThumbnailProvider.dll libunarr-ics.dll swscale-ics-8.dll) do (
copy "%~dp0\Work\Icaros\%%F" "%ProgramFiles%\WinClean\Preview" >nul 2>&1)
reg add "HKLM\SOFTWARE\Classes\CLSID\{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}" /ve /t REG_SZ /d "Icaros Thumbnail Provider" /f >nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}\InProcServer32" /ve /t REG_SZ /d "%ProgramFiles%\WinClean\Preview\IcarosThumbnailProvider.dll" /f >nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}\InProcServer32" /v "ThreadingModel" /t REG_SZ /d "Apartment" /f >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v "{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}" /t REG_SZ /d "Icaros Thumbnail Provider" /f >nul
reg add "HKCU\Software\Icaros" /v "Cache" /t REG_DWORD /d 2 /f >nul
reg add "HKCU\Software\Icaros" /v "FrameThresh" /t REG_DWORD /d 20 /f >nul
reg add "HKCU\Software\Icaros" /v "UseCoverArt" /t REG_DWORD /d 2 /f >nul
reg add "HKCU\Software\Icaros\Cache" /v "Location" /t REG_SZ /d "%ProgramFiles%\WinClean\Preview" /f >nul
reg add "HKCU\Software\Icaros\Cache\Locations" /v "%ProgramFiles%\WinClean\Preview" /t REG_DWORD /d 33554453 /f >nul
for %%E in (.3g2 .3gp .3gp2 .3gpp .ai .aiff .amv .ape .asf .avi .avif .bik .bmp .cb7 .cbr .cbz .cur .dds .divx .dpg .dv .dvr-ms .eps .epub .evo .exr .f4v .flac .flv .gif .hdmov .hdr .heic .heif .indd .jpg .k3g .m1v .m2t .m2ts .m2v .m4b .m4p .m4v .mk3d .mka .mkv .mov .mp2v .mp3 .mp4 .mp4v .mpc .mpe .mpeg .mpg .mpv2 .mpv4 .mqv .mts .mxf .nsv .odp .ods .odt .ofr .ofs .ogg .ogm .ogv .opus .png .psd .psxprj .px .qt .ram .rm .rmvb .skm .spx .swf .tak .tga .tif .tiff .tp .tpr .trp .ts .tta .vob .wav .webm .webp .wm .wmv .wv .xvid
) do (
reg add "HKLM\Software\Classes\%%E\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}" /ve /t REG_SZ /d "{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}" /f >nul
reg add "HKLM\Software\Classes\%%E\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}" /ve /t REG_SZ /d "{c5aec3ec-e812-4677-a9a7-4fee1f9aa000}" /f >nul
)
exit /b
:TraySeconds
Rem Установка секунд в трее
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f >nul
exit /b
:TrayDate
Rem Установка даты в трее
reg add "HKCU\Control Panel\International" /v sShortDate /t REG_SZ /d "ddd, dd.MM.yy" /f >nul 2>&1
exit /b
:TaskbarEndTask
Rem Установка Завершить задачу
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings" /v "TaskbarEndTask" /t REG_DWORD /d 1 /f >nul
exit /b
:RemoveTaskbarIcons
Rem Удаление лишних значков
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f >nul
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f >nul
exit /b
:HideRecommended
Rem Скрытие Рекомендуем
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /v "HideRecommendedSection" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Education" /v "IsEducationEnvironment" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideRecommendedSection" /t REG_DWORD /d 1 /f >nul
exit /b
:StartSettingsIcon
Rem Установка значка Настройки в Пуске
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v "VisiblePlaces" /t REG_BINARY /d 86087352AA5143429F7B2776584659D4 /f >nul
exit /b
:WallpaperQuality
Rem Удаления сжатия обоев
reg add "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d 0x64 /f >nul
exit /b
:RemoveLockScreen
Rem Удаление экрана блокировки
reg add "HKLM\Software\Policies\Microsoft\Windows\Personalization" /v NoLockScreen /t REG_DWORD /d 1 /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\Personalization" /v NoLockScreenCamera /t REG_DWORD /d 1 /f >nul
exit /b
:NoIconShadow
Rem Удаление тени на значках Рабочего стола
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /t REG_DWORD /d 0 /f >nul
exit /b
:ExplorerThisPC
Rem Открывать Проводник в Этот компьютер
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 0 /f >nul
exit /b
:ShowExtensions
Rem Показывать расширения файлов
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f >nul
exit /b
:CompressOS
REM Сжатие системы
set "NameSvcMask="
for /f "delims=" %%A in (' 2^>nul reg query HKLM\System\CurrentControlSet\Services /k /f WpnUserService_ ^| find "HKEY_"') do set "NameSvcMask=%%~nxA"
if defined NameSvcMask (
net stop %NameSvcMask%
del /q /f "%LocalAppData%\Microsoft\Windows\Notifications\*.db*"
timeout /t 1 /nobreak >nul 2>&1
net start %NameSvcMask%
) >nul 2>&1
compact /c /s:%SystemRoot%\ /exe:LZX /i /a /f >nul 2>&1
exit /b
:CompressDrive
REM Сжатие системы
set "NameSvcMask="
for /f "delims=" %%A in (' 2^>nul reg query HKLM\System\CurrentControlSet\Services /k /f WpnUserService_ ^| find "HKEY_"') do set "NameSvcMask=%%~nxA"
if defined NameSvcMask (
net stop %NameSvcMask%
del /q /f "%LocalAppData%\Microsoft\Windows\Notifications\*.db*"
timeout /t 1 /nobreak >nul 2>&1
net start %NameSvcMask%
) >nul 2>&1
compact /c /s:%SystemDrive%\ /exe:LZX /i /a /f >nul 2>&1
exit /b
:WinVer
for /f "skip=2 tokens=3" %%a in ('2^>nul reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v CurrentBuildNumber') do set /a build=%%a
if !build! LSS 22000 start /b "" Helper /Overlay "Утилита предназначена для Windows 11" /Font "Bahnschrift" /Size "40" && Helper /HideConsole && timeout /t 4 /nobreak >nul && start /b "" Helper /Overlay && exit
exit /b
:RemoveOverlay
start /b "" Helper /Overlay "Удаление мусора" /Font "Bahnschrift Bold" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:AppOverlay
start /b "" Helper /Overlay "Удаление предустановленных приложений" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:EdgeOverlay
start /b "" Helper /Overlay "Удаление браузера Edge" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:WebViewOverlay
start /b "" Helper /Overlay "Удаление компонента WebView2" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:DefenderOverlay
start /b "" Helper /Overlay "Удаление Защитника Windows" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:ComponentsOverlay
start /b "" Helper /Overlay "Удаление дополнительных компонентов" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:TasksOverlay
start /b "" Helper /Overlay "Отключение лишнего в Планировщике задач" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:OptimizationOverlay
start /b "" Helper /Overlay "Оптимизация параметров" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:UpdateOverlay
start /b "" Helper /Overlay "Настройка Центра обновления Windows" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:TweaksOverlay
start /b "" Helper /Overlay "Применение полезных твиков" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:DriversOverlay
start /b "" Helper /Overlay "Установка драйверов" /Font "Bahnschrift" /Size "40"
timeout /t 2 /nobreak >nul 2>&1
exit /b
:DirectXOverlay
start /b "" Helper /Overlay "Установка DirectX 9-11" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:VisualCOverlay
start /b "" Helper /Overlay "Установка Visual C++" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:VisualOverlay
start /b "" Helper /Overlay "Установка визуальных твиков" /Font "Bahnschrift" /Size "40"
timeout /t 1 /nobreak >nul 2>&1
exit /b
:CompressOverlay
start /b "" Helper /Overlay "Сжатие системных файлов" /Font "Bahnschrift" /Size "40"
exit /b
:CompressDriveOverlay
start /b "" Helper /Overlay "Сжатие системных и программных файлов" /Font "Bahnschrift" /Size "40"
exit /b