-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ionuț Bara
committed
Aug 3, 2024
1 parent
640df57
commit 3e4e714
Showing
612 changed files
with
20,918 additions
and
825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Define the folder containing the .reg files and the output file | ||
$sourceFolder = "../Settings" # Modify this with your source folder path | ||
$outputFile = "../Output.reg" # Specify the output file path | ||
|
||
$combinedContent = @() | ||
$combinedContent += "Windows Registry Editor Version 5.00" | ||
$regFiles = Get-ChildItem -Path $sourceFolder -Recurse -Filter "*.reg" | ||
|
||
foreach ($file in $regFiles) { | ||
$content = Get-Content -Path $file.FullName | ||
$combinedContent += "; File: $($file.FullName)" | ||
$combinedContent += $content[1..($content.Length - 1)] | ||
} | ||
$combinedContent | Set-Content -Path $outputFile -Encoding UTF8 | ||
|
||
Write-Host "Combined registry file created at: $outputFile" |
16 changes: 0 additions & 16 deletions
16
MelodyScript.Settings/Context Menu/restart_kill component/Kill Background Tasks.reg
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Scripts/Disable Device to TurnOff this device to save power.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Disable 'Allow the computer to turn off this device to save power' on all possible devices. (Only effective if D3Cold/hot is enabled) | ||
$device = Get-WmiObject Win32_PnPEntity | ||
$powerMgmt = Get-WmiObject MSPower_DeviceEnable -Namespace root\wmi | ||
foreach ($p in $powerMgmt) | ||
{ | ||
$IN = $p.InstanceName.ToUpper() | ||
foreach ($h in $device) | ||
{ | ||
$PNPDI = $h.PNPDeviceID | ||
if ($IN -like "*$PNPDI*") | ||
{ | ||
$p.enable = $False | ||
$p.psbase.put() | ||
} | ||
} | ||
} | ||
|
||
# Disable 'Allow this device to wake the computer' on all possible devices. | ||
$device = Get-WmiObject Win32_PnPEntity | ||
$powerMgmt = Get-WmiObject MSPower_DeviceWakeEnable -Namespace root\wmi | ||
foreach ($p in $powerMgmt) | ||
{ | ||
$IN = $p.InstanceName.ToUpper() | ||
foreach ($h in $device) | ||
{ | ||
$PNPDI = $h.PNPDeviceID | ||
if ($IN -like "*$PNPDI*") | ||
{ | ||
$p.enable = $False | ||
$p.psbase.put() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Get-PnpDevice -FriendlyName "High precision event timer" | Disable-PnpDevice -Confirm:$false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enable-WindowsOptionalFeature -Online -FeatureName "DirectPlay" -NoRestart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Autotuning Internet Speed and making it persistent | ||
Set-NetTCPSetting -SettingName * -AutoTuningLevelLocal Experimental -ScalingHeuristics Disabled | ||
Set-NetTCPSetting -SettingName * -InitialCongestionWindow 10 -InitialRto 3000 -Timestamps Disabled -MemoryPressureProtection Disabled -NonSackRttResiliency Disabled -MaxSynRetransmissions 2 | ||
Set-NetIPv4Protocol -IcmpRedirects Disabled -DefaultHopLimit 64 -MultipleArpAnnouncements Disabled | ||
|
||
|
||
# Setting the Congestion Provider for better Internet Speeds and Latency, to CTCP | ||
netsh.exe interface tcp set supplemental Internet congestionprovider=ctcp | ||
netsh.exe interface tcp set supplemental InternetCustom congestionprovider=ctcp | ||
netsh.exe interface tcp set supplemental Datacenter congestionprovider=ctcp | ||
netsh.exe interface tcp set supplemental Compat congestionprovider=ctcp | ||
netsh.exe interface tcp set supplemental DatacenterCustom congestionprovider=ctcp | ||
|
||
# OffloadGlobal Settings | ||
|
||
Set-NetOffloadGlobalSetting -PacketCoalescingFilter disabled -Chimney Disabled -Taskoffload Enabled -ReceiveSideScaling Enabled -ReceiveSegmentCoalescing Disabled | ||
|
||
# tweaking features from network adapters | ||
Disable-NetAdapterPowerManagement * | ||
Disable-NetAdapterChecksumOffload -Name * | ||
Disable-NetAdapterLso -Name * | ||
Disable-NetAdapterBinding -Name * -ComponentID ms_pacer | ||
Disable-NetAdapterBinding -Name * -ComponentID ms_msclient | ||
Disable-NetAdapterChecksumOffload -Name * | ||
Set-NetIPInterface -WeakHostSend Enabled -WeakHostReceive Enabled -ErrorAction SilentlyContinue | ||
|
||
# TCP/IP Protocole Tweaks | ||
netsh.exe int isatap set state disable | Out-Null | ||
netsh.exe int tcp set global ecncapability=enabled | Out-Null | ||
netsh.exe int tcp set global ecn=enabled | Out-Null | ||
netsh.exe interface tcp set global fastopen=enabled | Out-Null | ||
netsh.exe interface tcp set global fastopenfallback=enabled | Out-Null | ||
netsh.exe interface ip set global neighborcachelimit=4096 taskoffload=enabled | Out-Null | ||
netsh.exe interface tcp set global hystart=disabled | Out-Null | ||
|
||
|
||
# Function to add or update registry keys | ||
function Set-RegKey { | ||
param ( | ||
[string]$path, | ||
[string]$name, | ||
[string]$value, | ||
[string]$type = "DWord" | ||
) | ||
|
||
if ($type -eq "DWord") { | ||
Set-ItemProperty -Path $path -Name $name -Value $value -Type DWord -Force | ||
} else { | ||
Set-ItemProperty -Path $path -Name $name -Value $value -Type String -Force | ||
} | ||
} | ||
|
||
# Adding NetBIOS Options | ||
$netbtPath = "HKLM:\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces" | ||
$interfaces = Get-ChildItem -Path $netbtPath | ||
|
||
foreach ($interface in $interfaces) { | ||
Set-RegKey -path $interface.PSPath -name "NetbiosOptions" -value 2 -type "DWord" | ||
} | ||
|
||
# Updating registry keys for network interfaces | ||
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" | ||
$networkInterfaces = Get-ChildItem -Path $regPath | Where-Object { $_.Name -match "000" } | ||
|
||
foreach ($interface in $networkInterfaces) { | ||
# Disable Flow Control | ||
Set-RegKey -path $interface.PSPath -name "*FlowControl" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "FlowControlCap" -value "0" -type "String" | ||
|
||
# Remove Interrupt Delays | ||
Set-RegKey -path $interface.PSPath -name "TxIntDelay" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "TxAbsIntDelay" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "RxIntDelay" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "RxAbsIntDelay" -value "0" -type "String" | ||
|
||
# Remove Adapter Notification | ||
Set-RegKey -path $interface.PSPath -name "FatChannelIntolerant" -value "0" -type "String" | ||
|
||
# Disable Interrupt Moderation | ||
Set-RegKey -path $interface.PSPath -name "*InterruptModeration" -value "0" -type "String" | ||
|
||
# Disable - Allow the computer to turn off this device to save power | ||
Set-RegKey -path $interface.PSPath -name "LogDisconnectEvent" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "LogLinkStateEvent" -value 16 -type "String" | ||
|
||
# Disable - Reduce network speed to 10/100 | ||
Set-RegKey -path $interface.PSPath -name "GigaLite" -value "0" -type "String" | ||
|
||
# Disabling Green Ethernet | ||
Set-RegKey -path $interface.PSPath -name "*EEE" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "AdvancedEEE" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "AutoPowerSaveModeEnabled" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "EnableEDT" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "EnableGreenEthernet" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "EEELinkAdvertisement" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "ENPWMode" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "GPPSW" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "PowerSavingMode" -value "0" -type "String" | ||
Set-RegKey -path $interface.PSPath -name "ULPMode" -value "0" -type "String" | ||
} | ||
|
||
# Disabling Nagle's Algorithm for better Gaming Latency | ||
$tcpipPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" | ||
$tcpInterfaces = Get-ChildItem -Path $tcpipPath | Where-Object { $_.Name -match "1" } | ||
|
||
foreach ($tcpInterface in $tcpInterfaces) { | ||
Set-RegKey -path $tcpInterface.PSPath -name "TCPNoDelay" -value 1 -type "DWord" | ||
Set-RegKey -path $tcpInterface.PSPath -name "TcpAckFrequency" -value 1 -type "DWord" | ||
Set-RegKey -path $tcpInterface.PSPath -name "TcpDelAckTicks" -value 0 -type "DWord" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# A string list which has listed capabilities or FoD to be disabled and removed. | ||
$flist = @("*Realtek*", "*Intel*", "*Broadcom*", "*Qualcomm*", "*Marvel*", | ||
"*Vmware*", "*Ethernet*", "*InternetExplorer*", "*StepsRecorder*", | ||
"*DirectX.Configuration.Database*", "*WindowsMediaPlayer*", | ||
"*Wallpapers*", "*PowerShell*", "*QuickAssist*", "*OneSync*", "*LA57*", "*Ralink*", "*Virtual*", "*TCP*", "*Hello*") | ||
|
||
foreach ($item in $flist) { | ||
# Get the list of capabilities that match the current item | ||
$checkCapabilities = Get-WindowsCapability -Online | Where-Object { $_.Name -like $item } | ||
|
||
foreach ($checkCapability in $checkCapabilities) { | ||
if ($checkCapability.State -eq 'Installed') { | ||
try { | ||
# Remove each capability found | ||
Remove-WindowsCapability -Online -Name $checkCapability.Name -ErrorAction Stop | ||
} catch { | ||
Write-Host "Error at $($checkCapability.Name): $($_.Exception.Message)" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# a string list which it has listed features to be disabled. | ||
|
||
$flist = @("TFTP", "TIFFIFilter", "Containers", "MediaPlayback", "SimpleTCP", "WorkFolders-Client", "Client-ProjFS", "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "TelnetClient", "SearchEngine-Client-Package", "Printing-XPSServices-Features", "Windows-Defender-Default-Definitions", "Printing-PrintToPDFServices-Features","DirectoryServices-ADAM-Client","SearchEngine-Client-Package","SmbDirect","MSRDC-Infrastructure","Printing-Foundation-Features","Printing-Foundation-InternetPrinting-Client","Microsoft-RemoteDesktopConnection") | ||
|
||
foreach ($feature in $flist) { | ||
if ((Get-WindowsOptionalFeature -Online -FeatureName $feature).State -eq 'Enabled') { | ||
Write-Output "Disabling feature $feature" | ||
Disable-WindowsOptionalFeature -Online -FeatureName $feature -NoRestart | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$Host.UI.RawUI.WindowTitle = "Unsplitter" | ||
Set-Location -Path $PSScriptRoot | ||
$os = Get-WmiObject -Class Win32_OperatingSystem | ||
$mem = $os.TotalVisibleMemorySize | ||
$ram = $mem + 1024000 | ||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Value $ram -Type DWord |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[-HKEY_CLASSES_ROOT\CLSID\{FFCDB781-D71C-4D10-BD5F-0492EAFFD90A}] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
; unregister windows gameux | ||
|
||
[-HKEY_CLASSES_ROOT\CLSID\{9A5EA990-3034-4D6F-9128-01F3C61022BC}] | ||
|
||
[-HKEY_CLASSES_ROOT\CLSID\{DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4}] | ||
|
||
[-HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{9A5EA990-3034-4D6F-9128-01F3C61022BC}] | ||
|
||
[-HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9A5EA990-3034-4D6F-9128-01F3C61022BC}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{9A5EA990-3034-4D6F-9128-01F3C61022BC}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{9A5EA990-3034-4D6F-9128-01F3C61022BC}] | ||
|
||
[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4}] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32] | ||
@="" | ||
|
||
[HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64] | ||
@="" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.