diff --git a/Frontier.exe b/Frontier.exe index 7b6d3ac..efdac4c 100644 Binary files a/Frontier.exe and b/Frontier.exe differ diff --git a/Frontier.zip b/Frontier.zip deleted file mode 100644 index f600957..0000000 Binary files a/Frontier.zip and /dev/null differ diff --git a/Main.py b/Main.py index 7162d9c..a3e77d8 100644 --- a/Main.py +++ b/Main.py @@ -125,7 +125,7 @@ def logo(): f = open('logo.txt', 'r') print(crayons.yellow(f.read())) f.close() - print(crayons.blue(" Welcome to "), crayons.green("Frontier"), crayons.blue(". When your friends call out your aim and you blame it on your fps...")) + print(crayons.blue(" Welcome to "), crayons.green("Frontier"), crayons.blue(". Uncover the power within. Put it to use.")) def logo_red(): os.system("cls") @@ -136,7 +136,7 @@ def logo_red(): def countdown_timer(seconds): for i in range(seconds, 0, -1): - sys.stdout.write(f"\r Proceeding in in {i} seconds") + sys.stdout.write(f"\r Proceeding in in {i} seconds") sys.stdout.flush() time.sleep(1) @@ -174,6 +174,14 @@ def secondpage(): print(" Its useless basically Computer crashing? Use this option to try Sets your CPU Timer Rsolution") print(" Might aswell uninstall it and fix the corrupted stuff inside your C: drive to a custom value to boost the speed") print(f'\n \n') + print(crayons.cyan(" [4.] Enable Teredo tecnologie [5.] Clear DNS client cache [6.] Enable WinStock")) + print(" Enables Teredo Options to allocate more Refreshes DNS resolutions and clears out Enables the Windows operating system's") + print(" resources to the network adapters Old , unused and/or broken ones. autotuning feature for the TCP/IP stack") + print(f'\n \n') + print(crayons.cyan(" [7.] Non Sack Rtt Resiliency [8.] TCP memory pressure protection [9.] SYN Retransmissions")) + print(" enhances internet performance by improving helps ensure that a computer continues normal operation Sets the number of times to attempt to") + print(" congestion control and recovery from packet loss when low on memory due to denial of service attacks. reestablish a connection with SYN packets.") + print(f'\n \n') print() try: @@ -192,7 +200,19 @@ def secondpage(): elif action == 3: timerr() - + elif action == 4: + os.system("netsh interface teredo set state client") + elif action == 5: + os.system("powershell.exe Clear-DnsClientCache") + elif action == 6: + os.system("netsh winsock set autotuning on") + elif action == 7: + os.system("netsh int tcp set global nonsackrttresiliency=enabled") + elif action == 8: + os.system("powershell.exe Set-NetTCPSetting -MemoryPressureProtection Enabled") + elif action == 9: + os.system("powershell.exe Set-NetTCPSetting -SettingName InternetCustom -MaxSynRetransmissions 3") + elif action == 10: selectionmenu() break @@ -238,9 +258,7 @@ def selectionmenu(): break elif action == 2: - display_menu() - main_menu() - break + os.system('call %systemroot%\System32\SystemPropertiesProtection.exe') elif action == 3: debloat() elif action == 4: diff --git a/README.md b/README.md index 41f807a..832e50b 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ If you need to install it either use and then run Frontier.exe or use the installer contained in [Github Releases](https://github.com/VisualDeVenture/Frontier/releases) ### TO DO -- [x] Make an installer - [ ] Make a functioning restore point system - [x] Make a compiled version - [x] Make a version checking feature diff --git a/WindowsModTool.bat b/WindowsModTool.bat new file mode 100644 index 0000000..f7cd1d6 --- /dev/null +++ b/WindowsModTool.bat @@ -0,0 +1,785 @@ +@echo off +title Windows Modding Tool +setlocal EnableDelayedExpansion + +rem BatchGotAdmin +:------------------------------------- +REM --> Check for permissions + IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( +>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" +) ELSE ( +>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" +) + +REM --> If error flag set, we do not have admin. +if '%errorlevel%' NEQ '0' ( + @echo. & @echo. & @echo Requesting administrative privileges... + TIMEOUT -T 3 /nobreak >nul + goto UACPrompt +) else ( goto gotAdmin ) + +:UACPrompt + echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" + set params= %* + echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs" + + "%temp%\getadmin.vbs" + del "%temp%\getadmin.vbs" + exit /B + + +:gotAdmin +rem :To CD to the location of the batch script file (%0) +CD /d "%~dp0" + +powershell.exe "Set-ExecutionPolicy Unrestricted -force" >nul + +cls +@echo. & @echo Create restore Point before advance. +call %systemroot%\System32\SystemPropertiesProtection.exe + +@echo Import power settings mod, in power settings advanced settings will unlock more settings expecially in cpu option... +@echo y|REG IMPORT "%~dp0dir\PowerManagementSetConf.reg" >nul + +@echo Import Visual Effects. +@echo y|REG IMPORT "%~dp0dir\VisualEffects.reg" >nul + +@echo. & @echo Keybord speed tweak. +@echo y|REG IMPORT "%~dp0dir\Keyboard.reg" >nul + +@echo. & @echo Disabling Cortana. +@echo y|REG IMPORT "%~dp0dir\Disabling_Cortana.reg" >nul + +@echo. & @echo mouse speed tweak. +@echo y|REG IMPORT "%~dp0dir\mouse.reg" >nul + +@echo. & @echo Enable old Photo viewer. +@echo y|REG IMPORT "%~dp0dir\Enable_Photo_viewer.reg" >nul + +@echo. & @echo Setting MTU to 1492 PPPoE - Ethernet II MTU (1500) less PPPoE header (8). Big MTU has some downsides if the network transmission is not so stable. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name MTU -PropertyType dword -Value 1492 -force +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AFD\Parameters"|New-ItemProperty -Name FastSendDatagramThreshold -PropertyType dword -Value 1492 -force" +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft' -Name 'MSMQ' -ErrorAction SilentlyContinue >nul >nul +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\MSMQ' -Name 'Parameters' -ErrorAction SilentlyContinue >nul >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\MSMQ\Parameters' -Name MTU -PropertyType dword -Value 1492 -force + +rem @echo. & @echo Enabling Teredo tecnologie. & @echo. +rem netsh interface teredo set state client + +@echo Cleanning Dns Client Cache +powershell.exe Clear-DnsClientCache + +@echo Winsock autotuning on. & @echo. +netsh winsock set autotuning on + +@echo Enable tcp window heuristics. & @echo. +set heuristics enabled enabled +set heuristics wsh=enabled forcews=enabled + +@echo Enable Fastopen, Rss, Dca, disable ecncapability. & @echo. +netsh int tcp set global fastopen=enabled ecncapability=disabled rss=enabled dca=enabled + +@echo Non Sack Rtt Resiliency, "disabled" for stable connections, "enabled" for connections with fluctuating ping and in the presence of packet loss. State=Enabled & @echo. +netsh int tcp set global nonsackrttresiliency=enabled + +@echo TCP memory pressure protection helps ensure that a computer continues normal operation when low on memory due to denial of service attacks. State Enabled. & @echo. +powershell.exe Set-NetTCPSetting -MemoryPressureProtection Enabled + +@echo Timestamps facilitate round trip measurement. Disabling TCP timestamp may cause some performance issues. State Enabled & @echo. +powershell.exe Set-NetTCPSetting -Timestamps Enable + +@echo Max SYN Retransmissions, sets the number of times to attempt to reestablish a connection with SYN packets. Times set to 3. & @echo. +powershell.exe Set-NetTCPSetting -SettingName InternetCustom -MaxSynRetransmissions 3 + +@echo Internet congestionprovider=CUBIC. & @echo. +netsh int tcp set supplemental template=internet congestionprovider=CUBIC +powershell.exe Set-NetTCPSetting -SettingName "InternetCustom" -CongestionProvider CUBIC + +@echo Chimney Disabled PacketCoalescingFilter enabled. & @echo. +powershell.exe Set-NetOffloadGlobalSetting -Chimney Disabled + +@echo PacketCoalescingFilter enabled for pure throughput when lower CPU utilization is important. & @echo. +powershell.exe Set-NetOffloadGlobalSetting -PacketCoalescingFilter enabled + +@echo ScalingHeuristics Disabled. & @echo. +powershell.exe Set-NetTCPSetting -SettingName InternetCustom -ScalingHeuristics Disabled + +rem AutoTuningLevel scale Factor scale multiplier Window size formula +rem Disabled 0 0 window size +rem Restricted 4 2^4 window size * (2^4) +rem Highly restricted 2 2^2 window size * (2^2) +rem Normal 8 2^8 window size * (2^8) +rem Experimental 14 2^14 window size * (2^14) + +@echo  Setting autotuninglevel to Restricted. & @echo. +netsh int tcp set global autotuninglevel=Restricted + +@echo Network direct memory acess ON. Not work together with Chimney Offload but Chimney Offload is out since Windows 10. & @echo. +netsh int tcp set global netdma=enabled + +@echo Enable Receive Side Scaling (RSS). Receive-side scaling setting enables parallelized processing of received packets on multiple processors. & @echo. +netsh int tcp set global rss = enabled +powershell.exe Set-NetAdapterRss -Name * -Enabled $True -IncludeHidden + +@echo Disable Receive Segment Coalescing State (RSC) for pure gaming latency.& @echo. +netsh int tcp set global rsc = disable +powershell.exe Disable-NetAdapterRsc -Name * -IncludeHidden + +@echo Set IPV4 IPV6 RSC for Adapters. & @echo. +powershell.exe Set-NetAdapterRsc -Name * -IncludeHidden -IPv4Enabled $True -IPv6Enabled $True + +@echo Set an RSS profile for a NUMA server without dynamic load balancing, Base Processor Number 0, Max Processor Number 1,Max Processors 2, -NumberOfReceiveQueues 2. & @echo. +powershell.exe Set-NetAdapterRss -Name * -Profile NUMAStatic -BaseProcessorNumber 0 -MaxProcessorNumber 1 -MaxProcessors 2 -NumberOfReceiveQueues 2 -IncludeHidden + +@echo Enabling Adapter Checksum Offload. & @echo. +powershell.exe Enable-NetAdapterChecksumOffload -Name * -TcpIPv6 -UdpIPv6 -TcpIPv4 -UdpIPv4 -IpIPv4 -IncludeHidden + +@echo Enable Large Send Offload (LSO)This setting enables Large Send Offload. When enabled, the network adapter hardware is used to complete data segmentation, +@echo theoretically faster than operating system software. Theoretically, this feature may improve transmission performance, and reduce CPU load. & @echo. +powershell.exe Enable-NetAdapterLso -Name * -IncludeHidden + +@echo et-NetAdapterLso cmdlet manages the large send offload property which can improve send side performance by having the network adapter distribute a large send request into smaller sizes that can be sent out by the network adapter. & @echo. +powershell.exe set-NetAdapterLso -Name * -IncludeHidden -IPv4Enabled $True -IPv6Enabled $True -V1IPv4Enabled $True + +@echo RDMA can increase networking throughput, reduce latency, and reduce processor utilization. & @echo. +powershell.exe Enable-NetAdapterRdma -Name * -IncludeHidden +powershell.exe Set-NetAdapterRdma -Name * -IncludeHidden -Enabled $True + +@echo enable security mpp and security profiles. & @echo. +netsh int tcp set security mpp=enable +netsh int tcp set security profiles=enable + +@echo. & @echo Setting MTU to 1492 PPPoE - Ethernet II MTU (1500) less PPPoE header (8). Big MTU has some downsides if the network transmission is not so stable. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name MTU -PropertyType dword -Value 1492 -force +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name MTU -PropertyType dword -Value 1492 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AFD\Parameters"|New-ItemProperty -Name FastSendDatagramThreshold -PropertyType dword -Value 1492 -force" +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft' -Name 'MSMQ' -ErrorAction SilentlyContinue >nul >nul +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\MSMQ' -Name 'Parameters' -ErrorAction SilentlyContinue >nul >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\MSMQ\Parameters' -Name MTU -PropertyType dword -Value 1492 -force + +@echo Because the removal of node splitting can potentially impact existing applications, a registry value is available to allow +@echo opting back into the legacy node splitting behavior. Node splitting can be re-enabled by creating a REG_DWORD value +@echo named "SplitLargeNodes" with value 1 underneath. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\NUMA' -Name 'SplitLargeNodes' -PropertyType dword -Value 1 -force + +@echo Creating Psched property to define the wide band (%) for system. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows' -Name 'Psched' -ErrorAction SilentlyContinue >nul +@echo Defining the wide band (5%) for system. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Psched' -Name 'NonBestEffortLimit' -PropertyType dword -Value 5 -force + +@echo Increasing peding package to 196605. Default 65535. Not define in system. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Psched' -Name 'MaxOutstandingSends' -PropertyType dword -Value 196605 -force + +@echo Set Max User Port to start=1024 num=64512 & @echo. +netsh int ipv4 set dynamicport tcp start=1024 num=64512 + +@echo Network direct memory acess ON. Not work together with Chimney Offload. Is the same as netsh int tcp set global netdma. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name EnableTCPA -PropertyType dword -Value 1 -force + +@echo Setting TTL to 60. If you have frequent problems with packets expiring too quickly, you can set the TTL to a higher value. DefaultTTL 128. & @echo. +rem In TCP IP networks, any information travels through packets. The TTL is the number of hops between devices (routers and others) that a packet can take before +rem reaching its destination. +rem The maximum value for the TTL of a packet is 255. Each packet sent to a network is from the sender with a given TTL. +rem On each device that a network packet passes through, the TTL of this packet is decreased by 1. When the TTL reaches zero, the packet is discarded, +rem and stop traveling over the network. The purpose of using a TTL is to avoid that a packet is infinitely wandering through the network, +rem which would lead to performance problems in the medium and long term. +powershell.exe new-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name DefaultTTL -PropertyType dword -Value 60 -force +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name DefaultTTL -PropertyType dword -Value 60 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name DefaultTTL -PropertyType dword -Value 60 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name DefaultTTL -PropertyType dword -Value 60 -force" + +@echo Disable TCP selective acks option for better CPU utilization. & @echo. +powershell.exe new-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name 'SackOpts' -PropertyType dword -Value 0 -force + +@echo Tcp1323pts set to 1 - window scaling enabled. & @echo. +rem Value Meaning +rem 0 Timestamps and window scaling are disabled. +rem 1 Window scaling is enabled. +rem 2 Timestamps are enabled. +rem 3 Timestamps and window scaling are enabled. +powershell.exe new-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name Tcp1323Opts -PropertyType dword -Value 1 -force + +@echo This NDIS 5 setting allows for reducing CPU load by offloading some tasks required to maintain the TCP/IP stack to the network card. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name DisableTaskOffload -PropertyType dword -Value 0 -force + +@echo If you set this parameter to 1 (True), TCP tries to detect "Black Hole" routers while doing Path MTU Discovery. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name EnablePMTUBHDetect -PropertyType dword -Value 1 -force + +rem @echo If you set this parameter to 1 (True), TCP tries to discover the Maximum Transmission Unit (MTU or largest packet size) over the path to a remote host. & @echo. +rem powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name EnablePMTUDiscovery -PropertyType dword -Value 1 -force + +@echo If you set this parameter to 1, TCP uses the Dead Gateway Detection feature. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name EnableDeadGWDetect -PropertyType dword -Value 1 -force + +@echo Disable large MTU. Big MTU has some downsides if the network transmission is not so stable. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name DisableLargeMTU -PropertyType dword -Value 1 -force + +@echo This parameter determines the number of times that TCP retransmits a connect request (SYN) before aborting the attempt. Set to 3. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name TcpMaxConnectRetransmissions -PropertyType dword -Value 3 -force + +@echo This parameter controls the number of times that TCP retransmits an individual data segment (non-connect segment) before it aborts the connection.Default 5. Set to 3. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name TCPMaxDataRetransmissions -PropertyType dword -Value 3 -force + +@echo Enable Sync attack protection. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name SynAttackProtect -PropertyType dword -Value 1 -force + +@echo Disable connection rate limiting. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'EnableConnectionRateLimiting' -PropertyType dword -Value '0' -force + +@echo Enables direct cache acess. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'EnableDca' -PropertyType dword -Value '1' -force + +@echo Security setting. Requires Network Level Authentication (NLA). & @echo. +powershell.exe New-Item -Path 'HKLM:\System\CurrentControlSet\Services\Tcpip' -Name 'QoS' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\services\Tcpip\QoS' -Name 'Do not use NLA' -PropertyType string -Value 0 -force + +rem IRPStackSize +rem 4) Assign recommended value: 32 +rem Default value(when not present in registry): 15 +rem Possible range: 1-50 +rem Possible issues: 33+ +@echo LanmanWorkstation. Setting IRP Stack Size to 33. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters' -Name 'IRPStackSize' -PropertyType dword -Value 33 -force + +@echo LanmanWorkstation. Setting Minimum Free Connection to 128. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters' -Name 'MinFreeConnections' -PropertyType dword -Value 128 -force + +@echo LanmanWorkstation. Security setting. Require Security Signature. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters' -Name 'RequireSecuritySignature' -PropertyType dword -Value 1 -force + +@echo LanmanServer. Setting IRP Stack Size to 33. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name 'IRPStackSize' -PropertyType dword -Value 33 -force + +@echo LanmanServer. Setting Minimum Free Connection to 128. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name 'MinFreeConnections' -PropertyType dword -Value 128 -force + +@echo LanmanServer. Security setting. Require Security Signature. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name 'RequireSecuritySignature' -PropertyType dword -Value 1 -force + +@echo Determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. Setting to 28 & @echo. +rem This parameter applies only to the Windows® operating system. It determines the time that must elapse before TCP can release a closed connection and reuse its resources. +rem The value for Max Connections is 100. +rem The value for Min Connections is 10. +rem The recommended value is 30. +rem Testing at 28. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'TcpTimedWaitDelay' -PropertyType dword -Value '28' -force + +@echo This parameter limits the maximum number of connections that TCP can have open at the same time. Setting to 65534. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name 'TcpNumConnections' -PropertyType dword -Value 65534 -force + +@echo It determines how many active TCP connections your computer can handle at any given time based on how much physical memory +@echo you have and how much performance your computer has with regard to bandwidth. Max value is 65536. (set to 1/4 of max value). & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name MaxFreeTcbs -PropertyType dword -Value 46811 -force + +@echo Setting DNS and Hosts Priority. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider -Name Class -PropertyType dword -Value 2 -force +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider -Name LocalPriority -PropertyType dword -Value 4 -force +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider -Name DnsPriority -PropertyType dword -Value 5 -force +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider -Name HostsPriority -PropertyType dword -Value 6 -force +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider -Name NetbtPriority -PropertyType dword -Value 7 -force + +@echo Start with CPU1 for RSS (Receive Side Scaling Base set to value of 1) to let CPU0 do other important things. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\services\NDIS\Parameters' -Name 'RssBaseCpu' -PropertyType dword -Value '1' -force + +@echo Set the maximum number of RSS CPUs with the MaxNumRssCpus. DUO CORE set value of 2. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\services\NDIS\Parameters' -Name 'MaxNumRssCpus' -PropertyType dword -Value '2' -force + +@echo The AllowFlowControlUnderDebugger registry value prevents NDIS from disabling flow control, and allows NICs to keep their configured behavior. & @echo. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\NDIS\Parameters -Name 'AllowFlowControlUnderDebugger' -PropertyType dword -Value 1 -force + +@echo ProcessorAffinityMask. Specifies which processors can be associated with a network adapter and service the delayed procedure calls (DPCs) generated by that network adapter. +@echo This entry is designed for multiprocessor computers, specifically those with more than one network adapter. +@echo Value set to 0, none of the processors are associated with network adapters. DPCs are serviced by the same processor that serviced the interrupt. & @echo. +REM Value Meaning +REM 0x0 If the value of this entry is 0 (all bits are set to 0), none of the processors are associated with network adapters. DPCs are serviced by the same processor that serviced the interrupt. +REM This setting is useful for platforms that distribute interrupts among all processors, such as the Windows 2000 and Windows NT 4.0 platforms for Intel Pentium and Pentium Pro (P6) processors. +REM 0x1 - 0xFFFFFFFE (DEC 4294967294) If some of the bits are set to 0 and others are set to 1, the system skips processors associated with bits set to 0 and assigns network adapters to processors whose bits are set to 1. +REM 0xFFFFFFFF (DEC 4294967295) If the value of this entry is 0xFFFFFFFF (all bits are set to 1), all processors on the computer can be associated with network adapters. +REM If there are multiple processors and multiple network adapters, each adapter is associated with one processor and services all of its DPCs. +REM The first adapter is associated with the processor with the highest number. Subsequent adapters are associated with the next processor in descending numeric order. +REM If there are more adapters than there are processors, the system begins again at the highest numbered processor and assigns a network adapter to each remaining processor in descending numeric order. +powershell.exe New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\NDIS\Parameters -Name ProcessorAffinityMask -PropertyType dword -Value 0 -force + +@echo Setting NetworkThrottlingIndex to max for better gamming experience. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile' -Name NetworkThrottlingIndex -PropertyType dword -Value 4294967295 -force + +@echo System Responsiveness determines the percentage of CPU resources that should be guaranteed to low-priority tasks. +@echo Note that values that are not evenly divisible by 10 are rounded up to the nearest multiple of 10. A value of 0 is also treated as 10. Setting to 0 & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile' -Name 'SystemResponsiveness' -PropertyType dword -Value 0 -force + + +@echo Gaming Tweaks. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name Affinity -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'Background Only' -PropertyType string -Value False -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name Priority -PropertyType dword -Value 2 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'Scheduling Category' -PropertyType string -Value High -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'SFIO Priority' -PropertyType string -Value High -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'Latency Sensitive' -PropertyType string -Value True -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name NetworkThrottling -PropertyType dword -Value 4294967295 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'Clock Rate' -PropertyType dword -Value 10000 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games' -Name 'GPU Priority' -PropertyType dword -Value 8 -force + +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks' -Name 'Low Latency' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name Affinity -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'Background Only' -PropertyType string -Value False -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'Priority' -PropertyType dword -Value 2 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'Scheduling Category' -PropertyType string -Value High -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'SFIO Priority' -PropertyType string -Value Normal -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'Latency Sensitive' -PropertyType string -Value True -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name NetworkThrottling -PropertyType dword -Value 4294967295 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'Clock Rate' -PropertyType dword -Value 10000 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Low Latency' -Name 'GPU Priority' -PropertyType dword -Value 8 -force + + +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name Affinity -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'Background Only' -PropertyType string -Value False -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name Priority -PropertyType dword -Value 5 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'Scheduling Category' -PropertyType string -Value medium -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'SFIO Priority' -PropertyType string -Value Normal -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'Latency Sensitive' -PropertyType string -Value True -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name NetworkThrottling -PropertyType dword -Value 4294967295 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'Clock Rate' -PropertyType dword -Value 10000 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio' -Name 'GPU Priority' -PropertyType dword -Value 8 -force + +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name Affinity -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'Background Only' -PropertyType string -Value False -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name Priority -PropertyType dword -Value 6 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'Scheduling Category' -PropertyType string -Value medium -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'SFIO Priority' -PropertyType string -Value Normal -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'Latency Sensitive' -PropertyType string -Value True -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name NetworkThrottling -PropertyType dword -Value 4294967295 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'Clock Rate' -PropertyType dword -Value 10000 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio' -Name 'GPU Priority' -PropertyType dword -Value 8 -force + +@echo tweaking video propertys. & @echo. +@echo Ignore red info in this tweak, is write protected regestry! +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'PP_ThermalAutoThrottlingEnable' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'DalAllowDirectMemoryAccessTrig' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'DedicatedSegmentSize' -PropertyType dword -Value 8192 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'DalAllowDirectMemoryAccessTrig' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'PruningMode' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'MultiFunctionSupported' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'AllowSubscription' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'KMD_DeLagEnabled' -PropertyType dword -Value 1 -force +rem powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'VgaCompatible' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Video\*\*' 'MosquitoNoiseRemoval_NA' -PropertyType string -Value 1 -force + +@echo Disabling Nagle´s Algorithm.& @echo. +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name 'TcpDelAckTicks' -PropertyType dword -Value 0 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPAckFrequency' -PropertyType dword -Value 1 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPNoDelay' -PropertyType dword -Value 1 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name 'TcpDelAckTicks' -PropertyType dword -Value 0 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPAckFrequency' -PropertyType dword -Value 1 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPNoDelay' -PropertyType dword -Value 1 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name 'TcpDelAckTicks' -PropertyType dword -Value 0 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPAckFrequency' -PropertyType dword -Value 1 -force" +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name 'TCPNoDelay' -PropertyType dword -Value 1 -force" + +@echo Setting DNS. & @echo. +@echo CloudFlare +@echo Free DNS. +@echo IPV4 DNS1 1.1.1.1 +@echo IPV4 DNS2 1.0.0.1 +@echo IPV6 DNS1 2606:4700:4700::1111 +@echo IPV6 DNS2 2606:4700:4700::1001 & @echo. +@echo Malware blocking only. +@echo IPV4 DNS1 1.1.1.2 +@echo IPV4 DNS2 1.0.0.2 +@echo IPV6 DNS1 2606:4700:4700::1112 +@echo IPV6 DNS2 2606:4700:4700::1002 & @echo. +@echo Malware and adult content blocking. +@echo IPV4 DNS1 1.1.1.3 +@echo IPV4 DNS2 1.0.0.3 +@echo IPV6 DNS1 2606:4700:4700::1113 +@echo IPV6 DNS2 2606:4700:4700::1003 +@echo. & @echo. & @echo. +@echo Google +@echo Free DnsPriority. +@echo IPV4 DNS1 8.8.8.8 +@echo IPV4 DNS2 8.8.4.4 +@echo IPV6 DNS1 2001:4860:4860::8888 +@echo IPV6 DNS2 2001:4860:4860::8844 +@echo. & @echo. & @echo. +@echo Norton +@echo Free DNS malware and phishing blocking only. +@echo IPV4 DNS1 199.85.126.10 +@echo IPV4 DNS2 199.85.127.10 +@echo IPV6 DNS1 **** +@echo IPV6 DNS2 **** & @echo. +@echo Free DNS malware, phishing and Porn blocking only. +@echo IPV4 DNS1 199.85.126.20 +@echo IPV4 DNS2 199.85.127.20 +@echo IPV6 DNS1 **** +@echo IPV6 DNS2 **** & @echo. +@echo Free DNS malware, phishing,alcool, Porn drugs and others blocking. +@echo IPV4 DNS1 199.85.126.30 +@echo IPV4 DNS2 199.85.127.30 +@echo IPV6 DNS1 **** +@echo IPV6 DNS2 **** & @echo. +@echo Quad9 Free DNS +@echo Malware Blocking, DNSSEC Validation (this is the most typical configuration) +@echo IPV4 DNS1 9.9.9.9 +@echo IPV4 DNS2 149.112.112.112 +@echo IPV6 DNS1 2620:fe::fe +@echo IPV6 DNS2 2620:fe::9 & @echo. +@echo Secured w/ECS: Malware blocking, DNSSEC Validation, ECS enabled +@echo IPV4 DNS1 9.9.9.11 +@echo IPV4 DNS2 149.112.112.11 +@echo IPV6 DNS1 2620:fe::11 +@echo IPV6 DNS2 2620:fe::fe:11 & @echo. +@echo =NOT RECOMENDED= Unsecured:  No Malware blocking, no DNSSEC validation (for experts only!) +@echo IPV4 DNS1 9.9.9.10 +@echo IPV4 DNS2 149.112.112.10 +@echo IPV6 DNS1 2620:fe::10 +@echo IPV6 DNS2 2620:fe::fe:10 & @echo. +@echo. & @echo.  +Set /p DNS="-Copy/Paste here IPV4 DNS1 value to set: " +Set /p DNS2="-Copy/Paste here IPV4 DNS2 value to set: " +Set /p IPV6DNS="-Copy/Paste here IPV6 DNS1 value to set: " +Set /p IPV6DNS2="-Copy/Paste here IPV6 DNS2 value to set: " +@echo.  +@echo Setting Interface to DNS %DNS% and %DNS2% & @echo. +@echo Setting Interface to IPV6 DNS %IPV6DNS% and %IPV6DNS2% & @echo. & @echo. +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name 'NameServer' -PropertyType String -Value '%DNS%,%DNS2%' -force +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name 'NameServer' -PropertyType String -Value '%IPV6DNS%,%IPV6DNS2%' -force +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name 'NameServer' -PropertyType String -Value '%DNS%,%DNS2%' -force +@echo. & @echo Done! & @echo. + +@echo Set your Metric value. & @echo. +@echo  Download Speed Metric +@echo Greater than or equal to 2 GB 5 +@echo Greater than 200 Mb 10 +@echo Greater than 20 Mb, and less than or equal to 200 Mb 20 +@echo Greater than 4 Mb, and less than or equal to 20 Mb 30 +@echo Greater than 500 kilobits (Kb), and less than or equal to 4 Mb 40 +@echo Less than or equal to 500 Kb 50 & @echo. +@echo.  +Set /p MET="-Insert here the metric value to set: " +@echo.  +@echo Setting Interface metric to %MET%. & @echo. +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*"|New-ItemProperty -Name InterfaceMetric -PropertyType dword -Value %MET% -force" > nul +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\*"|New-ItemProperty -Name InterfaceMetric -PropertyType dword -Value %MET% -force" > nul +powershell.exe "Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\*"|New-ItemProperty -Name InterfaceMetric -PropertyType dword -Value %MET% -force" > nul +@echo. + +@echo Better IO performance. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\kernel' -Name 'MaximumDpcQueueDepth' -PropertyType dword -Value 1 -force + +@echo Turn On reptoline. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name FeatureSettingsOverride -PropertyType dword -Value 1024 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name FeatureSettingsOverrideMask -PropertyType dword -Value 1024 -force + +@echo Disable Prefetch in Windows 11/10 for better SSD performance. & @echo. +rem 0 – Disable SysMain +rem 1 – Enable SysMain for boot files only +rem 2 – Enable SysMain for applications only +rem 3 – Enable SysMain for both boot files and applications +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters' -Name 'EnablePrefetcher' -PropertyType dword -Value 0 -force + +@echo Enable Trim on SSD. & @echo. +fsutil behavior set DisableDeleteNotify 0 >nul +fsutil behavior set DisableDeleteNotify NTFS 0 >nul +fsutil behavior set DisableDeleteNotify ReFS 0 >nul + +rem 80000000 (hex)= 2147483648 (Dec) = User Managed, Last Access Updates Enabled +rem 80000001 (hex)= 2147483649 (Dec) = User Managed, Last Access Updates Disabled +rem 80000002 (hex)= 2147483650 (Dec) = System Managed, Last Access Updates Enabled +rem 80000003 (hex)= 2147483651 (Dec) = System Managed, Last Access Updates Disabled +@echo Improving NTFS Performance, System Managed, Last Access Updates Disabled. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'NtfsDisableLastAccessUpdate' -PropertyType dword -Value '2147483651' -force + +@echo Creating missing folders TileDataLayer and Database. & @echo. +mkdir "%systemroot%\system32\config\systemprofile\AppData\Local\TileDataLayer" >nul +mkdir "%systemroot%\system32\config\systemprofile\AppData\Local\TileDataLayer\Database" >nul + +@echo Enabling Storage Management Cache. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\StorageManagement\SpacesSMP\ConnectedSubsystems\*' -Name 'CacheEnabled' -PropertyType dword -Value 1 -force + +@echo Enabling Memory Management Third Level Data Cache. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'ThirdLevelDataCache' -PropertyType dword -Value 0 -force + +@echo Maximizes the size of the virtual address space used for the paged pool to 0. The system algorithm typically sets the size of the paged pool to slightly less than the amount of physical memory in the computer. This value is optimal for most systems. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'PagedPoolSize' -PropertyType dword -Value 0 -force + +@echo Setting SystemPages to 0. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'SystemPages' -PropertyType dword -Value 0 -force + +@echo Turn on automatic driver searching. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching' -Name 'SearchOrderConfig' -PropertyType dword -Value 1 -force + +@echo Disabling Windows Fast boot feature. Disabling Fast Startup slows Boot but will improves is performance. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name 'HiberBootEnabled' -PropertyType dword -Value 0 -force + +@echo Preventing computer from pushing other apps including the background apps into the suppressed state and triggers high performance. & @echo. +powershell.exe New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'PowerThrottling' -force -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling' -Name 'PowerThrottlingOff' -PropertyType dword -Value 1 -force + +@echo Disable the Game DVR system that often interferes with the actual game. If you use Game DVR, set value to 1. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR' -Name 'Value' -PropertyType dword -Value 0 -force + +@echo Disable the 'intelppm" service, fix the "CPU Not Running at Full Speed" issue, is to prevent the "intelppm" service to start, using registry. +@echo Modify the value data to '4' ( always at full speed) +@echo Modify the value data to '1' ( use full speed only when need it). & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\intelppm' -Name 'Start' -PropertyType dword -Value 2 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\intelpmax' -Name 'Start' -PropertyType dword -Value 2 -force + +@echo Unlock additional Windows power plan settings. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CsEnabled' -PropertyType dword -Value 1 -force + +@echo NtfsMemoryUsage - When set to 2, NTFS increases the size of its lookaside lists and memory thresholds. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'NtfsMemoryUsage' -PropertyType dword -Value 2 -force + +@echo Set Class 1Initial Unpark Count to 33. Default value 16. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'Class1InitialUnparkCount' -PropertyType dword -Value 33 -force + +@echo Increase the heap size to improve performance. +@echo The value xxxx defines the maximum size of the system-wide heap (in kilobytes), yyyy defines the size of each desktop heap, +@echo and zzzz defines the size of the desktop heap that is associated with a non-interactive Windows station. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems' -Name 'SharedSection' -PropertyType string -Value '2048,3072,2048' -force + +@echo Increase Performance for Programs, read Note. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\PriorityControl' -Name 'Win32PrioritySeparation' -PropertyType dword -Value 38 -force + +@echo Hardware Accelerated GPU Scheduling enable. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers' -Name 'HwSchMode' -PropertyType dword -Value 2 -force + +@echo Turning Off all windows suggestions. & @echo. +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'ContentDeliveryAllowed' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-310093Enabled' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-338388Enabled' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-338389Enabled' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-88000326Enabled' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SilentInstalledAppsEnabled' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SystemPaneSuggestionsEnabled' -PropertyType dword -Value 0 -force + +@echo Turn off auto reboot after crash. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -Name 'AutoReboot' -PropertyType dword -Value 0 -force + +@echo Enabling Windows Educational Themes. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device' -Name 'Education' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\Education' -Name 'EnableEduThemes' -PropertyType dword -Value 1 -force + +@echo Enabling Windows Stickers. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device' -Name 'Stickers' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\Stickers' -Name 'EnableStickers' -PropertyType dword -Value 1 -force + +@echo Composition DWM Tweaks. +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'DisableHologramCompositor' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'EnableAeroPeek' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'ColorPrevalence' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'EnableWindowColorization' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'ForceEffectMode' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'MaxD3DFeatureLevel' -PropertyType dword -Value 64 -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Dwm' -Name 'OneCoreNoDWMRawGameController' -PropertyType dword -Value 1 -force + +@echo Setting Dark mode Theme. +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'SystemUsesLightTheme' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'ColorPrevalence' -PropertyType dword -Value 0 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'EnableTransparency' -PropertyType dword -Value 1 -force +powershell.exe New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\History' -Name 'AutoColor' -PropertyType dword -Value 0 -force + +@echo Import wallpaper at 95%. +powershell.exe New-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name 'JPEGImportQuality' -PropertyType dword -Value 95 -force + +@echo FGBoost Decay. This feature can be disabled for debugging or isolating performance related problems. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\KernelVelocity' -Name 'DisableFGBoostDecay' -PropertyType dword -Value 0 -force + +@echo Turn off Lazy mode. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile' -Name 'NoLazyMode' -PropertyType dword -Value 1 -force + +@echo Enabling NV Cache. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows' -Name 'NvCache' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NvCache' -Name 'EnableNvCache' -PropertyType dword -Value 1 -force + +@echo Disabling Solid State Mode. Works better on SSDs. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NvCache' -Name 'EnableSolidStateMode' -PropertyType dword -Value 0 -force + +@echo Microsoft Edge, enable compatibility mode. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft' -Name 'MicrosoftEdge' -ErrorAction SilentlyContinue >nul +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge' -Name 'BrowserEmulation' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\BrowserEmulation' -Name 'MSCompatibilityMode' -PropertyType dword -Value 1 -force + +@echo Prevent Edge pre-launching. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge' -Name 'Main' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main' -Name 'AllowPrelaunch' -PropertyType dword -Value 0 -force + +@echo Prevent Chrome pre-launching. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Google\Chrome' -Name 'Main' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Google\Chrome\Main' -Name 'AllowPrelaunch' -PropertyType dword -Value 0 -force + +@echo Chrome, enable compatibility mode. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Google\Chrome' -Name 'BrowserEmulation' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Google\Chrome\BrowserEmulation' -Name 'MSCompatibilityMode' -PropertyType dword -Value 1 -force + +@echo Download missing COM components. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows' -Name 'App Management' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\App Management' -Name 'COMClassStore' -PropertyType dword -Value 1 -force + +@echo Disabling Window Scaling Heuristics State. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Tcpip\Parameters' -Name 'EnableWsd' -PropertyType dword -Value 0 -force + +@echo Minimizing the number of simultaneous connections to the Internet on Windows Domain: Don´t allow simultaneous connections. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WcmSvc\GroupPolicy' -Name 'fMinimizeConnections' -PropertyType dword -Value 1 -force + + +rem - 1 - Unrestricted: Use of this connection is unlimited and not restricted by usage charges and capacity constraints. +rem - 2 - Fixed: Use of this connection is not restricted by usage charges and capacity constraints up to a certain data limit. +rem - 3 - Variable: This connection is costed on a per byte basis. +@echo This policy setting configures the cost of Wireless LAN (WLAN) connections on the local machine. & @echo. +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows' -Name 'Wireless' -ErrorAction SilentlyContinue >nul +powershell.exe New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless' -Name 'NetCost' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType dword -Value 1 -force + +@echo This policy setting configures the cost of Network Connections on the local machine. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Network Connections' -Name 'Cost' -PropertyType dword -Value 1 -force + +@echo Tweaking readyBoost. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'EMDMgmt' -ErrorAction SilentlyContinue >nul +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt' -Name '*' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt\*' -Name 'DeviceStatus' -PropertyType dword -Value 2 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt\*' -Name 'WriteSpeedKBs' -PropertyType dword -Value 6144 -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt\*' -Name 'SpeedReadKBs' -PropertyType dword -Value 8192 -force + +@echo Turning ON Drivers update on windows update. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows' -Name 'WindowsUpdate' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ExcludeWUDriversInQualityUpdate' -PropertyType dword -Value 0 -force + +@echo Disabling defrag for SSD Protection. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Dfrg' -Name 'BootOptimizeFunction' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction' -Name 'Enable' -PropertyType string -Value N -force + +@echo Disabling Ndu [Network Diagnostic Usage]. & @echo. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Ndu' -Name 'Start' -PropertyType dword -Value 4 -force + +@echo Adding and enabling Super Power Scheme. & @echo. +powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 +TIMEOUT -T 2 /nobreak >nul +powercfg -s e9a42b02-d5df-448d-aa00-03f14749eb61 + +@echo Enabling some visual effects. & @echo. +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarAnimations' -PropertyType dword -Value '1' -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects' -Name 'VisualFXSetting' -PropertyType dword -Value '1' -force + +@echo Show file extencion +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -PropertyType dword -Value '0' -force + +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'legalnoticecaption' -PropertyType String -Value 'Windows 11 Pro' -force +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'legalnoticetext' -PropertyType String -Value 'Mod by Persona78' -force + +@echo Enabling Auto Game Mode. & @echo. +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\GameBar' -Name 'AllowAutoGameMode' -PropertyType dword -Value '1' -force +powershell.exe New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\GameBar' -Name 'AutoGameModeEnabled' -PropertyType dword -Value '1' -force + +@echo Block windows background to apps run in background. & @echo. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows' -Name 'AppPrivacy' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsRunInBackground' -PropertyType dword -Value '0' -force + +@echo Enable the audit mode for Lsass.exe on a single computer. +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options' -Name 'LSASS.exe' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe' -Name 'AuditLevel' -PropertyType dword -Value '8' -force + +@echo Enable LSA protection on a single computer. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'RunAsPPL' -PropertyType dword -Value '2' -force + +@echo Tweaking Ntfs Parallel Flush Threshold to release RAM earlier. +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'NtfsParallelFlushThreshold' -PropertyType dword -Value 800 -force + +@echo Enable Reserved Storage +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager' -Name 'ShippedWithReserves' -PropertyType dword -Value '1' -force + + +@echo Absolute Max Cache Size unlimited +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows' -Name 'DeliveryOptimization' -ErrorAction SilentlyContinue >nul +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAbsoluteMaxCacheSize' -PropertyType dword -Value '0' -force + +@echo From 100 Percent define you Bandwith for Background and Foreground aplications. & @echo.  +set /p bkground="- From 100, insert Max Percentage Background Bandwidth value here: " & @echo. +set /p FRground="- From 100, insert Max Percentage Foreground Bandwidth value here: " & @echo.  + +@echo Maximum Background Download Bandwidth (percentage)- set to %bkground%% +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOPercentageMaxBackgroundBandwidth' -PropertyType dword -Value '%bkground%' -force + +@echo Maximum Foreground Download Bandwidth (percentage) - set to %FRground%% +powershell.exe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOPercentageMaxForegroundBandwidth' -PropertyType dword -Value '%FRground%' -force + +@echo Calculating the maximum IoPageLockLimit can lock for I/O operations. & @echo. +@echo.  +Set /p value="Write the Max RAM value in system in GB Here: " +@echo.  +set /a valueG=%value%*1024 +set /a calc=%valueG%*2/16 +@echo %calc% +powershell.exe New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'IoPageLockLimit' -PropertyType dword -Value %calc% -force + +@echo. & @echo. & @echo Cleanning all system .tmp files. & @echo. +@echo Some files will not be remove because are in use or are protected! & @echo. +TIMEOUT -T 3 /nobreak >nul + +@echo Start Cleanning tool. +@echo. +for %%a in (%systemdrive%\Users) do ( +powershell.exe Clear-DnsClientCache +@echo Closing and restarting Explorer, shutting down Explorer Locked files by restarting Windows Explorer. +rem Taskkill /f /im Explorer.exe >nul +rem Start Explorer.exe >nul +rem Taskkill /f /im msedge.exe >nul +rem @echo Y|%systemroot%\System32\cleanmgr.exe /VERYLOWDISK >nul +@echo.  +@echo Creating cleanmgr new entries to clean. & @echo off +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches' -Name 'Prefetch' -ErrorAction SilentlyContinue >nul +powershell.exe New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches' -Name 'EdgeCache' -ErrorAction SilentlyContinue >nul +@echo Y|REG IMPORT "%~dp0dir\reg.reg" >nul + +@echo R|powershell.exe -File "%~dp0dir\1.ps1" + +del /F /S /Q "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Cache\Cache_Data\*" >nul +del /F /S /Q "%SystemDrive%\temp\*" >nul +del /F /S /Q "%systemroot%\temp\*" >nul +del /F /S /Q "%systemroot%\Prefetch\*" >nul +del /f /s /q "%systemdrive%\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*\*\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*\*\*\*\*.tmp" >nul +del /f /s /q "%systemdrive%\*\*\*\*\*\*\*\*.tmp" >nul +del /F /S /Q "%temp%\*" >nul +del /F /S /Q "%temp%\*\*" >nul +del /F /S /Q "%temp%\*\*\*" >nul +del /F /S /Q "%temp%\*\*\*\*" >nul +del /F /S /Q "%temp%\*\*\*\*\*" >nul +del /F /S /Q "%temp%\*\*\*\*\*\*" >nul +) +powershell.exe "Set-ExecutionPolicy Default -force" >nul +mode con cols=100 lines=9 &color 09 +cls +@echo. +set Msg=System will reboot in 12 secs! Counting +:Update_BAR +cls +set /a FULL+=1 +set BAR=%BAR%# +set /a NB_BAR+=1 +echo. &echo. +rem echo %BAR% +echo %Msg%... %NB_BAR% seconds +echo %BAR% +echo. +if %FULL%==10 goto :END_BAR +@ping localhost -n 1 >nul + +Timeout /T 1 /nobreak>nul +goto :Update_BAR + +:END_BAR +Shutdown -r /t 2 +endlocal +exit /b + +:: END diff --git a/__pycache__/TimerResolution.cpython-310.pyc b/__pycache__/TimerResolution.cpython-310.pyc index 9632ce9..72724bb 100644 Binary files a/__pycache__/TimerResolution.cpython-310.pyc and b/__pycache__/TimerResolution.cpython-310.pyc differ diff --git a/__pycache__/debloat.cpython-310.pyc b/__pycache__/debloat.cpython-310.pyc index 3097469..9c027bd 100644 Binary files a/__pycache__/debloat.cpython-310.pyc and b/__pycache__/debloat.cpython-310.pyc differ diff --git a/__pycache__/honesponsor.cpython-310.pyc b/__pycache__/honesponsor.cpython-310.pyc index 7b7dabf..d610ded 100644 Binary files a/__pycache__/honesponsor.cpython-310.pyc and b/__pycache__/honesponsor.cpython-310.pyc differ diff --git a/__pycache__/modules.cpython-310.pyc b/__pycache__/modules.cpython-310.pyc index e2a1adf..50d3357 100644 Binary files a/__pycache__/modules.cpython-310.pyc and b/__pycache__/modules.cpython-310.pyc differ diff --git a/__pycache__/powerplan.cpython-310.pyc b/__pycache__/powerplan.cpython-310.pyc index 68d30ee..4720b45 100644 Binary files a/__pycache__/powerplan.cpython-310.pyc and b/__pycache__/powerplan.cpython-310.pyc differ diff --git a/__pycache__/restorepoint.cpython-310.pyc b/__pycache__/restorepoint.cpython-310.pyc index 94d83d0..27db762 100644 Binary files a/__pycache__/restorepoint.cpython-310.pyc and b/__pycache__/restorepoint.cpython-310.pyc differ diff --git a/__pycache__/softreboot.cpython-310.pyc b/__pycache__/softreboot.cpython-310.pyc index 0a5d41e..7e40512 100644 Binary files a/__pycache__/softreboot.cpython-310.pyc and b/__pycache__/softreboot.cpython-310.pyc differ diff --git a/config.json b/config.json index 8f0c537..d80c696 100644 --- a/config.json +++ b/config.json @@ -1,3 +1,3 @@ { - "first_launch": false + "first_launch": true } \ No newline at end of file diff --git a/images/requirements.txt b/images/requirements.txt new file mode 100644 index 0000000..6cb7454 --- /dev/null +++ b/images/requirements.txt @@ -0,0 +1,4 @@ +crayons +requests +colorama +psutil \ No newline at end of file diff --git a/output/Installer.exe b/output/Installer.exe deleted file mode 100644 index d7d2222..0000000 Binary files a/output/Installer.exe and /dev/null differ diff --git a/version.txt b/version.txt index 6812f81..05b19b1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.3 \ No newline at end of file +0.0.4 \ No newline at end of file