-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows实用小工具.bat
2314 lines (2127 loc) · 91.7 KB
/
Windows实用小工具.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
::[Bat To Exe Converter]
::
::YAwzoRdxOk+EWAjk
::fBw5plQjdCiDJNx/KsXZzyddTwvMNWi1Zg==
::YAwzuBVtJxjWCl3EqQJgSA==
::ZR4luwNxJguZRRnk
::Yhs/ulQjdFa5
::cxAkpRVqdFKZSDk=
::cBs/ulQjdF25
::ZR41oxFsdFKZSTk=
::eBoioBt6dFKZSTk=
::cRo6pxp7LAbNWATEpSI=
::egkzugNsPRvcWATEpCI=
::dAsiuh18IRvcCxnZtBNQ
::cRYluBh/LU+EWAjk
::YxY4rhs+aU+IeA==
::cxY6rQJ7JhzQF1fEqQJiZksaHkrQbgs=
::ZQ05rAF9IBncCkqN+0xwdVsGAlTMbiXoVNU=
::ZQ05rAF9IAHYFVzEqQIHIRVQQxORuaVEgUHUbTgUaj1CJ6jKNA==
::eg0/rx1wNQPfEVWB+kM9LVsJDDOLMm+1EaaZJhZ8GyICcqKYgye6nVi7
::fBEirQZwNQPfEVWB+kM9LVsJDDOLMm+1EaaZJhZ8GyICcqKYgye6nVi7
::cRolqwZ3JBvQF1fEqQIHIRVQQxORuaVEgUHUbTgUaj1CJ6jKFOAmON2Lg+LZd7lFuBaE
::dhA7uBVwLU+EWDk=
::YQ03rBFzNR3SWATEphJpfkwDFVLQbws=
::dhAmsQZ3MwfNWATEphJpfkwDFVLQbws=
::ZQ0/vhVqMQ3MEVWAtB9weksNGlPVZT3oVdU=
::Zg8zqx1/OA3MEVWAtB9weksNGlPVZT3oVdU=
::dhA7pRFwIByZRRnk
::Zh4grVQjdCuDJN9FGMvN6idjRQqGM3ypg3vibxwzajpoJ5rY0QfoNorD39Q=
::YB416Ek+ZW8=
::
::
::978f952a14a936cc963da21a135fa983
::
@echo off
PROMPT Windows实用小工具$SVer$S2.0.22$BLICENSE$SAGPL-3.0$G
fltmc>nul||mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~dpnx0","%*",,"runas",1)(window.close)&&exit
::
:: _ooOoo_
:: o8888888o
:: 88" . "88
:: (| -_- |)
:: O\ = /O
:: ___/`---'\____
:: . ' \\| |// `.
:: / \\||| : |||// \
:: / _||||| -:- |||||- \
:: | | \\\ - /// | |
:: | \_| ''\---/'' | |
:: \ .-\__ `-` ___/-. /
:: ___`. .' /--.--\ `. . __
:: ."" '< `.___\_<|>_/___.' >'"".
:: | | : `- \`.;`\ _ /`;.`/ - ` : | |
:: \ \ `-. \_ __\ /__ _/ .-` / /
:: ======`-.____`-.___\_____/___.-`____.-'======
:: `=---='
:: .............................................
:: 佛曰:bug泛滥,我已瘫痪!
::
title Windows实用小工具 By Kevin Williams v2.0.2.22 本程序造成的一切后果由使用者承担,作者概不负责!Protected By AGPL-3.0 LICENSE!
color 07
cd /d "%~dp0"
for /f "tokens=1* delims=:" %%i in ('ipconfig^|find "IPv6"^|find /v "::"') do set ipv6=%%j
for /f "tokens=1* delims=: skip=1" %%i in ('ipconfig^|find "IPv6"^|find /v "::"') do set ipv6=%%j
::编码为ANSI!!!
mode con cols=200 lines=50
cls
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
IF EXIST "%Temp%\Windows实用小工具\" (echo .) ELSE (md %Temp%\Windows实用小工具\>nul)
IF EXIST "%Temp%\Windows实用小工具settings\" (echo .) ELSE (md %Temp%\Windows实用小工具settings\>nul)
IF EXIST "%CD%\EchoX.exe" (set down=0) ELSE (set down=1)
for /f %%a in (%Temp%\Windows实用小工具settings\deupage) do (if %%a==1 (goto memu) else (goto memu1))
IF "%down%" EQU "0" (cls) ELSE (goto pdown)
:memu
cls
@echo off
title Windows实用小工具 By 2096779623 v2.0.2.22 本程序造成的一切后果由使用者承担,作者概不负责!Protected By AGPL-3.0 LICENSE!
for /f "tokens=4*" %%A in ('ver') do set ver=%%A
IF "%ver%" GEQ "5.1.*]" (echo 检测到当前是XP系统,大部分功能不可用!)
IF "%ver%" GEQ "6.*]" (echo 检测到当前是Win7或Vista系统,部分功能不可用!)
IF "%ver%" GEQ "10.0.2*]" (echo 检测到当前是Win11系统,部分功能可能不兼容!)
for /f "tokens=3*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ReleaseId"') do set winversion=%%A
for /f "tokens=3*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"') do (echo 当前系统:%%A %%B 版本:%winversion% 架构:%PROCESSOR_ARCHITECTURE%)
echo 程序运行目录:%CD%
echo 当前时间及日期:%date:~0,4%年%date:~5,2%月%date:~8,2%日%time:~0,2%点%time:~3,2%分
ping -n 1 www.baidu.com>nul 2>nul&&echo 当前网络状态:已联网 && set network=1||echo 当前网络状态:未联网 && set network=0
echo 当前用户名/计算机名:%username% %COMPUTERNAME%
echo 输入"cleartool"即可清除下载的组件
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
echox -c 04 输入about查看关于界面
echox -c 04 输入next查看下一页
echox -c 04 输入setting进入设置页面
echo 输入exit退出
echo ========================================================================================================================================================================================================
echo 想执行什么操作执行对应的数字即可(输入exit退出) 本程序造成的任何后果作者概不负责!
echo 1.计算器 21.系统属性 41.在任务栏显示秒数(win10) 61.查看周边WIFI信息 81.更改Win+E弹出程序
echo 2.屏幕键盘 22.事件查看器 42.上帝模式 62.打开系统属性 82.更改密钥和版本号
echo 3.注册表 23.Internet选项 43.关闭Windows defender 63.取消定时关机 83.禁用U盘设备
echo 4.组策略 24.性能监视器 44.把当前用户添加到Administrators 64.获取当前桌面背景(win10) 84.恢复被禁用的U盘设备
echo 5.命令提示符(cmd) 25.资源监视器 45.连接ssh(默认22端口) 65.获取当前计算机名 85.创建一个服务
echo 6.powershell 26.磁盘清理 46.网络重置 66.查看当前CPU核心数量 86.删除一个服务
echo 7.显示Windows版本信息 27.画图 47.开热点 67.查看当前处理器架构 87.删除此电脑最上面的文件夹
echo 8.关闭UAC 28.启用或关闭Windows功能 48.修改IE浏览器的主页 68.蓝牙 88.恢复此电脑最上面的文件夹
echo 9.查看系统信息 29.服务 49.扫雷(win7) 69.设备管理器 89.去除快捷方式小箭头
echo 10.远程连接 30.滑动关机(win10) 50.星球大战(彩蛋) 70.设置默认程序 90.恢复快捷方式小箭头
echo 11.打开任务管理器 31.打开当前账户的文件夹 51.修改时间及日期 71.网络和共享中心 91.查看BIOS版本
echo 12.显示IP信息 32.结束进程 52.用messenger(Msg)发送消息 72.微信多开 92.修复linux子系统出现0x8007019e
echo 13.一键激活Windows(不一定有效) 33.定时关机 53.共享文件夹管理器 73.下载文件 93.合并.ts格式的视频
echo 14.蓝屏 34.用IE浏览器打开网页 54.创建一个账户 74.查看运行权限 94.禁止U盘自动运行(AutoRun)
echo 15.记事本 35.自定义弹窗 55.清理垃圾 75.打开当前用户文件夹 95.指定程序开机自启动
echo 16.放大镜 36.显示设置 56.查看电脑连接过的WIFI密码 76.获取超级详细的硬件信息 96.修改分辨率
echo 17.查看当前用户的用户名 37.打开设置(win10) 57.静默播放背景音乐 77.管理启动项 97.设置cmd默认为管理员权限运行
echo 18.关机 38.电源选项 58.结束播放背景音乐 78.自定义定时关机 98.关闭Windows防火墙
echo 19.远程关机 39.控制面板 59.打开启动文件夹 79.调节系统音量 99.打开电源计划"高性能"
echo 20.计算机管理 40.系统属性高级选项 60.连接已保存密码的WIFI 80.最高权限运行程序 100.打开快速启动(Hybrid Boot)
echo ========================================================================================================================================================================================================
set /p user_input=请输入你要执行的操作:
if %user_input% equ 1 start calc
if %user_input% equ 2 start osk
if %user_input% equ 3 start regedit
if %user_input% equ 4 start gpedit.msc
if %user_input% equ 5 start cmd
if %user_input% equ 6 start powershell
if %user_input% equ 7 start winver
if %user_input% equ 8 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /d 0 /t REG_DWORD /f && reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f
if %user_input% equ 9 start msinfo32
if %user_input% equ 10 start mstsc
if %user_input% equ 11 start taskmgr
if %user_input% equ 12 ipconfig /all
if %user_input% equ 13 slmgr /upk && slmgr /skms kms.03k.org && slmgr /ato || slmgr /upk && slmgr /skms kms.chinancce.com && slmgr /ato
if %user_input% equ 14 taskkill /f /fi "pid ne 1
if %user_input% equ 15 start notepad
if %user_input% equ 16 start Magnify.exe
if %user_input% equ 17 echo %username%
if %user_input% equ 18 shutdown -s -t 0
if %user_input% equ 19 shutdown -i
if %user_input% equ 20 compmgmt.msc
if %user_input% equ 21 control.exe system
if %user_input% equ 22 eventvwr.exe
if %user_input% equ 23 inetcpl.cpl
if %user_input% equ 24 perfmon.exe
if %user_input% equ 25 resmon.exe
if %user_input% equ 26 cleanmgr /sageset:99
if %user_input% equ 27 mspaint.exe
if %user_input% equ 28 OptionalFeatures.exe
if %user_input% equ 29 services.msc
if %user_input% equ 30 SlideToShutDown.exe
if %user_input% equ 31 start C:\Users\%username%
if %user_input% equ 32 goto jincheng
if %user_input% equ 33 goto dingshi
if %user_input% equ 34 goto wangye
if %user_input% equ 35 goto tanchuang
if %user_input% equ 36 desk.cpl
if %user_input% equ 37 start ms-settings:wheel
if %user_input% equ 38 powercfg.cpl
if %user_input% equ 39 control
if %user_input% equ 40 SystemPropertiesAdvanced
if %user_input% equ 41 goto miao
if %user_input% equ 42 md GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
if %user_input% equ 43 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
if %user_input% equ 44 goto addadministrators
if %user_input% equ 45 goto ssh
if %user_input% equ 46 goto wangluo
if %user_input% equ 47 goto redian
if %user_input% equ 48 goto zhuye
if %user_input% equ 49 start winmine.exe
if %user_input% equ 50 start telnet towel.blinkenlights.nl
if %user_input% equ 51 goto shijian
if %user_input% equ 52 goto msg
if %user_input% equ 53 fsmgmt.msc
if %user_input% equ 54 goto zhanghu
if %user_input% equ 55 goto qingli
if %user_input% equ 56 goto wifi
if %user_input% equ 57 goto music
if %user_input% equ 58 goto kmusic
if %user_input% equ 59 explorer.exe shell:Startup
if %user_input% equ 60 goto lianjie
if %user_input% equ 61 goto look
if %user_input% equ 62 control.exe /name Microsoft.System
if %user_input% equ 63 shutdown -a
if %user_input% equ 64 goto zhuomian
if %user_input% equ 65 echo 当前计算机名称为:%COMPUTERNAME%
if %user_input% equ 66 echo 当前处理器核心为:%NUMBER_OF_PROCESSORS%
if %user_input% equ 67 echo 当前处理器架构为:%PROCESSOR_ARCHITECTURE%
if %user_input% equ 68 start ms-settings:bluetooth
if %user_input% equ 69 devmgmt.msc
if %user_input% equ 70 ComputerDefaults.exe
if %user_input% equ 71 explorer.exe shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}
if %user_input% equ 72 goto duokai
if %user_input% equ 73 goto download
if %user_input% equ 74 whoami
if %user_input% equ 75 explorer.exe %HOMEDRIVE%\Users\%username%
if %user_input% equ 76 goto yingjian
if %user_input% equ 77 goto qidong
if %user_input% equ 78 goto gjnr
if %user_input% equ 79 goto yingliang
if %user_input% equ 80 goto M2
if %user_input% equ 81 goto wine
if %user_input% equ 82 goto my
if %user_input% equ 83 goto usb
if %user_input% equ 84 goto hfusb
if %user_input% equ 85 goto service
if %user_input% equ 86 goto rmservice
if %user_input% equ 87 goto rmwjj
if %user_input% equ 88 goto hfwjj
if %user_input% equ 89 goto link
if %user_input% equ 90 goto hflink
if %user_input% equ 91 goto showBIOS
if %user_input% equ 92 goto linux
if %user_input% equ 93 goto ts
if %user_input% equ 94 goto autorun
if %user_input% equ 95 goto bootrun
if %user_input% equ 96 goto jiancescreen
if %user_input% equ 97 goto UACcmd
if %user_input% equ 98 goto fhq
if %user_input% equ 99 powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
if %user_input% equ 100 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "HiberbootEnabled" /d 1 /t REG_DWORD /f
if %user_input% equ about goto about
if %user_input% equ setting goto settings
if %user_input% equ cleartool goto clean
if %user_input% equ next goto memu1
if %user_input% equ exit exit
set /p input=你还想进行其他操作吗?请输入y/n并选择:
cls
if %input%==y goto memu
if %input%==n exit
:memu1
cls
::获取用户SID
for /f "tokens=*" %%a in ('REG QUERY "HKEY_USERS" /s /v USERNAME ^| find /i "Volatile Environment"') do (
for /f "tokens=*" %%1 in ('REG QUERY "%%a" /v USERNAME ^| find /i "%username%"') do (
::echo %%1
SET "SID=%%a"
)
)
for /f "tokens=1-4,* delims=\" %%i in ('echo %SID%') do (
SET "SID=%%j"
)
::获取GUID
::bcdedit /enum|findstr resumeobject > GUID.txt && for /f "skip=1 tokens=2" %%A in (GUID.txt) do set GUID=%%A
::删除临时文件
del /f /s /q GUID.txt>nul
cls
title Windows实用小工具 By 2096779623 v2.0.2.22 本程序造成的一切后果由使用者承担,作者概不负责!Protected By AGPL-3.0 LICENSE!
::获取版本号
for /f "tokens=4*" %%A in ('ver') do set ver=%%A
IF "%ver%" GEQ "5.1.*]" (echo 检测到当前是XP系统,大部分功能不可用!)
IF "%ver%" GEQ "6.*]" (echo 检测到当前是Win7或Vista系统,部分功能不可用!)
IF "%ver%" GEQ "10.0.2*]" (echo 检测到当前是Win11系统,部分功能可能不兼容!)
for /f "tokens=3*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ReleaseId"') do set winversion=%%A
for /f "tokens=3*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"') do (set winsystem=%%A && echo 当前系统:%%A %%B 版本:%winversion% 架构:%PROCESSOR_ARCHITECTURE%)
echo 程序运行目录:%CD%
echo 当前时间及日期:%date:~0,4%年%date:~5,2%月%date:~8,2%日%time:~0,2%点%time:~3,2%分
::判断网络状态
ping -n 1 www.baidu.com>nul 2>nul&&echo 当前网络状态:已联网||echo 当前网络状态:未联网
echo 当前用户名:%username%
echo 输入"cleartool"即可清除下载的组件
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
echox -c 04 输入about查看关于界面
echox -c 04 输入next查看下一页
echox -c 04 输入setting进入设置页面
echo 输入exit退出
echo ========================================================================================================================================================================================================
echo 101.启用.NET 3.5 121.使用powershell开关热点 141.Win7强制开启Aero效果 161.安装telnet客户端 181.卸载edge浏览器(win10)
echo 102.禁止一联网就打开浏览器 122.修复键盘映射 142.修改系统默认编码 162.创建符号链接
echo 103.启用无GUI引导(开机隐藏winlogo) 123.修复QQ登录蓝屏 143.启用/禁用IPV6 163.启用/禁用RemoteRegistry
echo 104.关闭SmartScreen应用筛选器 124.清除IE收藏夹 144.允许/禁止访问某个磁盘 164.启用/禁用U盘写保护
echo 105.关机时快速强杀后台增加关机速度 125.禁用磁盘自检 145.显示清楚的登录背景(win10) 165.开启TRIM
echo 106.直接永久删除文件(不进入回收站) 126.重建图标缓存 146.修复KB4512941高CPU占用(win10) 166.打开/关闭自动更新(win10)
echo 107.去除UAC小盾牌图标 127.启用修复模式 147.启用/禁用Guest账户 167.修复"可选诊断数据"无法选择(win10)
echo 108.启用/禁用Administrator账户 128.解决Windows 开机logo模糊或者被拉伸的问题 148.winget专区(win8或10) 168.毛玻璃任务栏(win10)
echo 109.打开DHCP 129.管理员取得所有权 149.开机自启宽带连接 169.修改开机动画为Vista样式
echo 110.设置静态IP 130.获取所有杀毒软件名字以及路径 150.office启用所有宏 170.自定义系统属性信息
echo 111.刷新DNS缓存 131.删除windows资源管理器上方的百度网盘 151.修改计算机名 171.指定程序以管理员身份运行
echo 112.文件/文件夹选项 132.删除windows资源管理器上方的酷狗音乐 152.打开/关闭剪贴板历史记录(Win10) 172.修复网络图标变成英文(win10)
echo 113.修改按下电源按钮时"无操作" 133.打开/关闭临时IPV6地址 153.修改此电脑上方六个文件夹的位置 173.去除桌面右下角水印(win11)
echo 114.添加按住Ctrl,再按两次ScrollLock键蓝屏 134.预防autorun病毒(U盘) 154.启用/禁用SuperFetch/Sysmain(Win10)174.阻止IE强跳edge
echo 115.修复开始菜单无法打开 135.修复在文件夹选项中无法显示隐藏文件 155.虚拟机与hyper-V共存 175.查看文件哈希
echo 116.强制更新组策略 136.修复win10家庭版没有组策略 156.打开/关闭自动修复(win10) 176.开启防火墙ICMP
echo 117.添加一个桌面右键菜单 137.移除SkyDrivePro 157.禁用遥测和数据收集(win10) 177.网络疑难解答
echo 118.公司网络和互联网同时访问 138.启用/禁用休眠 158.修复预览体验计划 178.声音问题疑难解答
echo 119.给右键菜单添加图标 139.卸载OneDrive 159.启用/禁用网络发现(win7) 179.打开/关闭S模式(win10+)
echo 120.插入U盘自动打开Win资源管理器(Win10) 140.修改登录密码 160.启用或禁用系统的内核调试 180.启用/恢复旧版右键菜单(win11)
echo ========================================================================================================================================================================================================
set /p user_input=请输入你要执行的操作:
if %user_input% equ 101 goto .NET3.5
if %user_input% equ 102 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" /v "NoActiveProbe" /d 1 /t REG_DWORD /f
if %user_input% equ 103 bcdedit /set quietboot on
if %user_input% equ 104 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /d off /t REG_SZ /f
if %user_input% equ 105 reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f
if %user_input% equ 106 goto yjdelete
if %user_input% equ 107 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f && del "%userprofile%\AppData\Local\iconcache.db" /f /q && taskkill /im explorer.exe /f && start explorer.exe
if %user_input% equ 108 goto enaordisadmin
if %user_input% equ 109 goto DHCP
if %user_input% equ 110 goto setip
if %user_input% equ 111 ipconfig /flushdns
if %user_input% equ 112 goto fileorfolder
if %user_input% equ 113 powercfg -setacvalueindex scheme_current sub_buttons pbuttonaction 0 && powercfg -setactive scheme_current && echo 恢复方法:控制面板>电源选项>选择电源按钮的功能
if %user_input% equ 114 reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /v CrashOnCtrlScroll /t REG_DWORD /d 1 /f
if %user_input% equ 115 goto fixstartmenu
if %user_input% equ 116 gpupdate /force
if %user_input% equ 117 goto mdm
if %user_input% equ 118 goto clandie
if %user_input% equ 119 goto yjicon
if %user_input% equ 120 echo 恢复方法:设置>设备>自动播放>不执行操作 && reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\StorageOnArrival" /ve /t REG_SZ /d MSOpenFolder /f && reg add HKEY_USERS\%sid%\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\StorageOnArrival\ /ve /t REG_SZ /d MSOpenFolder /f
if %user_input% equ 121 powershell.exe -nop -W hidden set-executionpolicy remotesigned && powershell.exe -encodedCommand WwBXAGkAbgBkAG8AdwBzAC4AUwB5AHMAdABlAG0ALgBVAHMAZQByAFAAcgBvAGYAaQBsAGUALgBMAG8AYwBrAFMAYwByAGUAZQBuACwAVwBpAG4AZABvAHcAcwAuAFMAeQBzAHQAZQBtAC4AVQBzAGUAcgBQAHIAbwBmAGkAbABlACwAQwBvAG4AdABlAG4AdABUAHkAcABlAD0AVwBpAG4AZABvAHcAcwBSAHUAbgB0AGkAbQBlAF0AIAB8ACAATwB1AHQALQBOAHUAbABsAA0ACgBBAGQAZAAtAFQAeQBwAGUAIAAtAEEAcwBzAGUAbQBiAGwAeQBOAGEAbQBlACAAUwB5AHMAdABlAG0ALgBSAHUAbgB0AGkAbQBlAC4AVwBpAG4AZABvAHcAcwBSAHUAbgB0AGkAbQBlAA0ACgAkAGEAcwBUAGEA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AAIAAgACMAIABTAHQAYQByAHQAIABNAG8AYgBpAGwAZQAgAEgAbwB0AHMAcABvAHQADQAKACAAIAAgACAAQQB3AGEAaQB0ACAAKAAkAHQAZQB0AGgAZQByAGkAbgBnAE0AYQBuAGEAZwBlAHIALgBTAHQAYQByAHQAVABlAHQAaABlAHIAaQBuAGcAQQBzAHkAbgBjACgAKQApACAAKABbAFcAaQBuAGQAbwB3AHMALgBOAGUAdAB3AG8AcgBrAGkAbgBnAC4ATgBlAHQAdwBvAHIAawBPAHAAZQByAGEAdABvAHIAcwAuAE4AZQB0AHcAbwByAGsATwBwAGUAcgBhAHQAbwByAFQAZQB0AGgAZQByAGkAbgBnAE8AcABlAHIAYQB0AGkAbwBuAFIAZQBzAHUAbAB0AF0AKQANAAoAfQANAAoADQAKAA==
::开关热点的脚本来源于:https://stackoverflow.com/questions/45833873/enable-windows-10-built-in-hotspot-by-cmd-batch-powershell和https://www.52pojie.cn/forum.php?mod=viewthread&tid=1129624
if %user_input% equ 122 reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
if %user_input% equ 123 goto fixqq
if %user_input% equ 124 goto clearscj
if %user_input% equ 125 goto disablechkdsk
if %user_input% equ 126 goto cleanicon
if %user_input% equ 127 reagentc /enable
if %user_input% equ 128 bcdedit /set highestmode yes
if %user_input% equ 129 goto adminsyq
if %user_input% equ 130 WMIC /namespace:\\root\securitycenter2 path antivirusproduct GET displayName,productState, pathToSignedProductExe
if %user_input% equ 131 goto deletebaiduwp
if %user_input% equ 132 goto deletekugoumusic
if %user_input% equ 133 goto ocipv6
if %user_input% equ 134 goto deautorun
if %user_input% equ 135 goto fixycwj
if %user_input% equ 136 goto fixjtbzcl
if %user_input% equ 137 reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\SPFS.Contextmenu" /f && taskkill /im explorer.exe /f && start %SystemRoot%\explorer.exe
if %user_input% equ 138 goto sleep
if %user_input% equ 139 goto uninstallonedrive
if %user_input% equ 140 goto chagepasswd
if %user_input% equ 141 goto enawin7aero
if %user_input% equ 142 goto chbm
if %user_input% equ 143 goto disableipv6
if %user_input% equ 144 goto jzfwcp
if %user_input% equ 145 reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\ /v DisableAcrylicBackgroundOnLogon /t REG_DWORD /d 1 /f
if %user_input% equ 146 reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search\ /v BingSearchEnabled /t REG_DWORD /d 1 /f
if %user_input% equ 147 goto enaordisguest
if %user_input% equ 148 goto winget
if %user_input% equ 149 goto startadsl
if %user_input% equ 150 reg add HKEY_USERS\%SID%\SOFTWARE\Microsoft\Office\16.0\Word\Security\ /v VBAWarnings /t REG_DWORD /d 1 /f
if %user_input% equ 151 goto changecomputername
if %user_input% equ 152 goto openjtbhistory
if %user_input% equ 153 goto movefileordler
if %user_input% equ 154 goto eordsysmain
if %user_input% equ 155 goto vmandhyper
if %user_input% equ 156 goto disautofix
if %user_input% equ 157 goto disat
if %user_input% equ 158 goto fixwinins
if %user_input% equ 159 goto ena/diswlfx
if %user_input% equ 160 goto ena/disdebug
if %user_input% equ 161 dism /online /Enable-Feature /FeatureName:TelnetClient
if %user_input% equ 162 goto makelink
if %user_input% equ 163 goto ena/disRegistry
if %user_input% equ 164 goto ena/diswritep
if %user_input% equ 165 fsutil behavior set disabledeletenotify 0
if %user_input% equ 166 goto ena/disautoupdate
if %user_input% equ 167 reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection /v AllowTelemetry /f
if %user_input% equ 168 reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarAcrylicOpacity /t REG_DWORD /d 0 /f && taskkill /f /im explorer.exe && start explorer.exe
if %user_input% equ 169 echo 不能恢复!继续吗? && pause && bcdedit /set %GUID% bootux basic
if %user_input% equ 170 goto diysysinfo
if %user_input% equ 171 goto runasadmin1
if %user_input% equ 172 goto fixnetlang
if %user_input% equ 173 reg add "HKEY_CURRENT_USER\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /t REG_DWORD /d 0 /f
if %user_input% equ 174 reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Enable Browser Extensions" /t REG_SZ /d no /f
if %user_input% equ 175 goto hash
if %user_input% equ 176 netsh firewall set icmpsetting type=all mode=enable
if %user_input% equ 177 msdt.exe -skip TRUE -id NetworkDiagnosticsNetworkAdapter -ep NetworkDiagnosticsPNI'
if %user_input% equ 178 msdt.exe -id AudioPlaybackDiagnostic -skip true -ep SndVolTraymenu'
if %user_input% equ 179 goto smode
if %user_input% equ 180 goto win11yjcd
if %user_input% equ 181 goto unedge
if %user_input% equ about goto about
if %user_input% equ cleartool goto clean
if %user_input% equ back goto memu
if %user_input% equ setting goto settings
if %user_input% equ exit exit
set /p input=你还想进行其他操作吗?请输入y/n并选择:
cls
if %input%==y goto memu1
if %input%==n exit
::下面是功能区
:downloadechox
@echo off
cls
echo 正在下载必要的显示工具,请关闭杀毒软件再执行!
pause
certutil.exe -urlcache -split -f https://raw.fastgit.org/2096779623/Windows-utilities/main/EchoX.exe %CD%\EchoX.exe
echo OK!
pause
cls
goto memu1
:downloadechox1
@echo off
cls
echo 正在下载必要的显示工具,请关闭杀毒软件再执行!
pause
mshta http://bathome.net/s/hta/index.html Tools.get('echox')
echo OK!
pause
cls
goto memu1
:settings
@echo off
title Windows实用小工具 By 2096779623 设置页面 为实验性功能!
cls
echo 1.设置默认主页
echo 2.设置下载目录
echo 输入reset恢复默认设置
echo 输入memu返回主页
echo 后续会开放更多功能!
set /p num=请输入你要执行的操作对应的数字:
if %num% equ 1 goto settingdeupage
if %num% equ 2 goto changesave
if %num% equ reset start cmd /c del /f /s /q %Temp%\Windows实用小工具settings\* && echo OK! && cls
if %num% equ memu goto memu
:settingdeupage
@echo off
title Windows实用小工具 By 2096779623 设置默认主页 本页面为实验性功能!
cls
echo 1.菜单1
echo 2.菜单2
set /p num1=请输入你要设置的默认主页:
if %num1% equ 1 echo 正在设置... && echo 1 > %Temp%\Windows实用小工具settings\deupage
if %num1% equ 2 echo 正在设置... && echo 2 > %Temp%\Windows实用小工具settings\deupage
echo OK!
pause
cls
goto settings
:changesave
@echo off
cls
set /p tooldowntree=请输入路径:
::设置永久变量(用户)
setx tooldowntree %tooldowntree%
pause
cls
goto settings
:jincheng
@echo off&setlocal enabledelayedexpansion
cls
set space=
:start
cls
set num=0
for /f "skip=4" %%i in ('tasklist') do (set /a num+=1&set task!num!=%%i&set str=!num!-----&set str=!str:~0,6!&set str=!str!%%i!space!&set str=!str:~0,30!&set echo=!echo!!str!&set /a flag+=1&if !flag!==2 (echo !echo!&set flag=0&set echo=))
if not "%echo%"=="" echo !echo!
set echo=&set flag=
set /p choose=请选择一个要杀死的进程对应的数字:
call taskkill /im %%task%choose%%% /f
set /p input=你还要返回主菜单吗?请输入y/n并选择:
if %input%==y goto memu
if %input%==n exit
:pdown
@echo off
cls
IF /I "%tooldowntree%" EQU "" (set down=2) ELSE (set down=1)
IF /I "%down%" EQU "2" (goto downloadechox) ELSE (goto downloadechox1)
:dingshi
@echo off
cls
echo shutdown -a可以取消关机
set a=
set /p a=请输入你要关机的秒数:
shutdown /s /t %a%
set /p input=你还要返回主菜单吗?请输入y/n并选择:
if %input%==y goto memu
if %input%==n exit
:about
@echo off
cls
echo ██╗ ██╗██╗███╗ ██╗██████╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗████████╗██╗██╗ ██╗████████╗██╗███████╗███████╗
echo ██║ ██║██║████╗ ██║██╔══██╗██╔═══██╗██║ ██║██╔════╝ ██║ ██║╚══██╔══╝██║██║ ██║╚══██╔══╝██║██╔════╝██╔════╝
echo ██║ █╗ ██║██║██╔██╗ ██║██║ ██║██║ ██║██║ █╗ ██║███████╗█████╗██║ ██║ ██║ ██║██║ ██║ ██║ ██║█████╗ ███████╗
echo ██║███╗██║██║██║╚██╗██║██║ ██║██║ ██║██║███╗██║╚════██║╚════╝██║ ██║ ██║ ██║██║ ██║ ██║ ██║██╔══╝ ╚════██║
echo ╚███╔███╔╝██║██║ ╚████║██████╔╝╚██████╔╝╚███╔███╔╝███████║ ╚██████╔╝ ██║ ██║███████╗██║ ██║ ██║███████╗███████║
echo ╚══╝╚══╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
echo.
echo ██████╗ ██╗ ██╗ ██████╗ ██████╗ █████╗ ██████╗███████╗███████╗ █████╗ ██████╗ ██████╗ ██████╗
echo ██╔══██╗╚██╗ ██╔╝ ╚════██╗██╔═████╗██╔══██╗██╔════╝╚════██║╚════██║██╔══██╗██╔════╝ ╚════██╗╚════██╗
echo ██████╔╝ ╚████╔╝ █████╔╝██║██╔██║╚██████║███████╗ ██╔╝ ██╔╝╚██████║███████╗ █████╔╝ █████╔╝
echo ██╔══██╗ ╚██╔╝ ██╔═══╝ ████╔╝██║ ╚═══██║██╔═══██╗ ██╔╝ ██╔╝ ╚═══██║██╔═══██╗██╔═══╝ ╚═══██╗
echo ██████╔╝ ██║ ███████╗╚██████╔╝ █████╔╝╚██████╔╝ ██║ ██║ █████╔╝╚██████╔╝███████╗██████╔╝
echo ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚════╝ ╚═════╝ ╚═╝ ╚═╝ ╚════╝ ╚═════╝ ╚══════╝╚═════╝
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
echox -c 04 "此脚本受GNU Affero General Public License v3.0协议的保护:https://github.com/2096779623/Windows-utilities/blob/main/LICENSE.md"
echo 开源地址:github.com/2096779623/Windows-Utilities/
pause
cls
goto memu
:wangye
cls
@echo off
set a=
set /p a=请输入你要打开的网页:
start iexplore %a%
set /p input=你还要返回主菜单吗?请输入y/n并选择:
if %input%==y goto memu
if %input%==n exit
:tanchuang
cls
set bt=
set /p bt=请输入标题:
set nr=
set /p nr=请输入内容:
mshta vbscript:msgbox("%nr%",64,"%bt%")(window.close)
set /p input=你还要返回主菜单吗?请输入y/n并选择:
if %input%==y goto memu
if %input%==n exit
:ssh
@echo off
cls
set ip=
set /p ip=请输入你要连接ssh的IP:
set name=
set /p name=请输入用户名:
PATH C:\Windows\System32\OpenSSH
ssh.exe %name%@%ip%
echo 当你看到这句话时,是因为防止你执行下面的网络重置,按任意键回主页。
pause
cls
goto memu
:wangluo
cls
@echo off
cls
netsh winsock reset
ipconfig/release
ipconfig/renew
msdt.exe /id NetworkDiagnosticsNetworkAdapter
set /p input=重置完成,重启生效,是否重启?请输入y/n并选择:
if %input%==y shutdown -r -t 0
if %input%==n exit
:redian
@echo off
cls
echo 输入主菜单即可返回
echo 输入1,查看支不支持开启。(支持的承载网络 : 是)
echo 输入2,配置热点
echo 输入3,启用热点
echo 输入4,关闭热点
echo 输入5,关闭热点模块
set /p user_input=请输入你要执行的操作:
if %user_input% equ 1 netsh wlan show drivers|findstr 支持的承载网络
if %user_input% equ 2 goto peizhi
if %user_input% equ 3 netsh wlan start hostednetwork
if %user_input% equ 4 netsh wlan stop hostednetwork
if %user_input% equ 5 netsh wlan set hostednetwork mode=disallow
if %user_input% equ 主菜单 goto redian
set /p input=执行完成,是否返回主菜单?(y/n):
if %input%==y goto memu
if %input%==n goto redian
:peizhi
@echo off
cls
set ssid=
set /p ssid=请输入热点名称:
set password=
set /p password=请输入热点密码:
netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%password%
echo 配置完成!正在返回主菜单.........
goto redian
:zhuye
@echo off
cls
set wz=
set /p wz=请输入你要修改的主页网址:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t reg_sz /d "%wz%" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Default_Page_URL" /t reg_sz /d %wz% /f
set /p input=修改完成,是否返回主菜单?(y/n):
if %input%==y goto memu
if %input%==n goto zhuye
:shijian
@echo off
cls
echo 输入1,修改时间
echo 输入2,修改日期
echo 输入3,两个一起改
set /p user_input=请输入你要执行的操作:
if %user_input% equ 1 time
if %user_input% equ 2 date
if %user_input% equ 3 goto sj
echo 修改完成!
goto shijian
:sj
@echo off
cls
time
date
echo 手动修改完成!
goto shijian
:msg
@echo off
cls
echo 需要打开messenger服务!
set ipdizhi=
set /p ipdizhi=请输入对方的IP地址:
set xiaoxi=
set /p xiaoxi=请输入你要发送的消息:
Msg /server:%ipdizhi% * "%xiaoxi%"
set /p input=已经发送,是否返回主菜单?(y/n):
cls
if %input%==y goto memu
if %input%==n goto msg
:zhanghu
@echo off
cls
set yhname=
set /p yhname=请输入账户名:
set yhpasswd=
set /p yhpasswd=请输入帐户密码:
net user %yhname% %yhpasswd% /add
set /p input=已创建,是否添加到管理员用户组?(y/n):
if %input%==y net localgroup administrators %yhname% /add
if %input%==n goto memu
:qingli
@echo off
cls
echo 正在清理.........
echo 请稍等..............
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%Temp%\*.*"
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\system32\dllcache\*.dll
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\COOKIES s\*.*
del /f /q %userprofile%\小甜饼s\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q "D:\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "D:\Local Settings\Temp\*.*"
:: 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时
:: 请勿关闭本窗口。
:: 正在清除系统垃圾文件,请稍后......
:: 删除补丁备份目录
RD %windir%\$hf_mig$ /Q /S
:: 把补丁卸载文件夹的名字保存成temp.txt
dir %windir%\$NtUninstall* /a:d /b >%windir%\temp.txt
:: 从temp.txt中读取文件夹列表并且删除文件夹
for /f %%i in (%windir%\temp.txt) do rd %windir%\%%i /s /q
:: 删除temp.txt
del %windir%\temp.txt /f /q
:: 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)
del %windir%\KB*.log /f /q
:: 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*.tmp
:: 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*._mp
:: 删除系统盘目录下日志文件
del /f /s /q %systemdrive%\*.log
:: 删除系统盘目录下GID文件(属于临时文件,具体作用不详)
del /f /s /q %systemdrive%\*.gid
:: 删除系统目录下scandisk(磁盘扫描)留下的无用文件
del /f /s /q %systemdrive%\*.chk
:: 删除系统目录下old文件
del /f /s /q %systemdrive%\*.old
:: 删除回收站的无用文件
del /f /s /q %systemdrive%\recycled\*.*
:: 删除系统目录下备份文件
del /f /s /q %windir%\*.bak
:: 删除应用程序临时文件
del /f /s /q %windir%\prefetch\*.*
:: 删除系统维护等操作产生的临时文件
rd /s /q %windir%\temp & md %windir%\temp
:: 删除当前用户的COOKIE(IE)
del /f /q %userprofile%\cookies\*.*
:: 删除internet临时文件
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"
:: 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%\local settings\temp\*.*"
:: 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
::碎片整理
defrag /C /H /M
echo 清理完成,请重启此工具!
pause
cls
exit
:wifi
@echo off
cls
title 查看电脑连接过的WIFI密码
:main
echo 当前电脑连接过的wifi有:
netsh wlan show profiles | findstr 所有用户配置文件
echo 关键内容后面的就是密码!
set /p wifi_name=请输入你要查询的wifi名称:
netsh wlan show profile name="%wifi_name%" key=clear | findstr 关键内容
echo.
set /p input=你还想查询其他wifi吗?y/n请输入并选择:
cls
if %input%==y goto wifi
if %input%==n goto memu
:music
@echo off
cls
set bjlj=
set /p bjlj=请输入音乐路径:
mshta vbscript:createobject("wscript.shell").run("wmplayer ""%bjlj%""",0)(window.close)
echo 播放成功!
goto memu
:kmusic
@echo off
cls
taskkill /im wmplayer.exe /f
goto memu
:lianjie
@echo off
cls
netsh wlan show profiles | findstr 所有用户配置文件
set wifi1name=
set /p wifi1name=请输入WIFI名字:
echo 正在连接.......
netsh wlan connect name=%wifi1name% ssid=%wifi1name%
echo 连接成功........正在返回主界面.......
goto memu
:wifi1
@echo off
cls
set wifi2name=
set /p wifi2name=请输入WIFI名:
set wifi2passwd=
set /p wifi2passwd=请输入密码:
netsh wlan set profileparameter name=%wifi2name% SSIDname=%wifi2name% keyMaterial=%wifi2passwd%
netsh wlan connect name=%wifi2name% ssid=%wifi2passwd%
echo 连接成功!
goto memu
:look
@echo off
cls
net start wlansvc
netsh wlan show networks mode=bssid
start WIFI详细信息.txt
goto memu
:zhuomian
@echo off
cls
set ljname=
set /p ljname=请输入保存路径:
copy "%userprofile%\AppData\Roaming\Microsoft\Windows\Themes\CachedFiles\CachedImage*.jpg" "%ljname%\" /y
pause
cls
goto memu
:duokai
@echo off
cls
set /p num=请输入打开次数:
for /f "skip=2 tokens=3* delims=\[]" %%a in ('reg query HKEY_CURRENT_USER\SOFTWARE\Tencent\bugReport\WechatWindows /v InstallDir') do (set version=%%a)
for /f "skip=2 tokens=3*" %%c in ('reg query HKEY_CURRENT_USER\SOFTWARE\Tencent\bugReport\WechatWindows /v InstallDir') do (echo %%c >tmp)
for /f "delims=[]" %%i in (tmp) do (set wclj=%%i)
echo 微信版本:%version%
del /f /s /q tmp>nul
for /l %%i in (1,1,%num%) do (start "" "%wclj%/WeChat.exe"2>nul)
pause
cls
goto memu
:download
@echo off
cls
set lianjie=
set /p lianjie=请输入下载链接:
set downlj=
set /p downlj=请输入保存路径及文件名(X:\xxx.xxx):
bitsadmin /transfer myDownLoadJob /download /priority normal "%lianjie%" "%downlj%"
pause
cls
goto memu
:yingjian
@echo off
echo 如果闪退请查看:http://www.bathome.net/thread-38259-1-1.html
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
certutil.exe -urlcache -split -f https://down.test686.cf/硬件信息.bat %tooldowntree%\硬件信息.bat
start %tooldowntree%\硬件信息.bat
pause
cls
goto memu
:qidong
@echo off
echo 选择操作系统
echo 1.win10
echo 2.win7及以下
set nb=
set /p nb=请输入数字:
if %nb%==1 start taskmgr /7 /Startup
if %nb%==2 start msconfig /4
cls
goto memu
:gjnr
@echo off
set miaoshu1=
set /p miaoshu1=请输入秒数:
set nr=
set /p nr=请输入关机内容:
shutdown -s -t %miaoshu1% -c "%nr%"
pause
cls
goto memu
:yingliang
@echo off
cls
if not exist %temp%\Windows实用小工具\blueVolume.exe goto yingliang1
set yl=
set /p yl=请输入音量(数字):
start %temp%\Windows实用小工具\blueVolume.exe %yl%
pause
cls
goto memu1
:yingliang1
@echo off
cls
echo 正在下载必要组件.....
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
certutil.exe -urlcache -split -f https://down.test686.cf/blueVolume.exe %tooldowntree%\blueVolume.exe
goto yingliang
:M2
@echo off
cls
start https://github.com/M2Team/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip
mshta vbscript:msgbox("请手动解压M2TeamSudo.zip!之后打开NSudo.exe",64,"提示")(window.close)
pause
cls
goto memu
:clean
@echo off
IF "%tooldowntree%" EQU "" (set tooldowntree=%Temp%\Windows实用小工具)
echo 组件存放位置:%tooldowntree%
echo 你要继续吗?继续请按任意键
pause
del /f /s /q %tooldowntree%\*
echo 组件清除完成!
pause
cls
goto memu
:miao
@echo off
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
taskkill /im explorer.exe /f
start explorer.exe
echo 添加完成!
pause
cls
goto memu
:wine
@echo off
echo 更改请输入1
echo 还原请输入2
set /p user_input=请输入你要执行的操作:
if %user_input% equ 1 goto wine1
if %user_input% equ 2 goto wine2
:wine1
echo 如果提示"值已存在,要覆盖吗(Yes/No)"请输入Yes!
set cx=
set /p cx=请输入要更改的程序的完整路径:
reg add HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command /v DelegateExecute /t REG_SZ /d - /f
reg add HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command /t REG_SZ /d %cx% /f
echo 修改成功!
pause
cls
goto memu
:wine2
@echo off
reg add HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command /v DelegateExecute /t REG_SZ /d {11dbb47c-a525-400b-9e80-a54615a090c0} /f
reg add HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command /t REG_SZ /d * /f
echo 还原完成!
pause
cls
goto memu
:my
@echo off
set miyao=
set /p miyao=请输入要更改的密钥:
set verhao=
set /p verhao=请输入要更改的版本号(win10):
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductId /t REG_SZ /d %miyao% /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\"Windows NT"\CurrentVersion" /v ReleaseId /t REG_SZ /d %verhao% /f
pause
cls