Ask a question

Mike Givens

Set-ADForestMode : Cannot convert (Get error on step 3 second script)

Windows SBS2011 set to a 2003 Forest (Trying to migrate to a Windows 2019 Essentials Server)  https://server-essentials.com/support/migrate-sbs-2011-to-windows-server-2019#  (Step 3)

PS C:\Users\administrator.HC.000> Get-AdForest


ApplicationPartitions : {DC=ForestDnsZones,DC=hc,DC=local, DC=DomainDnsZones,DC=hc,DC=local}
CrossForestReferences : {}
DomainNamingMaster    : SBS.hc.local
Domains               : {hc.local}
ForestMode            : Windows2003Forest
GlobalCatalogs        : {SBS.hc.local}
Name                  : hc.local
PartitionsContainer   : CN=Partitions,CN=Configuration,DC=hc,DC=local
RootDomain            : hc.local
SchemaMaster          : SBS.hc.local
Sites                 : {Default-First-Site-Name}
SPNSuffixes           : {}
UPNSuffixes           : {}

Script I am following:

Import-Module ActiveDirectory
Get-AdForest

Import-Module ActiveDirectory
$currentForest = Get-ADForest 
Set-ADForestMode -Identity $currentForest -Server $currentForest.SchemaMaster -ForestMode Windows2008R2Forest

When following script I get the following error:

Set-ADForestMode : Cannot convert 'Microsoft.ActiveDirectory.Management.ADPropertyValueCollection' to the type 'System.

String' required by parameter 'Server'. Specified method is not supported.

At line:1 char:50

+ Set-ADForestMode -Identity $currentForest -Server <<<<  $currentForest.SchmaMaster -ForestMode Windows2008R2Forest

    + CategoryInfo          : InvalidArgument: (:) [Set-ADForestMode], ParameterBindingException

    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.ActiveDirectory.Management.Commands.SetADForestMode

How do I get past this?  As I need to set the Forest to a 2008R2 according to the instructions?

Thanks for any direction.


asked09/22/2019 18:04
146 views
Add Comment
Mike Givens

Found my mistake.  Had a type in Schema...  

Last Activity 09/22/2019 18:28

No answers found

Add an Answer