Thursday, February 24, 2011

Optional Features

Optional Features

You can use the Active Directory module for Windows PowerShell to manage the optional features in Active Directory Domain Services (AD DS). The topics in this section explain how to use the Active Directory module to accomplish many of the common tasks that are associated with management of the optional features in AD DS:
  • Find All Available Optional Features

    This topic explains how to use the Active Directory module for Windows PowerShell to find all available optional features in Active Directory Domain Services (AD DS).

    Example

    The following example demonstrates how to find all available Active Directory optional features:
    Get-ADOptionalFeature -Filter *

    Additional information

    In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get- ADOptionalFeature cmdlet by using the -Properties parameter:
    • EnabledScopes
    • FeatureGUID
    • FeatureScope
    • IsDisableable
    • RequiredDomainMode
    • RequiredForestMode
    For a full explanation of the parameters that you can pass to Get-ADOptionalFeature, at the Active Directory module command prompt, type Get-Help Get-ADOptionalFeature –detailed, and then press ENTER.

  • Retrieve Details of an Optional Feature

    This topic explains how to use the Active Directory module for Windows PowerShell to retrieve the details of an optional feature in Active Directory Domain Services (AD DS).

    Example

    The following example demonstrates how to retrieve the details of the optional feature Active Directory Recycle Bin in the Fabrikam.com forest:
    Get-ADOptionalFeature 'Recycle Bin Feature'

    Additional information

    In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get- ADOptionalFeature cmdlet by using the -Properties parameter:
  • EnabledScopes
  • FeatureGUID
  • FeatureScope
  • IsDisableable
  • RequiredDomainMode
  • RequiredForestMode
For a full explanation of the parameters that you can pass to Get-ADOptionalFeature, at the Active Directory module command prompt, type Get-Help Get-ADOptionalFeature –detailed, and then press ENTER
Enable or Disable Optional Features
Updated: February 28, 2009
Applies To: Windows Server 2008 R2
This topic explains how to use the Active Directory module for Windows PowerShell to enable or disable optional features in Active Directory Domain Services (AD DS).

Example 1

The following example demonstrates how to enable the optional feature Active Directory Recycle Bin in the Fabrikam.com forest:
Enable-ADOptionalFeature `Recycle Bin Feature' -Scope Forest -Target `Fabrikam'
CautionCaution
Enabling the Active Directory Recycle Bin feature is an irreversible action.

Example 2

The following example demonstrates how to disable an Active Directory optional feature in the Fabrikam.com forest:
Disable-ADOptionalFeature `OF2' -Scope Domain -Target `fabrikam'

To get a list of optional features available on the Windows Server 2008 R2 domain use the Get-ADOptionalFeature CmdLet. You can specify the -Filter parameter inline or be prompted for it.

Get-ADOptionalFeature -Filter 

Additional information

For a full explanation of the parameters that you can pass to Enable-ADOptionalFeature, at the Active Directory module command prompt, type Get-Help Enable-ADOptionalFeature –detailed, and then press ENTER.

No comments:

Post a Comment