判斷電腦上的BITS版本

若要判斷客戶端電腦上的 BITS 版本,請檢查QMgr.dll的版本。 若要尋找 DLL 版本號碼:

  • 在 %windir%\System32 中找出QMgr.dll。
  • 以滑鼠右鍵按兩下QMgr.dll,然後按兩下 [ 屬性]。
  • 按兩下 [版本] 索引標籤。
  • 記下版本號碼。

您也可以使用下列 PowerShell 程式代碼來判斷系統上.dll版本:

get-item "C:\Windows\System32\qmgr.dll" | Select-Object -ExpandProperty VersionInfo

如果 DLL 也存在於 %windir%\System32\Bits 中,請重複上述步驟。 BITS 會使用具有較高版本號碼的 DLL。

下表列出 BITS 的版本及其對應的QMgr.dll檔案版本號碼。

BITS 版本 QMgr.dll檔案版本號碼
BITS 10.1 7.8.xxxx.xxxx
BITS 5.0 7.7.xxxx.xxxx
BITS 4.0 7.5.xxxx.xxxx
BITS 3.0 7.0.xxxx.xxxx
BITS 2.5 6.7.xxxx.xxxx
BITS 2.0 6.6.xxxx.xxxx
BITS 1.5 6.5.xxxx.xxxx
BITS 1.2 6.2.xxxx.xxxx
BITS 1.0 6.0.xxxx.xxxx

 

您也可以使用符號類別識別碼來判斷電腦上註冊的 BITS 版本。 下表列出 BITS 的版本及其對應的符號類別識別碼。 如果未註冊類別,CoCreateInstance 函式會傳回REGDB_E_CLASSNOTREG

BITS 版本 符號類別標識碼
BITS 10.1 CLSID_BackgroundCopyManager10_1
BITS 5.0 CLSID_BackgroundCopyManager5_0
BITS 4.0 CLSID_BackgroundCopyManager4_0
BITS 3.0 CLSID_BackgroundCopyManager3_0
BITS 2.5 CLSID_BackgroundCopyManager2_5
BITS 2.0 CLSID_BackgroundCopyManager2_0
BITS 1.5 CLSID_BackgroundCopyManager1_5
BITS 1.2、1.0 CLSID_BackgroundCopyManager