From 45fc4a17401f1d0f3557714b8fea0fe6c33f0b44 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Thu, 30 May 2024 21:34:37 +0100 Subject: [PATCH] fix(FINALIZE): remove SSD specific stuff (#1093) --- src/playbook/Executables/FINALIZE.ps1 | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/playbook/Executables/FINALIZE.ps1 b/src/playbook/Executables/FINALIZE.ps1 index 8dbd850b38..6df42a5602 100644 --- a/src/playbook/Executables/FINALIZE.ps1 +++ b/src/playbook/Executables/FINALIZE.ps1 @@ -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 {