使用說明
以管理員身份運行;
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 完成
您的評論需要經過審核才能顯示
有用
有用
有用