Windows Vista 技巧: 安裝可選功能

2010-08-28 10:50:35來源:西部e網(wǎng)作者:

Windows Vista的可選功能可以有多種添加方式:使用Windows系統(tǒng)鏡像管理器、使用Package Manager工具、OCSetup工具或者手工使用控制面板修改。這次我們介紹管理員常用的OCSetup方式添加,這需要使用到命令提示行工具,以管理員方式運行CMD。

OCSetup 可以從Windows Automated Installation Kit下載得到,要使用到的命令如下:

Windows 功能 命令行名稱 描述
Services for NFS ServicesForNFS-ClientOnly Network File System is a protocol developed by the Internet Engineering Task Force (IETF).
 Games  InboxGames  Games that ship with the operating system.
 Internet Information Services  IIS-WebServerRole  Web server that provides a Web application infrastructure for all versions of Windows.
 Subsystem for UNIX-based Applications  SUA  Provides compatibility with UNIX-based applications.
 Telnet Client  TelnetClient  Client for the terminal emulation program for TCP/IP networks.
 Telnet Server  TelnetServer  Server for the terminal emulation program for TCP/IP networks.
 TFTP Client  TFTP  Simple form of FTP with no security features.

ocsetup.exe [/?] [/h] [/help] component [/log:file] [/norestart] [/passive] [/quiet] [/unattendfile:file] [/uninstall] [/x: parameter]

參數(shù) 描述

/?, /h, /help

Displays help for all options when run with or without options.

component

The name of the component to be installed or uninstalled. The component name is case-sensitive.

/log: file

Specifies a non-default log file location.

/norestart

The computer is not rebooted even if required after component installation.

/passive

Unattended mode. Progress only.

/quiet

Quiet mode. No user interaction.

/unattendfile: file

The file contains overrides or additions to default configuration settings. Implies passive mode.

/uninstall

Uninstalls the component. Installation is default.

/x: parameter

Additional configuration parameters to be applied when installing a component.

例子: OCSetup IIS-WebServerRole /Log:%temp%IIS.log /norestart /quiet

運行時沒有UI界面,可能會有些慢,需要耐心等待。同樣,這個方法也可以運用到Windows Longhorn Server的角色上。

關(guān)鍵詞:Vista