Windows 技巧筆記
1. Windows 11 安裝相關
https://www.microsoft.com/en-us/software-download/windows11
2. Windows 10 安裝相關
https://www.microsoft.com/en-us/software-download/windows10ISO
3. Windows Enterprise 安裝相關
https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise
4. Windows Server 安裝相關
https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022
如果不能支持下載 ISO 鏡像文件, 可以嘗試切換 User Agent 即可
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
5. 如何使用 Windows 鏡像文件
方法一: 使用 PE 系統
之後掛載 ISO 鏡像文件即可
方法二:使用 Ventory 開機使用 ISO 鏡像引導
方法三: 燒錄 ISO 鏡像文件到 USB 存儲器
Windows 平臺:
Mac 平臺:
6. 如何激活 Windows
https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys
找到對應的 key
slmgr -ipk YOUR-WINDOWS-KEY
slmgr -skms kms.beyour.dad
:: slmgr -skms kms.03k.org
:: slmgr -skms kms.library.hk
slmgr -ato
slmgr -dlv
如果有問題,需要卸載當前的密鑰,或更改為非試用版本
slmgr -upk
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:YOUR-WINDOWS-KEY /AcceptEula
DISM /Online /Set-Edition:ServerStandard /ProductKey:YOUR-WINDOWS-KEY /AcceptEula
KMS Server 開源版本
https://github.com/Wind4/vlmcsd/releases
7. Windows 優化腳本
推薦使用 DISM++
開機之後發現鎖屏時數字小鍵盤沒有自動開
可以修改註冊表解決,另存爲 bootNumberLock.reg
管理員運行權限執行
Windows Registry Editor Version 5.00
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
"InitialKeyboardIndicators"="80000002"
在 Windows8 / 8.1 /10 下,其數值爲:80000002 (在 Windows 7 中數值取十六進制值最後一位爲:2
80000000 – 關閉全部鎖定 (包括 NumLock, CapsLock, ScrollLock)
80000001 – 開啓 CapsLock
80000002 – 開啓 NumLock
80000003 – 開啓 CapsLock 和 NumLock
80000004 – 開啓 ScrollLock
80000005 – 開啓 CapsLock 和 ScrollLock
80000006 – 開啓 NumLock 和 ScrollLock
80000007 – 開啓全部鎖定 (包括 NumLock, CapsLock, ScrollLock)
這些具體數值 M$ 的 TechNet 也偷懶不寫 https://technet.microsoft.com/en-us/library/cc978657.aspx
此方法僅限 BIOS/EFI/UEFI 開啓鍵盤功能的情況下
其他解決方法可以試試看下面這個(懶得翻,自己看。
-
If the above doesn’t work, maybe you have to set the NumLock state to ON in BIOS settings. So, you have to enter into your BIOS and change the NumLock state to ON. To do that:
-
Power On your computer and press 「DEL」 or 「F1」 or 「F2」 or 「F10」 to enter BIOS (CMOS) setup utility. (The way to enter into BIOS Settings depends on the computer manufacturer).
-
Inside BIOS find the POST Behavior menu.
-
Set the NumLock key (state) option to ON.
-
Save and exit from BIOS settings.
-
In some HP laptops the only way to keep NumLock ON, is to search for all 「InitialKeyboardIndicators」 strings with numeric values inside the registry and set the value to 「2147483650」 (without quotes). To do that:
-
Open Registry Editor.
-
From main menu click Edit and choose Find.
-
Inside Find What box, type InitialKeyboardIndicators and click Find Next.
-
Change the value data to 「2147483650」 in every 「InitialKeyboardIndicators」 string inside registry, by using the F3 key to find all of them.
Windows 10 聚焦壁紙路徑
%localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets
ren *.* *.jpg
開啓卓越性能模式
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
powercfg /setactive e9a42b02-d5df-448d-aa00-03f14749eb61
去除桌面的快捷方式小箭頭
批處理腳本解決 另存爲 clearArrow.bat 管理員運行權限執行
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
恢復小箭頭也可以批處理腳本解決 另存爲 recArrow.bat 管理員運行權限執行
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /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
GTA 全系列用戶音樂軟鏈接
cd C:\Users\%USERNAME%\Documents\Rockstar Games\GTA V\User Music
for /r "E:\MusicPath" %I in (*.mp3) do mklink "%~nxI" "%I"
時間同步
設定要同步的 NTP Server
w32tm /config /update /manualpeerlist:cn.pool.ntp.org
開始進行同步
w32tm /resync
開機自動同步 NTP 時間
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]
"SpecialPollInterval"=dword:0000003c
重建系統圖標緩存
taskkill /f /im explorer.exe
rem clearSysIconCache
attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
del /f "%userprofile%\AppData\Local\IconCache.db"
attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
rem clearTrayIconCache
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream
rem restartExplorer
start explorer
ie4uinit.exe -show
taskkill /IM explorer.exe /F
DEL /A /Q "%localappdata%\IconCache.db"
DEL /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
shutdown -l
目錄自動刷新
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Update]
"UpdateMode"=dword:00000000
清除空目錄
@echo off
for /f "tokens=*" %%i in ('dir/s/b/ad^|sort /r') do rd "%%i"
時間同步 UTC 格式
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
清除 SMB 服務器連接記錄
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU
修改網絡名稱
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
另外牆裂推薦 Visual Studio Code 或 Notepad++ 替代系統自帶的文本編輯器。
修復 Intel 12、13 代大小核調度問題
powercfg -attributes SUB_PROCESSOR 7f2f5cfa-f10c-4823-b5e1-e93ae85f46b5 -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR 93b8b6dc-0698-4d1c-9ee4-0644e900c85d -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR bae08b81-2d5e-4688-ad6a-13243356654b -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR b28a6829-c5f7-444e-8f61-10e24e85c532 -ATTRIB_HIDE
Microsoft Visual C++ Redistributable latest supported downloads