Windows 調教指南
安裝(可選)
我們的最終目標是 Windows Pro, 其他版本不建議,首先可以用 RUFUS 進行 ISO 燒錄,然後重裝系統,鏡像可以從下面網站獲取:
| 網站 | 存活 |
|---|---|
| https://www.microsoft.com/en-us/software-download/windows11 | |
| https://msdn.sjjzm.com | |
| https://msdn.itellyou.cn | |
| https://www.hellowindows.cn |
另一種方式是從家庭版或者亂八七糟的版本直接升級爲 Pro 版本,需要輸入激活碼,嘗試:
MPNQW-MGTVK-678YR-P6GT8-JFG6T
跳過聯網激活(可選)
shift + f12 彈出命令行後,輸入如下命令即可跳過聯網激活:
oobe\bypassnro
激活
irm https://get.activated.win | iex
via: https://github.com/massgravel/Microsoft-Activation-Scripts / Microsoft Activation Scripts | MAS
包管理器: Winget + Scoop
[!IMPORTANT]
環境準備:現在我們已經成功進入激活系統了,可以開始搞了,以下指南全部經過命令行實現,所以自行準備 PWSH 7 的運行環境,不保證自帶的 Powershell 5 可以正常運行;
winget install --id Microsoft.PowerShell
考慮到可遷移性,我們優先選擇 Scoop 安裝/恢復軟件,找不到的情況下再選 scoop,當然,其他包管理器也可以;
[!TIP]
從使用上來說,無狀態的工具兩者都可,但是有狀態的工具最好還是 scoop。
代理
如果你的網絡環境不好,現在 Winget / Scoop 都有很好的代理支持,因此你唯一需要保證的是暢通的網絡 [1]。選擇自己偏好的命令開啓代理:
Winget 代理如下:
$ sudo winget settings --enable ProxyCommandLineOptions
$ winget --proxy http://127.0.0.1:10800 install
$ winget settings set DefaultProxy http://127.0.0.1:10800
$ winget settings reset DefaultProxy
Scoop 也支持代理,別忘了:
scoop config proxy 127.0.0.1:10800
從 Scoop 恢復(可選)
建議將舊機器的 SCOOP 文件夾放在用戶目錄(~),然後保存 install-scoop.ps1(PS7), 運行下面的腳本更新環境變量:
$username = $env:USERNAME
$scoopPath = "C:\Users\$username\scoop"
$currentScoop = [Environment]::GetEnvironmentVariable("SCOOP", "User")
if ($currentScoop -eq $null) {
[Environment]::SetEnvironmentVariable("SCOOP", $scoopPath, "User")
Write-Output "SCOOP environment variable set to $scoopPath"
} else {
Write-Output "SCOOP environment variable already exists with value: $currentScoop"
}
$currentUserPath = [Environment]::GetEnvironmentVariable("PATH", "User")
$newPathEntry = "%SCOOP%\shims"
if (-not $currentUserPath.Contains($newPathEntry)) {
$updatedPath = "$currentUserPath;$newPathEntry"
[Environment]::SetEnvironmentVariable("PATH", $updatedPath, "User")
Write-Output "Path updated: $updatedPath"
} else {
Write-Output "Path already contains $newPathEntry"
}
如果不想運行命令,可以人肉做如下事情:
- 配置
SCOOP的用戶環境變量爲~/scoop; - 配置
~/scoop/shimes/到path環境變量;
接下來重新創建符號連接(管理員運行):
sudo scoop reset *
這樣,你上個機器的軟件全部恢復了;
優化
Disable: Windows Defender
use dControl, but not open-source.
Disable: Windows Update
use [Wub](Windows Update Blocker v1.8), but not open-source.
Disable: Firewall
Run as disable-firewall.ps1
Get-NetFirewallProfile
Set-NetFirewallProfile -Profile Domain -Enabled False
Set-NetFirewallProfile -Profile Private -Enabled False
Set-NetFirewallProfile -Profile Public -Enabled False
Get-NetFirewallProfile
Remove: Ads
有比較多的 Windows 優化工具,我之前用的是 https://github.com/xM4ddy/OFGB ,現在更推薦 Raphire/Win11Debloats,默認的就可以,刪掉沒有用的 AI 和廣告。
-------------------------------------------------------------------------------------------
Win11Debloat Script - Default Mode (User: bgzo)
-------------------------------------------------------------------------------------------
Win11Debloat will make the following changes:
- Remove the default selection of apps:
Clipchamp.Clipchamp Microsoft.3DBuilder Microsoft.549981C3F5F10 Microsoft.BingFinance Microsoft.BingFoodAndDrink Microsoft.BingHealthAndFitness Microsoft.BingNews Microsoft.BingSports Microsoft.BingTranslator Microsoft.BingTravel Microsoft.BingWeather Microsoft.Copilot Microsoft.Getstarted Microsoft.Messaging Microsoft.Microsoft3DViewer Microsoft.MicrosoftJournal Microsoft.MicrosoftOfficeHub Microsoft.MicrosoftPowerBIForWindows Microsoft.MicrosoftSolitaireCollection Microsoft.MicrosoftStickyNotes Microsoft.MixedReality.Portal Microsoft.NetworkSpeedTest Microsoft.News Microsoft.Office.OneNote Microsoft.Office.Sway Microsoft.OneConnect Microsoft.Print3D Microsoft.PowerAutomateDesktop Microsoft.SkypeApp Microsoft.Todos Microsoft.Windows.DevHome Microsoft.WindowsAlarms Microsoft.WindowsFeedbackHub Microsoft.WindowsMaps Microsoft.WindowsSoundRecorder Microsoft.XboxApp Microsoft.ZuneVideo MicrosoftCorporationII.MicrosoftFamily MicrosoftCorporationII.QuickAssist MicrosoftTeams MSTeams ACGMediaPlayer ActiproSoftwareLLC AdobeSystemsIncorporated.AdobePhotoshopExpress Amazon.com.Amazon AmazonVideo.PrimeVideo Asphalt8Airborne AutodeskSketchBook CaesarsSlotsFreeCasino COOKINGFEVER CyberLinkMediaSuiteEssentials DisneyMagicKingdoms Disney DrawboardPDF Duolingo-LearnLanguagesforFree EclipseManager Facebook FarmVille2CountryEscape fitbit Flipboard HiddenCity HULULLC.HULUPLUS iHeartRadio Instagram king.com.BubbleWitch3Saga king.com.CandyCrushSaga king.com.CandyCrushSodaSaga LinkedInforWindows MarchofEmpires Netflix NYTCrossword OneCalendar PandoraMediaInc PhototasticCollage PicsArt-PhotoStudio Plex PolarrPhotoEditorAcademicEdition Royal Revolt Shazam Sidia.LiveWallpaper SlingTV Spotify TikTok TuneInRadio Twitter Viber WinZipUniversal Wunderlist XING
- Disable Windows Recall
- Disable Click to Do (AI text & image analysis)
- Disable & remove Microsoft Copilot
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads
- Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer
- Disable ads, suggestions and the MSN news feed in Microsoft Edge
- Disable tips & tricks on the lockscreen (This may change your lockscreen wallpaper)
- Disable & remove Bing web search, Bing AI and Cortana from Windows search
- Show file extensions for known file types
- Disable widgets on the taskbar & lockscreen
- Disable Fast Start-up
然後,每個 OEM 自帶的垃圾軟件都不一樣,所以需要甄別,比如 Hornor 自帶的奇安信其實是 可以卸載 的,這點需要自行注意;
自定義
Chinese: Flypy(小鶴雙拼)
Run as install-flypy.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS]
"UserDefinedDoublePinyinScheme0"="flypy*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"
字體美化
因爲種種原因,優先安裝 AliceT8d/NobleScarlet(自行找),可以緩解中文虛化的問題,其他字體可以根據 Scoop 自行安裝:
$ scoop bucket add nerd-fonts
$ scoop install LXGWWenKai
$ scoop install LXGWWenKaiMono
$ scoop install JetBrainsMono-NF
所有的字體都在 ~\AppData\Local\Microsoft\Windows\Fonts 目錄中,
軟件推薦
winget install stnkl.EverythingToolbar
winget install Microsoft.Coreutils
Install Runtime Dependencies
$ winget install Microsoft.VCRedist.2010.x64
$ winget install Microsoft.VCRedist.2012.x64
$ winget install Microsoft.VCRedist.2013.x64
$ winget install Microsoft.VCRedist.2015+.x64
魔改(不推薦)
Coding: Case Sensitive [2]
$ fsutil.exe file setCaseSensitiveInfo ~\workspaces enable
$ git config core.ignorecase false
Chinese: Font rendering
- ClearType build-in windows.
- Install Noble Scarlet[3]
- Replace with Apple PingFang using https://github.com/Tatsu-syo/noMeiryoUI
[!NOTE]
In 22H2 later versions, something would be wrong. via https://github.com/Tatsu-syo/noMeiryoUI/discussions/86
- (Not recommend, cause outdated) MacType
$ winget install MacType.MacType
- (Not recommend, cause side effect) Replace Fonts
Disable: Services
Run following as disable-services.ps1:
$servicesToDisable = @(
"WSearch",
"DtsApo4Service"
)
foreach ($service in $servicesToDisable) {
# 獲取服務狀態
$svc = Get-Service -Name $service -ErrorAction SilentlyContinue
if ($null -ne $svc) {
# 停止服務
if ($svc.Status -ne 'Stopped') {
Write-Host "Stopping service: $service"
Stop-Service -Name $service -Force
}
# 設置服務啓動類型爲禁用
Write-Host "Disabling service: $service"
Set-Service -Name $service -StartupType Disabled
} else {
Write-Host "Service $service not found!"
}
}
Hide: Windows Security Notifications
Run as disable-security-notifications.reg[4]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications]
"DisableNotifications"=dword:00000001
Processor performance boost mode [5]
Run process-boost.bat, then go powercfg.cpl to disable boost it. If you are using windows 11, you could use the EnergyStar meanwhile.[6]
$ winget install 9NF7JTB3B17P
Seem like some pc support edit on the bios, like AMD: Settings --> AMD OverClocking --> Precision Boost Overdrive, via via: https://www.reddit.com/r/AMDHelp/comments/es0d4a/how_exactly_do_you_disable_pbo/
Modern Standby (S0)
Check your laptop whether support S3 sleep mode:
powercfg -a
If shown only support S0, run following as kill-s0-sleep.bat to delete sleep mode.[7]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power]
"PlatformAoAcOverride"=dword:00000000
[!NOTE]
If you delete sleep mode, you should select your laptop to hibernate after closing lid.
powercfg /hibernate on
Recovery sleep mood run following as reg:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power]
"PlatformAoAcOverride"=-
Disable: Sticky keys
- Close 粘滯鍵
- 設置 > 粘滯鍵 > 關閉所有觸發方式
- https://blog.csdn.net/xitongzhijia_abc/article/details/125505930
SubSystem
WSL
Install WSL
$ sudo dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
$ wsl --set-default-version 2
$ wsl --install --no-distribution
[!NOTE]
If show無法解析服務器的名稱或地址, just set system proxy, then retry.
Then import ubuntu[8]
wsl --import ubuntu "C:\Users\bgzo\wsl\" "C:\Users\bgzo\Downloads\ubuntu.tar" --version 2
WSA
TODO
Windows is soooo good:
Waitng feature:
- 自動切換黑暗模式
- 自動亮度調節
- Unlock windows hello without PIN
- 屏幕使用時間
Changelog
24H2
- Features no longer under temporary enterprise control
- Checkpoint cumulative updates
- Features exclusive to Copilot+ PCs in 24H2
- Features added to Windows 11 since version 23H2
- Server Message Block (SMB) protocol changes
- SMB signing and encryption
- SMB alternative client and server ports
- SMB NTLM blocking exception list
- SMB dialect management
- SMB over QUIC
- SMB firewall rule changes
- Local Security Authority (LSA) protection enablement on upgrade
- Remote Mailslot protocol disabled by default
- Local Administrator Password Solution (LAPS) improvements
- Rust in the Windows kernel
- Personal Data Encryption (PDE) for folders
- Windows protected print mode
- SHA-3 support
- App Control for Business
- Wi-Fi 7 support
- Bluetooth ® LE audio support for assistive devices
- Windows location improvements
- Sudo for Windows
- Enable optional updates
- Remote Desktop Connection improvements
- Additional features
- File Explorer
- 7-zip and TAR archives support
- OOBE improvement: when you need to connect to a network and there's no Wi-Fi drivers, you're given an Install drivers option to install drivers that are already downloaded
- Registry Editor: The Registry Editor supports limiting a search to the currently selected key and its descendants
- Task Manager: The Task Manager settings page has Mica material and a redesigned icon
- File Explorer
- Developer APIs
- Server Message Block (SMB) protocol changes
- Features removed in Windows 11, version 24H2
- WordPad
- Alljoyn
23H2
via: https://learn.microsoft.com/en-us/windows/whats-new/whats-new-windows-11-version-23h2
- Features no longer under temporary enterprise control
- Features added to Windows 11 since version 22H2
- Passkeys in Windows
- Windows passwordless experience
- Web sign-in for Windows
- Declared configuration protocol
- Education themes
- Temporary enterprise feature control
- Multi-app kiosk
- Copilot in Windows
- Windows Hello for Business authentication improvement
- LAPS native integration
- Federated sign-in
- Customize Windows 11 taskbar buttons
- Braille displays
- Dev Drive
- Additional features
- In-box apps
22H2
via: https://learn.microsoft.com/en-us/windows/whats-new/whats-new-windows-11-version-22h2
- Microsoft Pluton
- Enhanced Phishing Protection
- Smart App Control
- Credential Guard
- Malicious and vulnerable driver blocking
- Security hardening and threat protection
- Personal Data Encryption
- WebAuthn APIs support ECC
- Stickers for Windows 11 SE, version 22H2
- Education themes
- Windows Update notifications
- Start menu layout
- Improvements to task manager
- Windows accessibility
- High Efficiency Video Coding (HEVC) support
Quck Sheet for Shortcuts
| Operation | Effects |
|---|---|
| Win+E | 打開資源管理器 |
| Win+t | 循環切換任務欄 |
| Win+Ctrl+D | 創建虛擬 Desktop |
| Win+Q | 搜索 |
| Win+Ctrl+F4 | 關閉虛擬 Desktop |
| Win+R | 對話框 |
| Win+Ctrl+ 左/右 | 左右切換虛擬 Desktop |
| Win+X | “Windows 移動中心”設置面板 |
| Win+F4 | 關閉窗口 |
| Win+m | 最小化窗口(全部窗口) |
| Win+Shift+M | 還原窗口最小化(全部) |
| Operation | Effects |
|---|---|
| ctrl+w | 關閉瀏覽器當前頁(我的電腦) |
| ctrl+t | 打開新標籤頁 |
| ctrl+alt+delete | 打開任務管理器 |
| ctrl+shift+t | 恢復關閉的瀏覽器頁面 |
| ctrl+ | 放大頁面 |
| ctrl- | 縮小頁面 |
| Operation | Effects |
|---|---|
| alt+F4 | 關閉窗口 |
| alt+enter | 查看選中文件屬性 |
| alt+ 前進/後退方向鍵 | 瀏覽器頁面後退前進 |
| alt+d | 焦點固定到地址欄 |
| alt+shief+numLock | 用鍵盤控制鼠標 |
| alt+space+n | 單個窗口最小化(配合 Dock 使用) |
| Operation | Effects |
|---|---|
| F1 | 顯示當前程序或者 windows 的幫助內容 |
| F2 | 如果選中文件的話,進行重命名 |
| F3 | 查找 |
| F5 | 瀏覽器頁面刷新 |
| F6 | 使用瀏覽器時,地址欄獲得焦點(即光標移到了地址欄) |
| F11 | 瀏覽器全屏 |
| F12 | 瀏覽器審查元素/調試界面 |
| prtsc | 截屏 |
Source via: https://note.bgzo.cc/weekly/20240922-how-to-setup-a-new-windows
https://github.com/microsoft/winget-cli/issues/190 , https://github.com/microsoft/winget-cli/discussions/4428 ↩︎
case-sensitive via https://juejin.cn/post/7135422871735631902 , https://www.zhihu.com/question/443835000/answer/1726902348↩ ↩︎
via: https://hermit.world/post/2022/01/17/refining-windows-font-rendering/ , https://www.zhihu.com/question/67196637 , https://v2ex.com/t/941786 ↩︎
https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/windows-defender-security-center/wdsc-hide-notifications ↩︎
via https://www.chiphell.com/thread-2460017-1-1.html to check abnormal power on count with ssd disk. more instructions you could via https://www.bilibili.com/video/BV1Pv4y1d7Ms/ , solution via https://blog.csdn.net/sinat_30603081/article/details/130637807 , https://www.timochan.cn/posts/any_pen/stupid_modern_standby ↩︎
https://blog.csdn.net/momodosky/article/details/108102146 ↩︎

浙公网安备 33010602011771号