win10批处理优化文件是一款WIN10批处理文件快速优化系统设置bat工具,优化批处理调用了组策略,可打开组策略gpedit.msc找到对应项目改回去即可, 或者运行Windows 10 SettingTool.bat选择对应项目自动修改。
使用说明
以管理员身份运行;
1、菜单界面输入hide进入隐藏菜单项;
2、如果你尝试自行手动恢复所做更改时提示“某些设置由系统管理员进行管理”,原因是优化批处理调用了组策略,可打开组策略gpedit.msc找到对应项目(有点难找,肯定有)改回去即可,或者运行Windows 10 SettingTool.bat选择对应项目自动恢复
其他优化
分享一些WIN10实用的批处理文件源码,同学们可以新建一个记事本,然后将源码粘贴进去
文件后缀名改为 ".bat"即可,或者直接下载Bat即可,部分功能需要管理员身份运行
@ECHO off
ECHO WINDOWS图片查看器设为默认看图软件
REG ADD "HKCR.bmp" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.gif" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.ico" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.jpeg" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.jpg" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.png" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
REG ADD "HKCR.tiff" /v "" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
ECHO 禁用文件下载时的安全警告
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesAssociations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 1808 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesAttachments" /v "SaveZoneInformation" /t REG_DWORD /d 1 /f
ECHO 禁用自动更新下载的地图
reg add "HKLMSoftwarePoliciesMicrosoftWindowsMaps" /v "AutoDownloadAndUpdateMapData" /t "REG_DWORD" /d 0 /f
ECHO 桌面显示我的电脑、网络、用户
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /d 0 /t REG_DWORD /f
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /d 0 /t REG_DWORD /f
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel" /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /d 0 /t REG_DWORD /f
reg add "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /ve /t REG_SZ /d 我的电脑 /f
echo 完成
ECHO 资源管理器打开为我的电脑
reg add "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced" /v LaunchTo /d 1 /t REG_DWORD /f
echo 完成
ECHO 设置记事本
reg add "HKEY_CURRENT_USERSOFTWAREMicrosoftNotepad" /v fwrap /d 1 /t REG_DWORD /f
reg add "HKEY_CURRENT_USERSOFTWAREMicrosoftNotepad" /v StatusBar /d 1 /t REG_DWORD /f
echo 完成
ECHO 关闭Windows Defender
reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
echo 完成
ECHO 从右键上下文菜单中删除“使用Windows Defender扫描”(仅在WD被禁用时有效)
reg delete "HKEY_CLASSES_ROOT*shellexContextMenuHandlersEPP" /f > NUL 2>&1
reg delete "HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlersEPP" /f > NUL 2>&1
reg delete "HKEY_CLASSES_ROOTDriveshellexContextMenuHandlersEPP" /f > NUL 2>&1
ECHO 禁用恶意软件删除工具的Windows更新
reg add "HKLMSoftwarePoliciesMicrosoftMRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
ECHO 关闭Windows防火墙
reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsFirewallDomainProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsFirewallPrivateProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsFirewallPublicProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
sc stop MpsSvc MpsSvc & sc config MpsSvc start=disabled
echo 完成
ECHO 禁用驱动程序签名
reg add "HKLMSoftwareMicrosoftDriver Signing" /v "Policy" /t REG_BINARY /d "01" /f
ECHO 关闭用户账户控制(UAC)
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f
echo 完成
ECHO 关闭Smartscreen应用筛选器
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer" /v "SmartScreenEnabled" /d off /t REG_SZ /f
echo 完成
ECHO 关机时强制杀后台不等待
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f
echo 完成
ECHO 启用防火墙Windows Firewall服务(并非启用防火墙)
sc config MpsSvc start= auto
net start MpsSvc
echo 完成
ECHO 关闭远程协助
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlRemote Assistance" /v "fAllowToGetHelp" /d 0 /t REG_dword /f
echo 完成
ECHO 清除右键多余菜单
regsvr32 /u /s igfxpph.dll
reg delete HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers /f
reg add HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersnew /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v HotKeysCmds /f
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IgfxTray /f
echo 完成
ECHO 去除快捷方式后缀
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer" /v link /d "00000000" /t REG_BINARY /f
del "%userprofile%AppDataLocaliconcache.db" /f /q
echo 完成
ECHO 禁止一联网就打开浏览器
reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsNetworkConnectivityStatusIndicator" /v "NoActiveProbe" /d 1 /t REG_DWORD /f
echo 完成
ECHO 去除UAC小盾牌
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 77 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
echo 完成
ECHO 卸载OneDrive
taskkill /f /im OneDrive.exe
taskkill /f /im explorer.exe
if exist %SYSTEMROOT%SysWOW64OneDriveSetup.exe (
%SYSTEMROOT%SysWOW64OneDriveSetup.exe /uninstall
) else ( //如果不是
%SYSTEMROOT%System32OneDriveSetup.exe /uninstall
)
rd /s /q "%USERPROFILE%OneDrive"
rd /s /q "%LOCALAPPDATA%MicrosoftOneDrive"
rd /s /q "%PROGRAMDATA%Microsoft OneDrive"
reg delete "HKEY_CLASSES_ROOTCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
reg delete "HKEY_CLASSES_ROOTWow6432NodeCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
start explorer
echo 完成