Windows 实用配置记录

自己整理一下 Windows 系统软件配置和常见错误解决方案的记录,避免每次都要搜索。

右键菜单

  • 桌面右键
计算机\HKEY_CLASSES_ROOT\Directory\Background\shell
  • 文件夹右键菜单
计算机\HKEY_CLASSES_ROOT\Directory\shell
计算机\HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers
计算机\HKEY_CLASSES_ROOT\Folder\shell
计算机\HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers
  • 文件右键菜单
计算机\HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers

远程桌面

  • 使用微软账号作为凭据登录远程桌面时,始终提示密码错误。可能由于微软账号密码修改后电脑未及时更新。可以用自己的这个账户权限执行一次 winver 查看系统版本,将微软账户密码刷新一下。
runas /u:MicrosoftAccount\wenjie.xu.cn@outlook.com winver

系统功能

  • 使虚拟内存可以设置在非系统盘 (修复报错”由于启动计算机时出现了页面文件配置问题,Windows 在你的计算机上创建了一个临时页面文件”)
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" /v PagefileOnOsVolume /t REG_DWORD /d 0 /f
  • 将每个资源管理器窗口作为独立的实例以提高稳定性
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v SeparateProcess /t REG_DWORD /d 1 /f
  • 不要将驱动程序和内核模式系统代码放进虚拟内存(可能解决一些诡异的驱动稳定性问题)
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" /v DisablePagingExecutive /t REG_D

系统界面

  • 桌面、资源管理器等的字体缩放异常且无法通在设置中恢复,修改注册表重置缩放
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"IconTitleWrap"="1"
"Shell Icon Size"="32"
"BorderWidth"="-15"
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"CaptionHeight"="-330"
"CaptionWidth"="-330"
"IconFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuHeight"="-285"
"MenuWidth"="-285"
"MessageFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"ScrollHeight"="-255"
"ScrollWidth"="-255"
"SmCaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\
  00,00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"SmCaptionHeight"="-330"
"SmCaptionWidth"="-330"
"StatusFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"AppliedDPI"=dword:00000060
"PaddedBorderWidth"="-60"
"IconSpacing"="-1125"
"IconVerticalSpacing"="-1125"
"MinAnimate"="0"

PowerShell 7

  1. oh-my-posh 主题
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\1_shell.omp.json" | Invoke-Expression



    Enjoy Reading This Article?

    Here are some more articles you might like to read next:

  • 工作环境系统实用配置记录
  • 部署用于学术研究的 Linux 服务器
  • Conda-Pyenv-Poetry 多轨管理 Python 环境
  • Python 项目中高效管理路径的范式
  • 多设备项目代码同步