文章編號: 222444 - 上次校閱: 2007年10月11日 - 版次: 5.3

如何新增或移除 Windows 元件就是使用 Sysocmgr.exe

系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。
全部展開 | 全部摺疊

結論

本文將告訴您,如何新增或移除 Windows 元件使用 Sysocmgr.exe 工具。

其他相關資訊

若要新增或移除 Windows 元件,您可以在命令提示字元使用 Sysocmgr.exe 工具。您可以使用下列命令列參數具有 Sysocmgr.exe:
  • /i: path to Sysoc.inf file,位置 path to Sysoc.inf file 是 Sysoc.inf 的檔案完整路徑,例如:

    c:\windows\inf\sysoc.inf
    						
  • /u: path to answer file,位置 path to answer file 是回應檔案,其中包含要新增或移除的項目清單之完整路徑。
  • / q-在 (不顯示網頁) 的無訊息模式下執行 Sysocmgr.exe
  • /-抑制重新開機 (如果需要的話)
附註此程序無法運作,並不支援 Microsoft 傳真服務、 與 Windows 媒體播放機、 COM + 分散式交易協調器。這些是不是卸除式的核心元件。 此外,在 Windows 2000 中此程序無法配合 Microsoft 傳真服務。這是因為 Microsoft 傳真服務不在 Windows 2000 中個別的元件。而是,Microsoft 傳真服務是在 Windows 2000 中較大群組的子元件。

回應檔案可以是任何 Windows 回應檔案,且只剖析 [元件] 及 [NetOptionalComponents] 區段。如下所示的範例檔案:
[Components]
Netoc = on
Reminst = on
Paint = off
pinball = off
Solitaire = off

[NetOptionalComponents]
lpdsvc = 1
SimpTcp = 1
wins = 1
				
啟動安裝或解除安裝這些元件使用 Sysocmgr.exe,輸入下列命令 (檔案儲存為 c:\ocm.txt):
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt
如需詳細資訊請參閱自動文件。

這篇文章中的資訊適用於:
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows XP Home Edition (家用版)
  • Microsoft Windows XP Professional
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003 Service Pack 1
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Standard x64 Edition
關鍵字:?
kbmt kbhowto KB222444 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:222444? (http://support.microsoft.com/kb/222444/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。