Skip to content

Commit

Permalink
fix(FINALIZE): remove SSD specific stuff (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed May 30, 2024
1 parent e4e9a1a commit 45fc4a1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/playbook/Executables/FINALIZE.ps1
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# SSD specific settings
if ((Get-Partition | Where-Object { $_.IsBoot } | Get-Disk | Get-PhysicalDisk).MediaType -eq "SSD") {
# Remove lower filters for rdyboost driver
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}"
$val = (Get-ItemProperty -Path $regPath -Name "LowerFilters")."LowerFilters" | Where-Object { $_ -ne 'rdyboost' }
Set-ItemProperty -Path $regPath -Name "LowerFilters" -Value $val -Force

# Disable ReadyBoost
Set-Service -Name rdyboost -StartupType Disabled
# Remove ReadyBoost tab
Remove-Item -Path "Registry::HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" -Force -ErrorAction SilentlyContinue

# Disable SysMain - contains Superfetch, Prefetch, Memory Management Agents
Set-Service -Name SysMain -StartupType Disabled
}

# Disable brightness slider service if it's not supported on the current display
$startup = 'Automatic'
try {
Expand Down

1 comment on commit 45fc4a1

@Protator906
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad call, man.
It was disabled until now for a reason.
Prefetch is pointless on systems with SSDs, and memory compression is broken.
Revert this change, pls.

Please sign in to comment.