Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

事件 ID 2004:PerfNet 無法開啟伺服器服務,效能計數器錯誤修復

編輯:關於伺服器

錯誤描述

事件檢視器中記錄來源 PerfNet,事件 ID 2004:「無法開啟伺服器服務。伺服器效能資料將不會被傳回。錯誤碼為 DWORD 0。」開機時彈出錯誤對話框,影響使用體驗。

解決方法:註冊表禁用 PerfNet 效能計數器

  1. 開啟註冊表編輯器 (regedit)。
  2. 導航至:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfNet\Performance
  3. 右鍵新建 DWORD (32 位) 值,名稱:Disable Performance Counters。
  4. 設定數值為 1。
  5. 重新啟動伺服器。
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfNet\Performance]
"Disable Performance Counters"=dword:00000001

替代方案:使用 Windows 2000 Resource Kit 工具

下載 exctrlst.exe (Extensible Performance Counter List),勾選 PerfNet 並取消「Performance Counters Enabled」核取方塊。
下載連結:Microsoft 官方下載頁

驗證

重啟後事件檢視器不再出現 2004 錯誤,開機無彈窗干擾。

Copyright © Windows教程網 All Rights Reserved