:: 还原任务栏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
:: 还原右键菜单
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