设为首页收藏本站每日签到

深圳网吧联盟论坛

 找回密码
 立即加入本站

QQ登录

只需一步,快速开始

搜索
查看: 324|回复: 2

[教程] win7 网吧优化bat

[复制链接]
  • TA的每日心情
    郁闷
    2017-3-25 14:14
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2017-3-25 14:37:44 | 显示全部楼层 |阅读模式
    @echo off
    SetLocal EnableDelayedExpansion
    rem bcdedit /set BOOTUX basic
    bcdedit /set BOOTUX standard

    rem 1禁用系统脱机文件
    IF 1==1 (
    sc config CscService start= DISABLED
    )ELSE (
    sc config CscService start= AUTO
    )

    rem  2禁用休眠模式
    IF 1==1 (
    %SYSTEMROOT%\System32\powercfg.exe -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
    powercfg -change -monitor-timeout-ac 0
    powercfg -change -monitor-timeout-dc 0
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 0
    powercfg -change -standby-timeout-dc 0
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive a1841308-3541-4fab-bc81-f71556f20b4a
    powercfg -change -monitor-timeout-ac 0
    powercfg -change -monitor-timeout-dc 0
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 0
    powercfg -change -standby-timeout-dc 0
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
    powercfg -change -monitor-timeout-ac 0
    powercfg -change -monitor-timeout-dc 0
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 0
    powercfg -change -standby-timeout-dc 0
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
    ) ELSE (
    %SYSTEMROOT%\System32\powercfg.exe -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
    powercfg -change -monitor-timeout-ac 30
    powercfg -change -monitor-timeout-dc 30
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 60
    powercfg -change -standby-timeout-dc 60
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive a1841308-3541-4fab-bc81-f71556f20b4a
    powercfg -change -monitor-timeout-ac 30
    powercfg -change -monitor-timeout-dc 30
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 60
    powercfg -change -standby-timeout-dc 60
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
    powercfg -change -monitor-timeout-ac 30
    powercfg -change -monitor-timeout-dc 30
    powercfg -change -disk-timeout-ac 0
    powercfg -change -disk-timeout-dc 0
    powercfg -change -standby-timeout-ac 60
    powercfg -change -standby-timeout-dc 60
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 0
    powercfg -h OFF
    %SYSTEMROOT%\System32\powercfg.exe -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
    )

    rem  3禁用windows程序自动升级
    IF 1==1 (
    sc config wuauserv start= DEMAND
    ) ELSE (
    sc config wuauserv start= AUTO
    )

    rem  4禁用任务计划
    IF 1==1 (
    chcp 437
    schtasks /change /disable /tn  "\MicROSoft\Windows\Application Experience\AitAgent"
    schtasks /change /disable /tn  "\Microsoft\Windows\Autochk\Proxy"
    schtasks /change /disable /tn  "\Microsoft\Windows\Bluetooth\UninstallDeviceTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
    schtasks /change /disable /tn  "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
    schtasks /change /disable /tn  "\Microsoft\Windows\Defrag\ScheduledDefrag"
    schtasks /change /disable /tn  "\Microsoft\Windows\Diagnosis\Scheduled"
    schtasks /change /disable /tn  "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
    schtasks /change /disable /tn  "\Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
    schtasks /change /disable /tn  "\Microsoft\Windows\Registry\RegIdleBackup"
    schtasks /change /disable /tn  "\Microsoft\Windows\Shell\WindowsParentalControls"
    schtasks /change /disable /tn  "\Microsoft\Windows\Shell\WindowsParentalControlsMigration"
    schtasks /change /disable /tn  "\Microsoft\Windows\SystemRestore\SR"
    schtasks /change /disable /tn  "\Microsoft\Windows\Windows Media Sharing\UpdateLibrary"
    schtasks /change /disable /tn  "\Microsoft\Windows\WindowsBackup\ConfigNotification"
    schtasks /change /disable /tn  "\Microsoft\Windows Defender\MP Scheduled Scan"
    schtasks /change /disable /tn  "\Microsoft\Windows Defender\MpIdleTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\RAC\RacTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Maintenance\WinSAT"
    schtasks /change /disable /tn  "\Microsoft\Windows\Application Experience\programDataUpdater"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\ActivateWindowsSearch"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\ConfigureInternetTimeService"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\DispatchRecoveryTasks"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\ehDRMInit"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\InstallPlayReady"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\mcupdate"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\OCURActivate"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\OCURDiscovery"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PBDADiscovery"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PBDADiscoveryW1"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PBDADiscoveryW2"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PeriodicScanRetry"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PvrRecoveryTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\PvrScheduleTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\RecordingRestart"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\RegisterSearch"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\ReindexSearchRoot"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\StartRecording"
    schtasks /change /disable /tn  "\Microsoft\Windows\Media Center\UpdateRecordPath"
    schtasks /change /disable /tn  "\Microsoft\Windows\MemoryDiagnostic\CorruptionDetector"
    schtasks /change /disable /tn  "\Microsoft\Windows\MemoryDiagnostic\DecompressionFailureDetector"
    schtasks /change /disable /tn  "\Microsoft\Windows\MobilePC\HotStart"
    schtasks /change /disable /tn  "\Microsoft\Windows\MUI\LPRemove"
    schtasks /change /disable /tn  "\Microsoft\Windows\Multimedia\SystemSoundsService"
    schtasks /change /disable /tn  "\Microsoft\Windows\NetTrace\GatherNetworkInfo"
    schtasks /change /disable /tn  "\Microsoft\Windows\Ras\MobilityManager"
    schtasks /change /disable /tn  "\Microsoft\Windows\SideShow\GadgetManager"
    schtasks /change /disable /tn  "\Microsoft\Windows\UPnP\UPnPHostConfig"
    schtasks /change /disable /tn  "\Microsoft\Windows\WDI\ResolutionHost"
    schtasks /change /disable /tn  "\Microsoft\Windows\Windows Error Reporting\QueueReporting"
    schtasks /change /disable /tn  "\Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange"
    schtasks /change /disable /tn  "\Microsoft\Windows\CertificateServicesClient\SystemTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\CertificateServicesClient\UserTask"
    schtasks /change /disable /tn  "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask"
    schtasks /change /disable /tn  "Adobe Flash Player Updater"
    ) ELSE (
    chcp 437
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Application Experience\AitAgent"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Autochk\Proxy"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Bluetooth\UninstallDeviceTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Defrag\ScheduledDefrag"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Diagnosis\Scheduled"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Registry\RegIdleBackup"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Shell\WindowsParentalControls"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Shell\WindowsParentalControlsMigration"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\SystemRestore\SR"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Windows Media Sharing\UpdateLibrary"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\WindowsBackup\ConfigNotification"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows Defender\MP Scheduled Scan"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows Defender\MpIdleTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\RAC\RacTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Maintenance\WinSAT"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Application Experience\programDataUpdater"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\ActivateWindowsSearch"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\ConfigureInternetTimeService"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\DispatchRecoveryTasks"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\ehDRMInit"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\InstallPlayReady"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\mcupdate"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\OCURActivate"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\OCURDiscovery"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PBDADiscovery"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PBDADiscoveryW1"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PBDADiscoveryW2"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PeriodicScanRetry"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PvrRecoveryTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\PvrScheduleTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\RecordingRestart"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\RegisterSearch"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\ReindexSearchRoot"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\StartRecording"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Media Center\UpdateRecordPath"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\MemoryDiagnostic\CorruptionDetector"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\MemoryDiagnostic\DecompressionFailureDetector"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\MobilePC\HotStart"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\MUI\LPRemove"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Multimedia\SystemSoundsService"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\NetTrace\GatherNetworkInfo"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Ras\MobilityManager"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\SideShow\GadgetManager"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\UPnP\UPnPHostConfig"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\WDI\ResolutionHost"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Windows Error Reporting\QueueReporting"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\CertificateServicesClient\SystemTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\CertificateServicesClient\UserTask"
    schtasks /change /ENABLE /tn  "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask"
    schtasks /change /ENABLE /tn  "Adobe Flash Player Updater"
    )

    rem  5关闭系统启动时的磁盘整理
    IF 1==1 (
    reg add "HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "N" /f
    ) ELSE (
    REG DELETE "HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /f
    )

    rem  6禁用关机清除页面文件
    IF 1==1 (
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /t REG_DWORD  /d 00000000 /f
    ) ELSE (
    REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /f
    )

    rem  7关闭自动整理磁盘碎片
    IF 1==1 (
    sc config defragsvc start= DISABLED
    ) ELSE (
    sc config defragsvc start= AUTO
    )

    rem  8禁用帐户密码更改
    IF 1==1 (
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v "DisablePasswordChange" /t REG_DWORD  /d 00000001 /f
    ) ELSE (
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v "DisablePasswordChange" /t REG_DWORD  /d 00000000 /f
    )

    rem  9禁用系统还原
    IF 1==1 (
    sc config sdrsvc start= DISABLED
    ) ELSE (
    sc config sdrsvc start= AUTO
    )

    rem  10禁用上次访问时间
    SHIFT
    IF 1==1 (
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "NtfsDisableLastAccessUpdate" /t REG_DWORD  /d 00000001 /f
    ) ELSE (
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "NtfsDisableLastAccessUpdate" /t REG_DWORD  /d 00000001 /f
    )

    rem  11禁用超级预读取
    SHIFT
    IF 1==1 (
    sc config SysMain start= DISABLED
    ) ELSE (
    sc config SysMain start= AUTO
    )

    rem  12禁用程序崩溃时保存的运行数据
    SHIFT
    IF 1==1 (
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "CrashDumpEnabled" /t REG_DWORD  /d 00000000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "LogEvent" /t REG_DWORD  /d 00000000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "SendAlert" /t REG_DWORD  /d 00000000 /f
    ) ELSE (
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "CrashDumpEnabled" /t REG_DWORD  /d 00000002 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "LogEvent" /t REG_DWORD  /d 00000002 /f         
    REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "SendAlert" /f
    )

    rem  13禁用Windows索引服务
    SHIFT
    IF 1==1 (
    sc config WSearch start= DISABLED
    ) ELSE (
    sc config WSearch start= AUTO
    )

    rem  14事件日志大小调至64k
    SHIFT
    IF 1==1 (
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application" /v "MaxSize" /t REG_DWORD  /d 00010000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Security" /v "MaxSize" /t REG_DWORD  /d 00010000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\System" /v "MaxSize" /t REG_DWORD  /d 00010000 /f
    ) ELSE (
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application" /v "MaxSize" /t REG_DWORD  /d 20971520 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\System" /v "MaxSize" /t REG_DWORD  /d 20971520 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Security" /v "MaxSize" /t REG_DWORD  /d 20971520 /f
    )

    rem  15禁用反间谍软件
    SHIFT
    IF 1==1 (
    sc config WinDefend start= DISABLED
    ) ELSE (
    sc config WinDefend start= AUTO
    )

    rem  16 关闭UAC通知
    SHIFT
    IF 1==1 (
    reg add "HKLM\SOFTWARE\Microsoft\Security Center" /v "UacDisableNotify" /t REG_DWORD  /d 00000001 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD  /d 00000000 /f
    ) ELSE (
    REG DELETE "HKLM\SOFTWARE\Microsoft\Security Center" /v "UacDisableNotify" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD  /d 0000001 /f
    )

    rem  17禁用操作中心提示
    SHIFT
    IF 1==1 (
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAHealth" /t REG_DWORD  /d 00000001 /f
    ) ELSE (
    REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAHealth" /f
    )

    rem  18减少IE临时文件
    SHIFT
    IF 1==1 (
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 00000190 /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 00000190 /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 00000190 /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 00000190 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths" /v "Paths" /t REG_DWORD  /d 00000004 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path1" /v "CacheLimit" /t REG_DWORD  /d 00000064 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path2" /v "CacheLimit" /t REG_DWORD  /d 00000064 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path3" /v "CacheLimit" /t REG_DWORD  /d 00000064 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4" /v "CacheLimit" /t REG_DWORD  /d 00000064 /f
    ) ELSE (
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 80011 /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 80011 /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 51200 /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content" /v "CacheLimit" /t REG_DWORD  /d 51200 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths" /v "Paths" /t REG_DWORD  /d 04000000 /f
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path1" /v "CacheLimit" /f         
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path2" /v "CacheLimit" /f  
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path3" /v "CacheLimit" /f
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4" /v "CacheLimit" /f
    )

    rem  默认执行-------------------------------------------------------------------------------------------------------------------------------------------

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 00000000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 00000000 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableBootTrace" /t REG_DWORD /d 00000000 /f

    rem  开启离开模式
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "AwayModeEnabled" /t REG_DWORD  /d 00000001 /f

    rem  4Microsoft .NET Framework调为手动
    sc stop clr_optimization_v2.0.50727_32
    sc config clr_optimization_v2.0.50727_32 start= DEMAND
    sc stop clr_optimization_v2.0.50727_64
    sc config clr_optimization_v2.0.50727_64 start= DEMAND
    rem  ----------------------------------------------------------------------------------------------------------------------------------------------------

    EndLocal

  • TA的每日心情
    郁闷
    2017-3-25 14:14
  • 签到天数: 2 天

    [LV.1]初来乍到

     楼主| 发表于 2017-3-25 14:38:03 | 显示全部楼层
    回复本帖可得论坛下载币!回复本帖可得论坛下载币!
  • TA的每日心情
    郁闷
    2017-3-25 14:14
  • 签到天数: 2 天

    [LV.1]初来乍到

     楼主| 发表于 2017-3-25 14:38:21 | 显示全部楼层

    回复本帖可得论坛下载币!回复本帖可得论坛下载币!
    回复本帖可得论坛下载币!回复本帖可得论坛下载币!
    您需要登录后才可以回帖 登录 | 立即加入本站

    本版积分规则

    QQ|小黑屋|手机版|无图版|深圳网吧联盟 ( 粤ICP备06037878号-1  

    GMT+8, 2017-9-24 03:49 , Processed in 0.115776 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表