Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Enable-WindowsOptionalFeature

Enable-WindowsOptionalFeature - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Enable-WindowsOptionalFeature

Short description
Enables a feature in a Windows image.

Syntax
Enable-WindowsOptionalFeature [-All [<SwitchParameter>]] [-LimitAccess [<SwitchParameter>]] [-LogLevel <LogLevel>] [-Lo
gPath <String>] [-NoRestart [<SwitchParameter>]] [-PackageName <String>] [-ScratchDirectory <String>] [-Source <String[
]>] [-SystemDrive <String>] [-WindowsDirectory <String>] -FeatureName <String[]> -Path <String> [<CommonParameters>]
Enable-WindowsOptionalFeature [-All [<SwitchParameter>]] [-LimitAccess [<SwitchParameter>]] [-LogLevel <LogLevel>] [-Lo
gPath <String>] [-NoRestart [<SwitchParameter>]] [-PackageName <String>] [-ScratchDirectory <String>] [-Source <String[
]>] [-SystemDrive <String>] [-WindowsDirectory <String>] -FeatureName <String[]> -Online [<SwitchParameter>] [<CommonPa
rameters>]





Description
The Enable-WindowsOptionalFeature cmdlet enables or restores an optional feature in a Windows image.

Use the Online parameter to specify the running operating system on your local computer, or use the Path parameter to s
pecify the location of a mounted Windows image.

 
                      
The PackageName parameter specifies the package that the feature is a component of. This parameter is optional when the
 package is the Windows Foundation package.

 
                      
The FeatureName parameter specifies the feature to add. You can specify more than one feature in the same package. Sepa
rate feature names with a comma.

 
                      
The Source parameter specifies the location of files that are needed to restore a removed feature.

 
                      
The LimitAccess parameter prevents access to Windows Update (WU) as a Source for restoring features to online images. T
he All parameter enables all parent features of the specified feature before enabling the specified feature. The parent
 feature will be enabled with default values.