Code: Select all
<#
Bitwig / DAW Performance Optimization Script for Windows 11
------------------------------------------------------------
Safe version – disables known background services and telemetry,
turns off Game Bar, indexing, and unnecessary background apps,
and enables High Performance power mode.
#>
Write-Host "Optimizing system for audio performance..." -ForegroundColor Cyan
# --- Power Plan ---
Write-Host "Setting High Performance power plan..."
powercfg -setactive SCHEME_MIN
# Optionally enable Ultimate Performance if supported
if ((powercfg -list) -notmatch "Ultimate Performance") {
Write-Host "Enabling Ultimate Performance power plan..."
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 | Out-Null
}
powercfg -setactive e9a42b02-d5df-448d-aa00-03f14749eb61
# --- Disable Windows Telemetry and Diagnostics ---
Write-Host "Disabling telemetry and diagnostic tracking..."
Stop-Service DiagTrack -ErrorAction SilentlyContinue
Set-Service DiagTrack -StartupType Disabled
Stop-Service dmwappushservice -ErrorAction SilentlyContinue
Set-Service dmwappushservice -StartupType Disabled
# --- Disable Windows Search Indexing ---
Write-Host "Disabling Windows Search indexing..."
Stop-Service WSearch -ErrorAction SilentlyContinue
Set-Service WSearch -StartupType Disabled
# --- Disable Background Apps (Store Apps) ---
Write-Host "Disabling background apps (Store Apps)..."
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 1 /f | Out-Null
# --- Disable Game Bar / Game DVR ---
Write-Host "Disabling Game Bar and Game DVR..."
reg add "HKCU\Software\Microsoft\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKLM\Software\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f | Out-Null
# --- Disable OneDrive Auto-Start ---
Write-Host "Disabling OneDrive auto start..."
reg add "HKCU\Software\Microsoft\OneDrive" /v "UserSettingSyncMigration" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /t REG_SZ /d "" /f | Out-Null
# --- Disable SysMain (Superfetch) ---
Write-Host "Disabling SysMain service..."
Stop-Service SysMain -ErrorAction SilentlyContinue
Set-Service SysMain -StartupType Disabled
# --- Disable Windows Tips / Suggestions / Ads ---
Write-Host "Disabling Windows tips, suggestions, and ads..."
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /t REG_DWORD /d 0 /f | Out-Null
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /t REG_DWORD /d 0 /f | Out-Null
# --- Disable Widgets (WebView2 runtime overhead) ---
Write-Host "Disabling Widgets..."
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f | Out-Null
# --- Disable USB Power Saving ---
Write-Host "Disabling USB selective suspend..."
powercfg -change -standby-timeout-ac 0
powercfg -change -disk-timeout-ac 0
powercfg -change -monitor-timeout-ac 0
reg add "HKLM\SYSTEM\CurrentControlSet\Services\USB" /v DisableSelectiveSuspend /t REG_DWORD /d 1 /f | Out-Null
# --- Exclude Audio Folders from Defender ---
Write-Host "Excluding common DAW folders from Defender..."
Add-MpPreference -ExclusionPath "C:\Program Files\Bitwig Studio" -ErrorAction SilentlyContinue
Add-MpPreference -ExclusionPath "C:\VSTPlugins" -ErrorAction SilentlyContinue
Add-MpPreference -ExclusionPath "D:\Audio Projects" -ErrorAction SilentlyContinue
Write-Host "Optimization complete. Restart Windows to apply all changes." -ForegroundColor Green
