Windows Vista Tip: Installing Optional Features

Windows Vista's optional features can be added in a number of ways. It can be done via Windows System Image Manager by adding the component to your unattend.xml. It can be serviced offline using the Package Manger utility, it can added online using the OCSetup utility, or manually via the Control Panel applet. This post will cover using OCSetup as this is the most likely for Administrator to use it is also handy for those die hard command line junkies that are morally opposed to using the Control Panel applet. 

Start a command prompt as an administrator account. Right click on the command prompt and select "Run As Administrator" is the easiest way. If successful it should contain "Administrator" in the title bar of the command window. From this prompt you will have sufficient rights to run OCSetup.exe.

To use OCSetup you first need to get the command line name for the Windows Feature that you would like to install.  This list can be found in the Windows Automated Installation Kit, but for convenience here are some of the common ones.

Windows Feature

Command-Line Name

Description

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.

 

SNMP feature

SNMP

Simple Network Management Protocol. Application layer protocol that facilitates the exchange of management information between network devices.

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.

Now that you have the command line name you can run OCSetup from your elevated command prompt using the following command line syntax.

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

Parameter Description

/?, /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.

Example: OCSetup IIS-WebServerRole /Log:%temp%\IIS.log /norestart /quiet

There is no UI on this and it can be a little slow, just be patient. Also note that this same concept also applies to Windows Longhorn Server roles as well.

Additional Windows Vista Tips

Technorati tags: , ,

Posted Dec 18 2006, 07:41 AM by Josh Phillips
Filed under: , ,
Did you enjoy this article? If yes, then subscribe to our RSS 2.0 feed

Comments

anil wrote re: Windows Vista Tip: Installing Optional Features
on 12-18-2006 9:36 AM

thanks for the tip..was looking for it :)

regards

anil

http://www.errorofrum.com

Windows is a registered trademark of Microsoft Corporation.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems Themed By nb development