:: 还原任务栏Cortana
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /f >nul 2>&1
:: 还原任务栏窗口合并
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarGlomLevel" /f >nul 2>&1
:: 还原资源管理器打开位置
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /f >nul 2>&1
:: 还原DLL卸载设置
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "AlwaysUnloadDLL" /f >nul 2>&1
:: 还原快捷方式跟踪
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoResolveTrack" /f >nul 2>&1
:: 还原文件列表刷新策略
reg delete "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ForegroundLockTimeout" /f >nul 2>&1
:: 还原快捷方式创建文字
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "link" /f >nul 2>&1
:: 还原自动播放设置
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /f >nul 2>&1
:: 还原文件夹进程设置
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SeparateProcess" /f >nul 2>&1
:: 还原快速访问常用文件夹
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /f >nul 2>&1
:: 还原快速访问最近文件
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /f >nul 2>&1
:: 还原语言栏设置
reg delete "HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar" /v "ShowStatus" /f >nul 2>&1
:: 还原语言栏帮助按钮
reg delete "HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar" /v "ExtraIconsOnMinimized" /f >nul 2>&1
:: 还原资源管理器崩溃重启
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoRestartShell" /f >nul 2>&1
:: 还原文件扩展名显示
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /f >nul 2>&1
:: 还原桌面"此电脑"图标
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /f >nul 2>&1
:: 还原桌面"回收站"图标
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /f >nul 2>&1
:: 还原开始菜单常用应用
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /f >nul 2>&1
:: 还原开始菜单最近添加应用
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /f >nul 2>&1
:: 还原记事本自动换行
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Notepad" /v "fWrap" /f >nul 2>&1
:: 还原记事本状态栏
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Notepad" /v "StatusBar" /f >nul 2>&1
:: 还原最近文档清除
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /f >nul 2>&1
:: 还原开始菜单建议
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /f >nul 2>&1
:: 还原应用商店关联应用
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /f >nul 2>&1
:: 还原商店应用推广
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /f >nul 2>&1
:: 还原锁屏聚焦推广
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenEnabled" /f >nul 2>&1
:: 还原技巧和建议
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /f >nul 2>&1
:: 还原游戏录制工具
reg delete "HKEY_CURRENT_USER\System\GameConfigStore" /v "GameDVR_Enabled" /f >nul 2>&1
:: 还原小娜设置
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /f >nul 2>&1
:: 还原关机速度
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /f >nul 2>&1
:: 还原服务关闭等待时间
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "ServicesPipeTimeout" /f >nul 2>&1
:: 还原程序兼容性助手
sc config "PcaSvc" start= auto >nul
sc start "PcaSvc" >nul 2>&1
:: 还原诊断服务
sc config "DPS" start= auto >nul
sc start "DPS" >nul 2>&1
:: 还原SysMain
sc config "SysMain" start= auto >nul
sc start "SysMain" >nul 2>&1
:: 还原Windows Search
sc config "WSearch" start= auto >nul
sc start "WSearch" >nul 2>&1
:: 还原错误报告
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /f >nul 2>&1
:: 还原客户体验改善计划
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /f >nul 2>&1
:: 还原NTFS链接跟踪服务
sc config "TrkWks" start= auto >nul
sc start "TrkWks" >nul 2>&1
:: 还原自动维护计划
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /v "MaintenanceDisabled" /f >nul 2>&1
:: 还原大系统缓存
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /f >nul 2>&1
:: 还原系统内核分页
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /f >nul 2>&1
:: 还原文件管理系统缓存
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "IoPageLockLimit" /f >nul 2>&1
:: 还原Windows预读
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /f >nul 2>&1
:: 还原VHD启动设置
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FsDepends\Parameters" /v "VirtualDiskExpandOnMount" /f >nul 2>&1
:: 还原系统自动调试
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /v "Auto" /f >nul 2>&1
:: 还原磁盘错误检查等待时间
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "AutoChkTimeOut" /f >nul 2>&1
:: 还原设备安装系统还原点
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Settings" /v "DisableSystemRestore" /f >nul 2>&1
:: 还原USB磁盘电源设置
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v "DisableOnSoftRemove" /f >nul 2>&1
:: 还原快速启动
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /f >nul 2>&1
:: 还原休眠
powercfg /h on >nul
:: 还原字体设置
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions" /v "MitigationOptions_FontBocking" /f >nul 2>&1
:: 还原微软拼音云计算
reg delete "HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS" /v "CloudCandidate" /f >nul 2>&1
:: 还原内容传递优化服务
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DownloadMode" /f >nul 2>&1
:: 还原SmartScreen筛选器
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /f >nul 2>&1
:: 还原安全中心报告
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Security Health\Platform" /v "Registered" /f >nul 2>&1
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows Security Health\State" /v "Disabled" /f >nul 2>&1
:: 还原Edge浏览器SmartScreen
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Edge" /v "SmartScreenEnabled" /f >nul 2>&1
:: 还原文件资源管理器SmartScreen
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /f >nul 2>&1
:: 还原Store应用SmartScreen
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /f >nul 2>&1
:: 还原UAC设置
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /f >nul 2>&1
:: 还原防火墙
netsh advfirewall set allprofiles state on >nul
:: 还原默认共享
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareWks" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareServer" /f >nul 2>&1
:: 还原远程协助
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /f >nul 2>&1
:: 还原硬件加速GPU计划
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v "HwSchMode" /f >nul 2>&1
:: 还原处理器性能和内存设置
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "IRQ8Priority" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "IRQ16Priority" /f >nul 2>&1
:: 还原Cortana性能
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /f >nul 2>&1
:: 还原广告ID
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /f >nul 2>&1
:: 还原应用启动跟踪
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /f >nul 2>&1
:: 还原搜索页面信息流
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /f >nul 2>&1
:: 还原高精度事件定时器
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hpet" /v "Start" /f >nul 2>&1
:: 还原Game Bar
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /f >nul 2>&1
:: 还原远程注册表修改
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg" /v "RemoteRegAccess" /f >nul 2>&1
:: 还原保留空间
DISM.exe /Online /Set-ReservedStorageState /State:Enabled >nul 2>&1
:: 还原上下文菜单延迟
reg delete "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /f >nul 2>&1
:: 还原蓝屏自动重启
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl" /v "AutoReboot" /f >nul 2>&1
:: 还原Installer detection
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableInstallerDetection" /f >nul 2>&1
:: 还原功能更新安全措施
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX" /v "IsConvergedUpdateStackEnabled" /f >nul 2>&1
:: 还原交付优化
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "SystemSettingsDownloadMode" /f >nul 2>&1
:: 还原客户体验改进计划
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /f >nul 2>&1
:: 还原遥测服务
sc config "DiagTrack" start= auto >nul
sc start "DiagTrack" >nul 2>&1
:: 还原错误报告
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /f >nul 2>&1
:: 还原语音激活
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsActivateWithVoice" /f >nul 2>&1
:: 还原位置服务
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /f >nul 2>&1
:: 还原搜索数据收集
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /f >nul 2>&1
:: 还原定向广告
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /f >nul 2>&1
:: 还原Wi-Fi感知
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\Local" /v "fBlockNonDomain" /f >nul 2>&1
:: 还原步骤记录器
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\ProblemReports" /v "DisableProblemReports" /f >nul 2>&1
:: 还原写入调试信息
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /v "DEFAULT" /f >nul 2>&1
:: 还原Windows欢迎体验
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableFirstRunAnimate" /f >nul 2>&1
:: 还原反馈频率
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /f >nul 2>&1
:: 还原诊断数据收集
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /f >nul 2>&1
:: 还原写作习惯跟踪
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Input\Settings" /v "Inking&TypingPersonalization" /f >nul 2>&1
:: 还原设置应用建议
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /f >nul 2>&1
:: 还原Bing搜索结果
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /f >nul 2>&1
:: 还原搜索历史
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SearchSettings" /v "IsDeviceSearchHistoryEnabled" /f >nul 2>&1
:: 还原赞助商应用安装
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableThirdPartySuggestions" /f >nul 2>&1
:: 还原自动连接热点
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\Local" /v "fBlockNonDomain" /f >nul 2>&1
:: 还原输入数据个性化
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Personalization\Settings" /v "RestrictImplicitTextCollection" /f >nul 2>&1
:: 还原键入见解
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Input\Settings" /v "EnableTypingInsights" /f >nul 2>&1
:: 还原预安装应用
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "DisablePreInstalledApps" /f >nul 2>&1
:: 还原.NET遥测
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DisableNetFrameworkTelemetry" /f >nul 2>&1
:: 还原PowerShell遥测
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell" /v "EnablePowerShellTelemetry" /f >nul 2>&1
:: 还原自动安装推荐的应用程序
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /f >nul 2>&1
:: 还原大版本更新
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade" /f >nul 2>&1
:: 还原恶意软件删除工具
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ExcludeWUDriversInQualityUpdate" /f >nul 2>&1
:: 还原商店应用自动更新
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /f >nul 2>&1
:: 还原地图自动更新
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /f >nul 2>&1
:: 还原IP助手服务
sc config "iphlpsvc" start= auto >nul
sc start "iphlpsvc" >nul 2>&1
:: 还原SMS路由器服务
sc config "SmsRouter" start= auto >nul
sc start "SmsRouter" >nul 2>&1
:: 还原Shell硬件检测
sc config "ShellHWDetection" start= auto >nul
sc start "ShellHWDetection" >nul 2>&1
:: 还原任务计划服务
sc config "Schedule" start= auto >nul
sc start "Schedule" >nul 2>&1
:: 还原Windows事件收集服务
sc config "Wecsvc" start= auto >nul
sc start "Wecsvc" >nul 2>&1
:: 还原诊断中心收集器
sc config "diagnosticshub.standardcollector.service" start= auto >nul
sc start "diagnosticshub.standardcollector.service" >nul 2>&1
:: 还原右键菜单
reg add "HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\Compatibility" /ve /t REG_SZ /d "{1d27f844-3a1f-4410-85ac-14651078412d}" /f
reg add "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\EPP" /ve /t REG_SZ /d "{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
reg add "HKEY_CLASSES_ROOT\.contact\ShellNew" /ve /t REG_SZ /d "联系人" /f
reg add "HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /ve /t REG_SZ /d "" /f
reg add "HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\{B327765E-D724-4347-8B16-78AE18552FC3}" /ve /t REG_SZ /d "" /f
reg add "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d "" /f
reg add "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Offline Files" /ve /t REG_SZ /d "" /f
reg delete "HKEY_CLASSES_ROOT\Folder\shell\pintohome" /f >nul 2>&1
reg add "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\WorkFolders" /ve /t REG_SZ /d "" /f
reg add "HKEY_CLASSES_ROOT\SystemFileAssociations\.3mf\Shell\3D Edit" /ve /t REG_SZ /d "在画图3D中编辑" /f
reg add "HKEY_CLASSES_ROOT\SystemFileAssociations\.3mf\Shell\3D Edit\command" /ve /t REG_SZ /d "mspaint.exe \"%%1\"" /f
reg add "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Library Location" /ve /t REG_SZ /d "" /f
:: 恢复更新
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "FlightSettingsMaxPauseDays" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesStartTime" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseFeatureUpdatesEndTime" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesStartTime" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseQualityUpdatesEndTime" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesStartTime" /f >nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "PauseUpdatesExpiryTime" /f >nul