Users Guide
Table Of Contents
命令行介面 (CLI) 選項
在採用 Warranty 工具時,請使用下列命令行介面 (CLI) 選項和語法。
表 1. 命令行介面 (CLI) 選項和語法
CLI 選項名稱 CLI 選項縮寫 說明 語法
/Help /H 顯示用途 (本資訊)。 DellWarranty-CLI.exe /H
/Usage /U 顯示用途 (本資訊)。 DellWarranty-CLI.exe /U
/InputFile /I
註: 若要讓 Warranty 工具正常運作,您必須
至少提供兩個輸入旗標的其中一個 (/I 或 /
Ics)。
服務標籤輸入 CSV 檔的完整路徑
(C:\FileName.csv)
必要參數,可與組態管理員連接字串一起使用。
DellWarranty-CLI.exe /
I=C:\FileName.csv
/InputCfgMgrConnectionString /Ics
註: 若要讓 Warranty 工具正常運作,您必須
至少提供兩個輸入旗標的其中一個 (/I 或 /
Ics)。
連接至組態管理員資料庫的連接字串。
("Data Source=[host];Database=[Configuration
Manager dbname];Integrated Security=true;")
("Data Source=[host];Database=[ Configuration
Manager dbname];User
id=[username];Password=[userpwd]")
必要參數,可與輸入 CSV 檔案一起使用。
DellWarranty-CLI.exe /
Ics="Data
Source=[host];Database
=[ Configuration
Manager
dbname];Integrated
Security=true;"
/ExportFile /E
CSV 匯出檔的完整路徑。檔案將會在 CLI 執行後
包含保固資訊。
(預設:[ProgramData\Dell\Warranty\]
[WarrantyOutput_[yyyyMMddhhmmss].csv)
(C:\WarrantyOutputFileName.csv
此參數為選用。
DellWarranty-
CLI.exe /I=
C:\FileName.csv /
E=C:\WarrantyOutputfile
name.csv
/OutputConnectionString /Ocs
連接至輸出 Warranty 資料庫的連接字串。將會
在 CLI 執行後包含保固資訊。
("Data Source=[host];Database=[Warranty
dbname];Integrated Security=true;")
此參數為選用。
/Ocs 命令能以給定的名稱建立資料庫 (如上所
示)。資料庫位置是 %USERPROFILE%\
[Warranty dbname].mdf,而記錄檔是
%USERPROFILE%\[Waranty dbname]_log.ldf。
在 Windows 10 系統上,%USERPROFILE% 變數
通常是 C:\Users\[username]\。
資料庫建立完成後,/Ocs 命令會建立兩個額外
的表格:Dell_Asset 和 Dell_AssetEntitlement。
這些表格用於儲存保固資料,表格會先清除內
DellWarranty-
CLI.exe /I=
C:\FileName.csv /
Ocs="Data
Source=[host];Database
=[Warranty
dbname];Integrated
Security=true;"
A
命令行介面 (CLI) 選項 9