Winget
winget install --id=Microsoft.PowerShell.Preview --source winget
winget install --id=Kitware.CMake --location=D:\Programs\KI\CMAKE
winget install --id=Ninja-build.Ninja --location=D:\Programs\KI\NINJA
winget install --id=Git.Git -e --location=D:\Programs\KI\VGITW
winget install --id=pnpm.pnpm -e --location=D:\Programs\MI\PNPMW
winget install --id=astral-sh.uv -e --location=D:\Programs\MI\PPUVW
Win+R regedit
reg权限
未将所有数据都成功写入到注册表
cmd /k reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersNew" /ve /t REG_SZ /d {D969A300-E7FF-11d0-A93B-00A0C90F2719} /f
菜单
恢复右键
- 运行“regedit”,定位到
“计算机\HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID”; - 点击“CLSID”键值,新建一个名为{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}的项;
- 右键点击新创建的项,新建一个名为InprocServer32的项,按下回车键保存
- 重启 explorer.exe
# 2. 3.
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
# 4.
taskkill /f /im explorer.exe & start explorer.exe
# 还原
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /va /fe
自定义空白|桌面右键
在注册表里面定位
- 计算机\HKEY_CLASSES_ROOT\Directory\Background\shell
- 计算机\HKEY_CLASSES_ROOT\DesktopBackground\Shell
- 计算机\HKEY_CLASSES_ROOT\Directory\shell
[HKEY_CLASSES_ROOT\*\shell\one]
"icon"="C:\\regedit\\seting.ico"
"SubCommands"="two1;two2;two3"
"MuiVerb"="一级菜单"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two1]
"MUIVerb"="二级菜单1"
"icon"="C:\\regedit\\seting.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two1\command]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two2]
"MUIVerb"="二级菜单2"
"icon"="C:\\regedit\\seting.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two2\command]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two3]
"MUIVerb"="二级菜单3"
"icon"="C:\\regedit\\seting.ico"
"SubCommands"="three31;three32"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\two3\command]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\three31]
"icon"="C:\\regedit\\seting.ico"
"MUIVerb"="三级菜单31"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\three31\command]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\three32]
"icon"="C:\\regedit\\seting.ico"
"MUIVerb"="三级菜单32"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\three32\command]
Win+R .msc
关闭服务
SecurityHealthService
Edge扩展支持
此扩展不是来自任何已知来源,可能是在你不知情的情况下添加的
- 下载相关策略 https://www.microsoft.com/zh-cn/edge/business/download 选择通道\版本
获取策略.cab, 选择 \windows\adm\zh-CN\msedge.adm - gpedit.msc 计算机配置-管理模板 添加/删除模板 添加 msedge.adm
- 经典管理模板(ADM) MicrosoftEdge 扩展 特定扩展输入ID即可
综合
关闭win自动更新
组策略里关闭Win10自动更新相关服务
- services.msc 找到 Windows Update 这一项,并双击打开
2,点击“停止”,把启动类型选为“禁用”,应用 - 切换到“恢复”选项,将默认的“重新启动服务”改为“无操作”,然后点击“应用”“确定”。
- gpedit.msc 计算机配置 -> 管理模板 -> Windows组件 -> Windows更新
- 然后在右侧“配置自动更新”设置中,将其设置为“已禁用”并点击下方的“应用”然后“确定”,如图所示。
4、之后还需要在用户配置->管理模板->windows组件->windows更新中找到“删除使用所有Windows更新功能的访问权限”,选择已启用,完成设置后,点击“应用”“确定”,如图所示。
4、之后还需要在用户配置->管理模板->windows组件->windows更新中找到“删除使用所有Windows更新功能的访问权限”,选择已启用,完成设置后,点击“应用”“确定”,如图所示。
- 按
Win + R打开“运行”对话框。 - 输入
regedit并点击“确定”打开注册表编辑器。 - 导航到以下路径:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
- 如果“MRT”项不存在,右键点击“Microsoft”,选择“新建” -> “项”,并将其命名为“MRT”。
- 选中“MRT”项,在右侧空白区域右键点击,选择“新建” -> “DWORD(32位)值”,并将该值命名为“DontOfferThroughWUAU”。
- 双击“DontOfferThroughWUAU”,将数值数据设置为“1”,然后点击“确定”。
- 重启电脑后,Windows Update将不再自动提供或安装恶意软件删除工具(kb890830)。
对于第二步:
以管理员权限运行命令提示符
然后输入:wusa /uninstall /kb:890830