提升 Windows 執行效能的設定可以透過登錄檔中的多個項目進行調整。

與提升執行效能相關的常見登錄檔項目如下:

  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management:

    • DisablePagingExecutive:禁用對執行檔的分頁,可以釋放系統記憶體。
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem:

    • NtfsDisable8dot3NameCreation:禁用短檔名的創建,可以加快檔案系統的效能。
  3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters:

    • Size:調整伺服器緩衝區的大小,可以提升檔案共享效能。
  4. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile:

    • NetworkThrottlingIndex:調整網路傳輸速度限制,可以提升網路效能。
  5. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl:

    • Win32PrioritySeparation:調整工作優先級的分離策略,可以優化系統效能。

請注意,修改登錄檔時需謹慎操作,建議先備份登錄檔,並確保了解每個項目的功能和效果。

以PowerShell修改程式如下:(須以系統管理員執行)

# 定義登錄檔路徑和項目
$memoryManagementPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
$fileSystemPath = "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem"
$lanmanServerPath = "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters"
$multimediaPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile"
$priorityControlPath = "HKLM:\SYSTEM\CurrentControlSet\Control\PriorityControl"

# 調整登錄檔項目
Set-ItemProperty -Path $memoryManagementPath -Name "DisablePagingExecutive" -Value 1
Set-ItemProperty -Path $fileSystemPath -Name "NtfsDisable8dot3NameCreation" -Value 1
Set-ItemProperty -Path $lanmanServerPath -Name "Size" -Value 3
Set-ItemProperty -Path $multimediaPath -Name "NetworkThrottlingIndex" -Value 10
Set-ItemProperty -Path $priorityControlPath -Name "Win32PrioritySeparation" -Value 26

# 顯示修改後的登錄檔項目值
Get-ItemProperty -Path $memoryManagementPath
Get-ItemProperty -Path $fileSystemPath
Get-ItemProperty -Path $lanmanServerPath
Get-ItemProperty -Path $multimediaPath
Get-ItemProperty -Path $priorityControlPat

 

創作者介紹
創作者 Working Notes-My Work Diary 的頭像
laizhucheng

Working Notes-My Work Diary

laizhucheng 發表在 痞客邦 留言(0) 人氣( 6 )