Share via


cmstp

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

安裝或移除連線管理員服務設定檔。 如果沒有搭配選擇性參數使用,cmstp 會安裝服務設定檔,包含適用於作業系統和使用者權限的預設設定。

語法

語法 1 - 這是自訂安裝應用程式中所使用的一般語法。 若要使用此語法,您必須從包含 <serviceprofilefilename>.exe 檔案的目錄執行 cmstp

<serviceprofilefilename>.exe /q:a /c:cmstp.exe <serviceprofilefilename>.inf [/nf] [/s] [/u]

語法 2

cmstp.exe [/nf] [/s] [/u] [drive:][path]serviceprofilefilename.inf

參數

參數 描述
<serviceprofilefilename>.exe 依名稱指定包含您要安裝之設定檔的安裝套件。

語法 1 需要,但對語法 2 無效。

/q:a 指定應該安裝設定檔,而不提示使用者。 仍會出現安裝成功的驗證訊息。

語法 1 需要,但對語法 2 無效。

[drive:][path] <serviceprofilefilename>.inf 必要。 依名稱指定決定應如何安裝設定檔的組態檔。

[drive:][path] 參數對語法 1 無效。

/nf 指定不應該安裝支援檔案。
/s 指定應該以無訊息方式安裝或解除安裝服務設定檔 (不提示使用者回應或顯示驗證訊息)。 這是您可以結合 /u 使用的唯一參數。
/u 指定應該解除安裝服務設定檔。
/? 在命令提示字元顯示說明。

範例

若要安裝「虛構」服務設定檔且不含任何支援檔案,請輸入:

fiction.exe /c:cmstp.exe fiction.inf /nf

若要以無訊息方式安裝單一使用者的「虛構」服務設定檔,請輸入:

fiction.exe /c:cmstp.exe fiction.inf /s /su

若要以無訊息方式解除安裝「虛構」服務設定檔,請輸入:

fiction.exe /c:cmstp.exe fiction.inf /s /u