From 2e320660040abbd8098b250d0c909df9c59e15f8 Mon Sep 17 00:00:00 2001 From: Borislav Velkov Date: Tue, 16 Apr 2019 11:50:46 +0300 Subject: [PATCH 1/2] Resolves #250 Fixed 'Feature 1' to 'Recycle Bin Feature' in Example 2 and add server parameter in Example 3. However, not sure if Example 3 is for this article as it is for Set-ADObject. https://github.com/MicrosoftDocs/windows-powershell-docs/issues/250 --- .../activedirectory/Enable-ADOptionalFeature.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md b/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md index c700c4cea9..7bcd5511fb 100644 --- a/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md +++ b/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md @@ -41,7 +41,7 @@ You can identify the domain or forest by its fully-qualified domain name (FQDN), ### -------------------------- EXAMPLE 1 -------------------------- ``` -C:\PS>Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'fabrikam.com' -server dc1 +C:\PS>Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'fabrikam.com' -Server dc1 ``` Description @@ -53,7 +53,7 @@ This operation must be performed on the Domain Controller that holds the naming ### -------------------------- EXAMPLE 2 -------------------------- ``` -C:\PS>Enable-ADOptionalFeature 'Feature 1' -Scope ForestOrConfigurationSet -Target 'CN=Configuration,CN={0241853A-6BBF-48AA-8AE0-9C35D0C91B7B}' -server lds.fabrikam.com:50000 +C:\PS>Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'CN=Configuration,CN={0241853A-6BBF-48AA-8AE0-9C35D0C91B7B}' -Server lds.fabrikam.com:50000 ``` Description @@ -65,7 +65,7 @@ This operation must be performed on the AD LDS instance that holds the naming ma ### -------------------------- EXAMPLE 3 -------------------------- ``` -C:\PS>Set-ADObject -Identity "CN=Partitions,CN=Configuration,CN={4F971828-5BE4-4E94-B532-58F2BFB6A3A5}" -replace @{"msDS-Behavior-Version"=4} +C:\PS>Set-ADObject -Identity "CN=Partitions,CN=Configuration,CN={4F971828-5BE4-4E94-B532-58F2BFB6A3A5}" -Replace @{"msDS-Behavior-Version"=4} -Server lds.fabrikam.com:50000 ``` Description From 43322bfe60c3042b6036d346837da4e9b2f06b5b Mon Sep 17 00:00:00 2001 From: Borislav Velkov Date: Wed, 24 Apr 2019 10:29:14 +0300 Subject: [PATCH 2/2] Resolves #250 Fixed 'Feature 1' to 'Recycle Bin Feature' in Example 2. Removed example 3 as it is for Set-ADObject. https://github.com/MicrosoftDocs/windows-powershell-docs/issues/250 --- .../activedirectory/Enable-ADOptionalFeature.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md b/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md index 7bcd5511fb..65ad3b6148 100644 --- a/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md +++ b/docset/winserver2012-ps/activedirectory/Enable-ADOptionalFeature.md @@ -63,18 +63,6 @@ Description Enable the optional feature 'Recycle Bin Feature' for the AD LDS instance lds.fabrikam.com. This operation must be performed on the AD LDS instance that holds the naming master FSMO role. -### -------------------------- EXAMPLE 3 -------------------------- -``` -C:\PS>Set-ADObject -Identity "CN=Partitions,CN=Configuration,CN={4F971828-5BE4-4E94-B532-58F2BFB6A3A5}" -Replace @{"msDS-Behavior-Version"=4} -Server lds.fabrikam.com:50000 -``` - -Description - ------------ - -Sets the ForestMode (Forest Functional Level) to Windows2008R2Forest on an AD LDS instance. -The ForestMode must be Windows2008R2Forest or higher in order to enable the Recycle Bin Feature for AD LDS. - ## PARAMETERS ### -AuthType