Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo off
- color 0a
- mode con:cols=220 lines=54
- DATE /T
- Echo. ; ___________________________
- Echo. ; !!! Tweaking Registry !!!
- Echo. ; ___________________________
- Echo. ; ( RUN AS ADMINISTRATOR! )
- Echo. ; ________________________________________
- Echo. ; Enable MSI-Mode for GPU-Processor!
- Echo. ; ----------------------------------------
- for /f %%i in ('wmic path win32_VideoController get PNPDeviceID ^| findstr /L "VEN_"') do REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\%%i\Device Parameters\Interrupt Management\MessageSignaledInterruptProperties" /v MSISupported /t REG_DWORD /d 00000001 /f
- Echo. ; ________________________________________
- Echo. ; SSD Tweaks and fastboot
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 00000000 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnableSuperfetch /t REG_DWORD /d 00000000 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnableBoottrace /t REG_DWORD /d 00000000 /f
- Echo. ; ________________________________________
- Echo. ; Gaming Tweak - Network Throttling Index
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v NetworkThrottlingIndex /t REG_DWORD /d 4294967295 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v SystemResponsiveness /t REG_DWORD /d 00000000 /f
- Echo. ; ________________________________________
- Echo. ; CountOperations
- Echo. ; ----------------------------------------
- ::This parameter allows you to turn off system and process level I/O counters. This counter affects system and disk counting of disk and network I/O requests.
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\I/O System" /v CountOperations /t REG_DWORD /d 00000000 /f
- Echo. ; ________________________________________
- Echo. ; Host Resolution Priority
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" /v LocalPriority /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" /v HostsPriority /t REG_DWORD /d 00000005 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" /v DnsPriority /t REG_DWORD /d 00000006 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" /v NetbtPriority /t REG_DWORD /d 00000007 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\ServiceProvider" /v LocalPriority /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\ServiceProvider" /v HostsPriority /t REG_DWORD /d 00000005 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\ServiceProvider" /v DnsPriority /t REG_DWORD /d 00000006 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\ServiceProvider" /v NetbtPriority /t REG_DWORD /d 00000007 /f
- Echo. ; ________________________________________
- Echo. ; WorkerThreads
- Echo. ; ----------------------------------------
- ::Increases the number of threads in the Delayed Work Queue.
- ::Threads in this queue have a lower priority and therefore a higher latency because they must compete with other processing for CPU time.
- ::Increasing this value may give better performance in some situations.
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Executive" /v AdditionalDelayedWorkerThreads /t REG_DWORD /d 00000000 /f
- :: Optimized For I7 (try lower settings for lower CPUs example 2!)
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Executive" /v AdditionalCriticalWorkerThreads /t REG_DWORD /d 00000006 /f
- Echo. ; ________________________________________
- Echo. ; Port Allocation
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 00065534 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 00000030 /f
- Echo. ; ________________________________________
- Echo. ; UDPIP Parameters
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v NegativeCacheTime /t REG_DWORD /d 00000000 /f
- ::If you do not want negative responses to be cached at all, set the value of NegativeCacheTime to 0.
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v NegativeSOACacheTime /t REG_DWORD /d 00000000 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v NetFailureCacheTime /t REG_DWORD /d 00000000 /f
- ::all succeeding name queries fail instantly instead of timing out.
- Echo. ; ________________________________________
- Echo. ; TCPIP Parameters
- Echo. ; ----------------------------------------
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters /v DefaultTTL /t REG_DWORD /d 00000030 /f
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters /v SynAttackProtect /t REG_DWORD /d 00000000 /f
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters /v TcpMaxDataRetransmissions /t REG_DWORD /d 00000002 /f
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v DisableLargeMTU /t REG_DWORD /d 00000000 /f
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v DisableTaskOffload /t REG_DWORD /d 00000000 /f
- ::TCP parameters that can be adjusted for high throughput
- ::On a link with high bandwidth-delay product (for example, satellite links), there may be a need to increase the window size to above 64 K.
- ::For that, you need to enable TCP Options as specified in RFC 1,323 by appropriately setting the following registry entry:
- ::To enable window sizes of greater than 65,535, this registry entry should be set to 1 (one).
- ::After this change has been made, the registry entry controlling TCPWindowSize can be set to values larger than 64 K (up to 1 GB).
- Echo. ; ________________________________________
- Echo. ; Window Scaling
- Echo. ; ----------------------------------------
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters /v Tcp1323Opts /t REG_DWORD /d 00000001 /f
- ::The default for a gigabit interface is set to approximately 65,535! 16,384 for a 100 Mbps link
- REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters /v TcpWindowSize /t REG_DWORD /d 00065535 /f
- Echo. ; ________________________________________
- Echo. ; Online Games - Tweak - !Nagle OFF!
- Echo. ; ----------------------------------------
- REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters /v TCPNoDelay /t REG_DWORD /d 0000001 /f
- REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters /v EnableICMPRedirect /t REG_DWORD /d 00000000 /f
- for /f %%i in ('wmic path win32_networkadapter get GUID ^| findstr "{"') do REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v TcpAckFrequency /t REG_DWORD /d 0000001 /f
- for /f %%i in ('wmic path win32_networkadapter get GUID ^| findstr "{"') do REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v TcpDelAckTicks /t REG_DWORD /d 0000000 /f
- for /f %%i in ('wmic path win32_networkadapter get GUID ^| findstr "{"') do REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v TCPNoDelay /t REG_DWORD /d 0000001 /f
- Echo. ; ________________________________________
- Echo. ; Gaming - Tweaks
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v Affinity /t REG_DWORD /d 00000000 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Background Only" /t REG_SZ /d False /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Clock Rate" /t REG_DWORD /d 00000100 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d 0000008 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d 00000008 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d High /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "SFIO Priority" /t REG_SZ /d High /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v Affinity /t REG_DWORD /d 00000000 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "Background Only" /t REG_SZ /d True /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "Clock Rate" /t REG_DWORD /d 00000100 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "GPU Priority" /t REG_DWORD /d 00000008 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "Priority" /t REG_DWORD /d 00000008 /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "Scheduling Category" /t REG_SZ /d High /f
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\DisplayPostProcessing" /v "SFIO Priority" /t REG_SZ /d High /f
- Echo. ; ________________________________________
- Echo. ; Black-Vipers-Windows-10-Services-Tweaked
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MapsBroker" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iphlpsvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ALG" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AppMgmt" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PeerDistSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CertPropSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\irmon" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MSiSCSI" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NaturalAuthentication" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netlogon" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcLocator" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RetailDemo" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SCPolicySvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMPTRAP" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\wcncsvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\wisvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WinRM" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WwanSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\XblAuthManager" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\XboxNetApiSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SessionEnv" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\UmRdpService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AJRouter" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BthHFSrv" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\bthserv" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\dmwappushsvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HvHost" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmickvpexchange" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmicguestinterface" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmicshutdown" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmicheartbeat" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmicvmsession" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmicrdv" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\IpxlatCfgSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SmsRouter" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CscService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SEMgrSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PhoneSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SensorDataService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SensrSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SensorService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ScDeviceEnum" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TabletInputService" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WFDSConSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FrameServer" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\icssvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\xbgm" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\XblGameSave" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\lfsvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NcdAutoSetup" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NfsClnt" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WMPNetworkSvc" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WlanSvc" /v Start /t REG_DWORD /d 00000004 /f
- Echo. ; ________________________________________
- Echo. ; Cortana Disabled
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 00000000 /f
- Echo. ; ________________________________________
- Echo. ; Disable DVR Game Bar Feature Win10 Only!
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowgameDVR /t REG_DWORD /d 00000000 /f
- Echo. ; ________________________________________
- Echo. ; Disable Timebroker reduce CPU usage
- Echo. ; ----------------------------------------
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TimeBroker" /v Start /t REG_DWORD /d 00000004 /f
- REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TimeBrokerSvc" /v Start /t REG_DWORD /d 00000004 /f
- Echo. ; ______________________________________________________________________________________________
- Echo. ; Tweaking Network - Offload Settings ( RSC=Off; PCF=Off; Chimney=Off, RSS=ON, TaskOffload=On )
- Echo. ; Current Network Settings
- Echo. ; ----------------------------------------------------------------------------------------------
- powershell.exe Get-NetOffloadGlobalSetting
- powershell.exe Set-NetOffloadGlobalSetting -ReceiveSegmentCoalescing Disabled -PacketCoalescingFilter Disabled -Chimney Disabled -ReceiveSideScaling Enabled -TaskOffload Enabled
- Echo. ; ________________________________________
- Echo. ; Optimized Network Settings
- Echo. ; ----------------------------------------
- powershell.exe Get-NetOffloadGlobalSetting
- powershell.exe Get-NetTCPSetting -SettingName "Internet"
- powershell.exe Set-NetTCPSetting -SettingName "Internet" -InitialRtoMs 2000
- Echo. ; ________________________________________
- Echo. ; Tweaking Network - Adv. Adapter Settings
- Echo. ; Current Adv. Adapter Settings
- Echo. ; ----------------------------------------
- powershell.exe Get-NetAdapterAdvancedProperty -Name "Ethernet"
- ::Interrupt Moderation
- ::Some network adapters are capable of moderating how frequently they interrupt the host processors to indicate network activity (or its completion).
- ::Some network adapters are also capable of making such decisions in an adaptive manner, taking into account network and host-processor load.
- ::Moderating interrupts can often result in reduction in CPU load on the host, but unless interrupt moderation is performed intelligently and adaptively,
- ::the CPU savings may come at the cost of increases in latency.
- Echo. ; ________________________________________
- Echo. ; Tweaking Performance Settings - Low Latency
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *FlowControl -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *InterruptModeration -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword ITR -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *LsoV2IPv4 -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *LsoV2IPv6 -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *PriorityVLANTag -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword AdaptiveIFS -RegistryValue 0
- ::Offload Capabilities
- ::Offloading tasks can help lower CPU usage on the server, improving overall system performance. The Microsoft TCP/IP transport can offload one or more of the following tasks to a network adapter that has the appropriate task-offload capabilities:
- ::Checksum tasks. The TCP/IP transport can offload the calculation and validation of IP and TCP checksums for sends and receives.
- ::IP security tasks. The TCP/IP transport can offload the calculation and validation of encrypted checksums for authentication headers (AH) and encapsulating security payloads (ESP). The TCP/IP transport can also offload the encryption and decryption of ESP payloads.
- ::Segmentation of large TCP packets. The TCP/IP transport supports large send offload (LSO). With LSO, the TCP/IP transport can offload the segmentation of large TCP packets.
- ::Stack offload. The entire network stack can be offloaded to a network adapter that has the appropriate capabilities.
- ::Enable Offload Features
- ::It is almost always beneficial to turn on network adapter offload features.
- ::In some instances, however, the network adapter may not be powerful enough to handle the offload capabilities at high throughput.
- ::For example, enabling LSO can lower the maximum sustainable throughput on some network adapters.
- ::However, if the reduced throughput is not expected to be a limitation, offload capabilities should be enabled even for such network adapters.
- ::Note that some network adapters require offload features for send and receive paths to be independently enabled.
- Echo. ; ________________________________________
- Echo. ; Enabling... Offload Settings
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *IPChecksumOffloadIPv4 -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *TCPChecksumOffloadIPv4 -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *TCPChecksumOffloadIPv6 -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *UDPChecksumOffloadIPv4 -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *UDPChecksumOffloadIPv6 -RegistryValue 3
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *PMARPOffload -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *PMNSOffload -RegistryValue 0
- Echo. ; ________________________________________
- Echo. ; Enabling... ReceiveSideScaling Settings
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *RSS -RegistryValue 1
- Echo. ; Trying... Highest RSSQueue Setting
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *NumRssQueues -RegistryValue 2
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *NumRssQueues -RegistryValue 4
- Echo. ; ________________________________________
- Echo. ; Tweaking WakeOn Settings
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *WakeOnMagicPacket -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *WakeOnPattern -RegistryValue 0
- Echo. ; ________________________________________
- Echo. ; Tweaking ECO Settings
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword EEELinkAdvertisement -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword EnablePME -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword ReduceSpeedOnPowerDown -RegistryValue 0
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword ULPMode -RegistryValue 0
- Echo. ; ________________________________________
- Echo. ; Tweaking Other Settings
- Echo. ; ----------------------------------------
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword LogLinkStateEvent -RegistryValue 16
- powershell.exe Set-NetAdapterAdvancedProperty -Name "Ethernet" -RegistryKeyword *JumboPacket -RegistryValue 1514
- Echo. ; ________________________________________
- Echo. ; Optimized Adv. Adapter Settings
- Echo. ; ----------------------------------------
- powershell.exe Get-NetAdapterAdvancedProperty -Name "Ethernet"
- pause.
- Echo. ";---------------------------------------------------------------|"
- Echo. "; Tweaking Completed |"
- Echo. "; Please Restart the System to take Effect! |"
- Echo. ";---------------------------------------------------------------|"
- pause.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement