Win10

发布于 更新于

AI总结: 本文介绍了通过注册表脚本在Windows中添加、删除和修改一些功能,包括为VSCode Insiders添加右键菜单、删除“我的电脑”中的特定文件夹、添加Notepad2的右键菜单、替换系统默认记事本、禁用Windows 10和11的系统更新、设置默认浏览器以及解决Chrome和Edge浏览器由组织管理的问题。改进建议包括提供更详细的步骤说明,确保用户在操作注册表时能够清楚理解每一步的目的和风险。

VSCode Insiders 添加右键菜单

正常安装完会有右键菜单, 如果丢失可以执行以下注册表脚本

Windows Registry Editor Version 5.00  

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCodeInsiders]  
@="Open with Code - Insiders"  
"Icon"="D:\\Microsoft VS Code Insiders\\Code - Insiders.exe"  

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCodeInsiders\command]  
@="\"D:\\Microsoft VS Code Insiders\\Code - Insiders.exe\" \"%V\""  

[HKEY_CLASSES_ROOT\Directory\shell\VSCodeInsiders]  
@="Open with Code - Insiders"  
"Icon"="D:\\Microsoft VS Code Insiders\\Code - Insiders.exe"  

[HKEY_CLASSES_ROOT\Directory\shell\VSCodeInsiders\command]  
@="\"D:\\Microsoft VS Code Insiders\\Code - Insiders.exe\" \"%V\""  

[HKEY_CLASSES_ROOT\*\shell\VSCodeInsiders]  
@="Open with Code - Insiders"  
"Icon"="D:\\Microsoft VS Code Insiders\\Code - Insiders.exe"  

[HKEY_CLASSES_ROOT\*\shell\VSCodeInsiders\command]  
@="\"D:\\Microsoft VS Code Insiders\\Code - Insiders.exe\" \"%1\""  

我的电脑删除3D对象等

Windows Registry Editor Version 5.00  
; 删除导航窗格对应文件夹,-表示删除注册表项,不写-表示增加注册表项  

; 删除3D对象  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]  

; 删除视频  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]  

; 删除图片  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]  

; 删除文档  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]  

; 删除下载  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]  

; 删除音乐  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]  

; 删除桌面  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]  

新增右键菜单openWithNotepad2

Windows Registry Editor Version 5.00  

[HKEY_CLASSES_ROOT\*\shell\Open with Notepad2]  
"Icon"="D:\\totalcmd\\Tools\\Notepad2.exe,0"  

[HKEY_CLASSES_ROOT\*\shell\Open with Notepad2\command]  
@="\"D:\\totalcmd\\Tools\\Notepad2.exe\" \"%1\""  

替换系统默认的notepad

Windows Registry Editor Version 5.00  

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]  
"Debugger"="\"D:\\totalcmd\\Tools\\Notepad2.exe\" \"%1\""  

禁用Win10&11系统更新

Windows Registry Editor Version 5.00  

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]  
"FlightSettingsMaxPauseDays"=dword:00001b58  
"PauseFeatureUpdatesStartTime"="2023-07-07T10:00:52Z"  
"PauseFeatureUpdatesEndTime"="2042-09-05T09:59:52Z"  
"PauseQualityUpdatesStartTime"="2023-07-07T10:00:52Z"  
"PauseQualityUpdatesEndTime"="2042-09-05T09:59:52Z"  
"PauseUpdatesStartTime"="2023-07-07T09:59:52Z"  
"PauseUpdatesExpiryTime"="2042-09-05T09:59:52Z"  

设置默认浏览器

Windows Registry Editor Version 5.00  

[HKEY_CLASSES_ROOT\http\shell\open\command]  
@="\"D:\\floorp\\floorp.exe\" -- \"%1\""  

[HKEY_CLASSES_ROOT\https\shell\open\command]  
@="\"D:\\floorp\\floorp.exe\" -- \"%1\""  

Chrome 浏览器由所属组织管理解决方法

Windows Registry Editor Version 5.00  

; 删除 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]  

; 删除 HKEY_CURRENT_USER\Software\Policies\Google\Chrome  
[-HKEY_CURRENT_USER\Software\Policies\Google\Chrome]  

Edge 浏览器由所属组织管理解决方法

Windows Registry Editor Version 5.00  

; 删除 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge  
[-HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]  

; 删除 HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge  
[-HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]