Skip to content

Commit

Permalink
15.5 code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionuț Bara committed Aug 3, 2024
1 parent 640df57 commit 3e4e714
Show file tree
Hide file tree
Showing 612 changed files with 20,918 additions and 825 deletions.
16 changes: 16 additions & 0 deletions @Management/RegistryUnifier.ps1
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"

This file was deleted.

4 changes: 0 additions & 4 deletions MelodyScript.Settings/Network/Disable NLA Active Probing.reg

This file was deleted.

20,600 changes: 20,600 additions & 0 deletions Output.reg

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions PowerRun.ini

This file was deleted.

40 changes: 18 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# WARNING:
When you run this script it will change A LOT of windows preferences to the liking of autor of this script, Once executing the exe, it does start, it does not ask for anything and there is NO WAY TO ROLLABACK the changes. Proceed with extreme caution. Try in VM. Extract the source and use individual files. Before to open the app, extract with WinRAR or 7-Zip and remove the unwanted tweaks/registry files. There are organized in **MelodyScript.Settings** folder.
When you run this script it will change A LOT of windows preferences to the liking of autor of this script, Once executing the exe, it does start, it does not ask for anything and there is NO WAY TO ROLLABACK the changes. Proceed with extreme caution. Try in VM. Extract the source and use individual files. Before to open the app, extract with WinRAR or 7-Zip and remove the unwanted tweaks/registry files. There are organized in **Settings** folder.

# Melody Script
<h1 align="center">
Expand Down Expand Up @@ -84,12 +84,12 @@ HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore
- Windows Explorer Tweaks


- <a href=https://github.com/ionuttbara/melody_windows/tree/main/MelodyScript.Settings/Virtualization> Virtualization Tweaks </a>
- <a href=https://github.com/ionuttbara/melody_windows/tree/main/Settings/Virtualization> Virtualization Tweaks </a>

| Applied Tweak | Description |
| ------ | ------ |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/MelodyScript.Settings/Virtualization/Disable%20AppV%20Virtualization.reg> App-V Virtualization Disabling </a> | |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/MelodyScript.Settings/Virtualization/Disable%20VBS.reg>VBS Disablation </a> | Disables Virtualization Based Security |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Settings/Virtualization/Disable%20AppV%20Virtualization.reg> App-V Virtualization Disabling </a> | |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Settings/Virtualization/Disable%20VBS.reg>VBS Disablation </a> | Disables Virtualization Based Security |


- Telemetry Disablation
Expand All @@ -107,26 +107,26 @@ HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore

- Tasks and Services

Removes Services and Tasks to get PC to boot faster and get lower RAM usage. Go to <a href=https://github.com/ionuttbara/melody_windows/tree/main/MelodyScript.Settings/Tasks>MelodyScript.Settings\Tasks </a> to check what tasks are removed and <a href=https://github.com/ionuttbara/melody_windows/tree/main/MelodyScript.Settings/Services> MelodyScript.Settings\Services </a> for Services.
Removes Services and Tasks to get PC to boot faster and get lower RAM usage. Go to <a href=https://github.com/ionuttbara/melody_windows/tree/main/Settings/Tasks>Settings\Tasks </a> to check what tasks are removed and <a href=https://github.com/ionuttbara/melody_windows/tree/main/Settings/Services> Settings\Services </a> for Services.

- Taskbar


# Script Section
> Starting with Melody Script 15.5, i've added Script Section. This some cmdlets ported to powershell. This helps to apply tweaks and things correctly.
> They're located in *Script* folder.

# Tweaks for 3rd party Software
> In this part i have a research to disable 3rd party Updaters , metrics and telemetry.
> Some config!
urations are policies and be found to [admx.help].

| Applied Tweak | Description | Required Windows Version |
| ------ | ------ |------ |
|Office Tweaks| Disables Office Telemetry and data collection | Office 2013 or newer|
|Chrome Tweaks| Adds uBlock Origin Extension, Tweaking DNS Client of Browser | Chrome 96 or newer|
|Edge Tweaks| Adds uBlock Origin Extension, Tweaking DNS Client of Browser | Edge 92 or newer|
|Chromium Browser Updater Tweaks| Optimizes Update Pipeline |Chrome/Edge Updater 1.42 or newer|
| StartAllBack Configurations | Revert to Windows 7 UI Explorer and optimize some menus in Start and more zones | StartIsBack 3.5 or newer |
| Script Name | Description |
| ------ | ------ |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Disable%20HPET.ps1>Disable HPET </a> | Disables *High precision event timer* from Device Manager.|
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Enable%DirectPlay
.ps1>Enable DirectPlay</a> | Enables DirectPlay Support for Windows 8+. |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Networking%20Tweaks.ps1>Networking Tweaks</a> | Optimizes network. Ported fron command2.bat. |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Remove%20Capabilities.ps1>Remove Capabilities</a> and <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Remove%20features.ps1>Remove features </a> | Removes features and FoD (Features OnDemand) packages |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Unsplit%20Services.ps1>Unsplit Services</a> | Decreases svchost.exe processes. |
| <a href=https://github.com/ionuttbara/melody_windows/blob/main/Scripts/Disable%20Device%20to%20TurnOff%20this%20device%20to%20save%20power.ps1>Disable Device to TurnOff this device to save power</a> | Untick the option to turn off devicess to save power from Device Manager. |


# Optimization and organizing Context Menus
Expand All @@ -140,7 +140,7 @@ Defined locations which Melody Script modifies:
- Folder (Folder right-click menu)
- Directory (Director right-click menu, including folders + system folders such as This PC, Library Folders, System Folders such Control Panel and custom system created folders)
- Background (right click menu of desktop or an explorer window)
- Disk (Drive Context Menu (Disk drives such CD, DVD, HDD, SSD, USB , SD cards etc.))
- Disk (Drive Context Menu (Disk drives such CD, DVD, HDD, SSD, USB, SD cards etc.))

| Context Menu Name | Menu Type | Description |
| ------ | ------ | ------ |
Expand All @@ -160,10 +160,6 @@ Defined locations which Melody Script modifies:

Some privacy Tweaks (registry Settings) are provided by Microsoft (Policy Tweaks) Check out the website by clicking the <a href="https://admx.help">link</a>.
A smaller part of performance Tweaks are provied by AskVG website, winaero.com Website and reverse engienerring of Winaero Tweaker, O&O ShutUp10, W10 Privacy and Wise Care 365, applied in Windows Telemetry Data Collection Registry File.
Latency Tweaks are provided by me. Latency Service is a SFX version by TimerTool, which this tool isn't mine.
EarTrumpet Integration is created by me. The application is created by File-New-Project. (I forked the project).
Also Clipboard "Integration" is provided by me. The Application is created by Ditto. (provided with GNU GPL-3 License).


# Some bcdedit commands

Expand Down
33 changes: 33 additions & 0 deletions Scripts/Disable Device to TurnOff this device to save power.ps1
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()
}
}
}
1 change: 1 addition & 0 deletions Scripts/Disable HPET.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Get-PnpDevice -FriendlyName "High precision event timer" | Disable-PnpDevice -Confirm:$false
1 change: 1 addition & 0 deletions Scripts/Enable DirectPlay.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable-WindowsOptionalFeature -Online -FeatureName "DirectPlay" -NoRestart
110 changes: 110 additions & 0 deletions Scripts/Networking Tweaks.ps1
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"
}
21 changes: 21 additions & 0 deletions Scripts/Remove Capabilities.ps1
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)"
}
}
}
}
10 changes: 10 additions & 0 deletions Scripts/Remove Features.ps1
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
}
}
6 changes: 6 additions & 0 deletions Scripts/Unsplit Services.ps1
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
3 changes: 3 additions & 0 deletions Settings/Bloatware Remover/FaultRep.reg
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.
23 changes: 23 additions & 0 deletions Settings/Bloatware Remover/gameux_unreg.reg
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.
Binary file added Settings/Context Menu/powershell.reg
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions Settings/Devices/Disable F1 Key.reg
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.
Binary file added Settings/Devices/Precision TouchPad Settings.reg
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.
Loading

0 comments on commit 3e4e714

Please sign in to comment.