• Windows 10 系统优化脚本大全


    关闭Windows Defender

       @ECHO off
    ECHO 关闭Windows Defender
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
    echo 完成
    

    关闭Windows防火墙

        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 完成
    

    关闭用户账户控制(UAC)

        reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f
    echo 完成
    

    关闭Smartscreen应用筛选器

        reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer" /v "SmartScreenEnabled" /d off /t REG_SZ /f
    echo 完成
    

    启动电源计划“高性能”

        powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
    echo 完成
    

    关闭显示器前等待时间: 从不

        powercfg -change -monitor-timeout-ac 0
    powercfg -change -monitor-timeout-dc 0
    echo 完成
    

    关闭休眠

        powercfg -h off
    echo 完成
    

    延迟启动 Superfetch 服务

        sc config "SysMain" start= delayed-auto
    echo 完成
    

    禁止运行计算机自动维护计划

        reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsScheduledDiagnostics" /v "EnabledExecution" /d 0 /t REG_DWORD /f
    echo 完成
    

    关闭客户体验改善计划

        reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftSQMClientWindows" /v "CEIPEnable" /d 0 /t REG_DWORD /f
    echo 完成
    

    关闭自动播放

        reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
    echo 完成
    

    关机时强制杀后台不等待

        reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f
    echo 完成
    

    关闭远程协助

        reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTTerminal Services" /v "fAllowToGetHelp" /d 0 /t REG_dword /f
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTTerminal Services" /v "fAllowUnsolicited" /d 0 /t REG_dword /f
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTTerminal Services" /v "fDenyTSConnections" /d 1 /t REG_dword /f
    echo 完成
    

    任务栏日期显示“星期几”

        reg add "HKEY_CURRENT_USERControl PanelInternational" /v "sLongDate" /d "yyyy'年'M'月'd'日', dddd" /t REG_SZ /f
    reg add "HKEY_CURRENT_USERControl PanelInternational" /v "sShortDate" /d "yyyy/M/d/ddd" /t REG_SZ /f
    echo 完成
    

    关闭磁盘碎片整理计划

        SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsDefragScheduledDefrag"
    echo 完成
    

    禁用疑难解答和系统诊断服务

        sc stop WdiSystemHost
    sc stop WdiServiceHost
    sc stop DPS
    sc config DPS start= disabled
    sc config WdiServiceHost start= disabled
    sc config WdiSystemHost start= disabled
    echo 完成
    

    启用防火墙Windows Firewall服务(并非启用防火墙)

        ECHO 启用防火墙Windows Firewall服务(并非启用防火墙)
    sc config MpsSvc start= auto 
    net start MpsSvc
    echo 完成
    

    删除回收站右键固定到开始屏幕

        ECHO 删除回收站右键固定到开始屏幕
    reg delete "HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellexContextMenuHandlersPintoStartScreen" /f
    echo 完成
    

    关闭Windows10 要使用本计算机,用户必需输入用户名和密码

    ECHO 关闭Windows10 要使用本计算机,用户必需输入用户名和密码
    reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /f /v AutoAdminLogon /d 1
    reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /f /v DefaultUserName /d Administrator
    reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /f /v DefaultDomainName /d My pc
    reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /f /v DefaultPassword /d 1234
    echo 完成
    

    关闭家庭组

    ECHO 关闭家庭组
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsHomeGroup" /v "DisableHomeGroup" /d 1 /t REG_DWORD /f
    echo 完成
    

    隐藏资源管理器导航窗格家庭组和网络

    ECHO 隐藏资源管理器导航窗格家庭组和网络
    reg add "HKEY_CLASSES_ROOTCLSID{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}ShellFolder" /v Attributes /d 2962489612 /t REG_DWORD /f
    reg add "HKEY_CLASSES_ROOTCLSID{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}ShellFolder" /v Attributes /d 2962489444 /t REG_DWORD /f
    echo 完成
    

    关闭开机画面

    ECHO 关闭开机画面
    bcdedit /set quietboot on
    echo 完成
    

    禁用"最近使用的项目“

    ECHO 禁用"最近使用的项目"
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "Start_TrackProgs" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "Start_TrackDocs" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareClassesLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v "IconStreams" /t REG_BINARY /f
    reg add "HKEY_CURRENT_USERSoftwareClassesLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v "PastIconsStream" /t REG_BINARY /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v "NoRecentDocsHistory" /d 1 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v "NoInstrumentation" /d 1 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsExplorer" /v "DisableSearchBoxSuggestions" /d 1 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsExplorer" /v "DisableSearchHistory" /d 1 /t REG_DWORD /f
    echo 完成
    

    开启“快速启动”

    ECHO 开启“快速启动”
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsSystem" /v "HiberbootEnabled" /d 1 /t REG_DWORD /f
    echo 完成
    

    关闭程序兼容性助手

    ECHO 关闭程序兼容性助手
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsAppCompat" /v "DisablePCA" /d 1 /t REG_DWORD /f
    echo 完成
    

    关闭不必要的视觉动画效果

    ECHO 关闭不必要的视觉动画效果
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsDWM" /v "DisallowAnimations" /d 1 /t REG_dword /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v "TurnOffSPIAnimations" /d 1 /t REG_dword /f
    reg add "HKEY_CURRENT_USERControl PanelDesktopWindowMetrics" /v "MinAnimate" /d 0 /t REG_SZ /f
    echo 完成
    

    关闭不需要的视觉效果

    ECHO 关闭不需要的视觉效果
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects" /v "VisualFXSetting" /d 3 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsDWM" /v "AlwaysHibernateThumbnails" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERControl PanelDesktop" /v "FontSmoothing" /d 2 /t REG_SZ /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsDWM" /v "EnableAeroPeek" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "TaskbarAnimations" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERControl PanelDesktop" /v "DragFullWindows" /d 1 /t REG_SZ /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "ListviewAlphaSelect" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "IconsOnly" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v "ListviewShadow" /d 0 /t REG_DWORD /f
    reg add "HKEY_CURRENT_USERControl PanelDesktopWindowMetrics" /v "MinAnimate" /d 0 /t REG_SZ /f
    reg add "HKEY_CURRENT_USERControl PanelDesktop" /v "UserPreferencesMask" /d "9012038010000000" /t REG_BINARY /f
    echo 完成
    

    IE11开启企业模式

    ECHO IE11开启企业模式
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftInternet ExplorerMainEnterpriseMode" /v SiteList /d "HKCUSoftwarepoliciesMicrosoftInternet ExplorerMainEnterpriseMode" /t reg_sz /f
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftInternet ExplorerMainEnterpriseMode" /v Enable /d "" /t reg_sz /f
    echo 完成
    

    开始屏幕自动显示"应用"视图

    ECHO 开始屏幕自动显示"应用"视图
    reg add "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsExplorer" /v ShowAppsViewOnStart /d 1 /t REG_DWORD /f
    echo 完成
    

    清除右键多余菜单

    ECHO 清除右键多余菜单
    regsvr32 /u /s igfxpph.dll
    reg delete HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers /f
    reg add HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers
    ew /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}
    reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v HotKeysCmds /f
    reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IgfxTray /f
    echo 完成
    

    打开IE请勿追踪功能(Do Not Track)

        ECHO 打开IE请勿追踪功能(Do Not Track)
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain" /v "DoNotTrack" /d "1" /t REG_DWORD /f
    taskkill /f /im iexplore.exe
    ECHO 完成
    

    设置窗口超窄边框

        ECHO 设置窗口超窄边框
    reg add "HKEY_CURRENT_USERControl PanelDesktopWindowMetrics" /v "PaddedBorderWidth" /d 0 /t REG_SZ /f
    echo 完成
    

    禁止一联网就打开浏览

    ECHO 禁止一联网就打开浏览器
    reg add "HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsNetworkConnectivityStatusIndicator" /v "NoActiveProbe" /d 1 /t REG_DWORD /f
    echo 完成
    

    禁用任务计划程序自启项

    ECHO 禁用任务计划程序自启项
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsWindows Error ReportingQueueReporting"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsSkyDriveRoutine Maintenance Task"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsSkyDriveIdle Sync Maintenance Task"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsDiskDiagnosticMicrosoft-Windows-DiskDiagnosticResolver"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsDiskDiagnosticMicrosoft-Windows-DiskDiagnosticDataCollector"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsDiagnosisScheduled"
    SCHTASKS /Change /DISABLE /TN "MicrosoftWindowsDefragScheduledDefrag"
    SCHTASKS /Change /DISABLE /TN "GoogleUpdateTaskMachineUA"
    SCHTASKS /Change /DISABLE /TN "GoogleUpdateTaskMachineCore"
    SCHTASKS /Change /DISABLE /TN "MicrosoftOfficeOfficeTelemetryAgentFallBack"
    SCHTASKS /Change /DISABLE /TN "MicrosoftOfficeOfficeTelemetryAgentLogOn"
    SCHTASKS /Change /DISABLE /TN "AdobeAAMUpdater-1.0-%computername%-%username%"
    SCHTASKS /Change /DISABLE /TN "MicrosoftOfficeOffice 15 Subscription Heartbeat"
    echo 完成
    

    去除快捷方式小箭头和后缀

    ECHO 去除快捷方式小箭头和后缀
    reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer" /v link /d "00000000" /t REG_BINARY /f
    del "%userprofile%AppDataLocaliconcache.db" /f /q
    echo 完成
    

    去除UAC小盾牌

        ECHO 去除UAC小盾牌
    reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
    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 完成
    

    Win10去掉桌面箭头

    reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /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
    pause
    

    Win10恢复桌面箭头

    reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /f
    taskkill /f /im explorer.exe
    attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
    del "%userprofile%AppDataLocaliconcache.db" /f /q
    start explorer
    pause
  • 相关阅读:
    MySQL 5.6 Reference Manual-14.1 Introduction to InnoDB
    CSS3 Media Queries 详细介绍与使用方法
    jQuery圆形统计图实战开发
    PHP+Mysql+jQuery实现中国地图区域数据统计(raphael.js)
    Javascript实战开发:教你使用raphael.js绘制中国地图
    WEB开发中常用的正则表达式集合
    互联网技术开发者必备的调试工具和脚本
    CSS3实战开发: 纯CSS实现图片过滤分类显示特效
    CSS3实战开发:使用CSS3实现photoshop的过滤效果
    :link,:visited,:focus,:hover,:active详解
  • 原文地址:https://www.cnblogs.com/MeiCheng/p/10463408.html
Copyright © 2020-2023  润新知