Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 2025 domain and forest mode not possible #721

Open
TRiebesel opened this issue Jan 29, 2025 · 2 comments
Open

Windows 2025 domain and forest mode not possible #721

TRiebesel opened this issue Jan 29, 2025 · 2 comments
Labels
enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community.

Comments

@TRiebesel
Copy link

Problem description

I have add Win2025 as domain and forest mode level to ADDomain

Verbose logs

ActiveDirectoryDsc\ADDomain : At least one of the values 'Win2025' is not supported or valid for property 'ForestMode'
on class 'ADDomain'. Please specify only supported values:
Win2008, Win2008R2, Win2012, Win2012R2, WinThreshold.
At C:\Users\tobia\OneDrive\Dokumente\GitHub\dsc-mgmt\mgmt\ConfigurationFile.ps1:635 char:9
+         ADDomain "New-AD-Forest" {
+         ~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnsupportedValueForProperty,ActiveDirectoryDsc\ADDomain

ActiveDirectoryDsc\ADDomain : At least one of the values 'Win2025' is not supported or valid for property 'DomainMode'
on class 'ADDomain'. Please specify only supported values:
Win2008, Win2008R2, Win2012, Win2012R2, WinThreshold.
At C:\Users\tobia\OneDrive\Dokumente\GitHub\dsc-mgmt\mgmt\ConfigurationFile.ps1:635 char:9
+         ADDomain "New-AD-Forest" {
+         ~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnsupportedValueForProperty,ActiveDirectoryDsc\ADDomain

DSC configuration

ADDomain "New-AD-Forest" {
            DomainName                    = $ConfigurationData.ADDomain.DomainName
            DomainNetBiosName             = $ConfigurationData.ADDomain.DomainNetBiosName
            Credential                    = $DomainAdministratorCred
            SafemodeAdministratorPassword = $SafemodeAdministratorCred
            DatabasePath                  = $ConfigurationData.ADDomain.DatabasePath 
            LogPath                       = $ConfigurationData.ADDomain.LogPath
            SysvolPath                    = $ConfigurationData.ADDomain.SysvolPath
            ForestMode                    = 'Win2025'
            DomainMode                    = 'Win2025'
            DependsOn                     = "[Computer]$NodeName", "[DnsServerScavenging]Enable-ScavengingAndChangeIntervals", "[WindowsFeature]Enable-AD-Domain-Services"   
        }

Suggested solution

.

Operating system the target node is running

Windowds Server 2025

PowerShell version and build the target node is running

5.1.22621.4435

ActiveDirectoryDsc version

6.6.0
@johlju
Copy link
Member

johlju commented Jan 29, 2025

Happy to see a PR that resolves this in all necessary resources.

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub labels Jan 29, 2025
@RobertK666
Copy link

Don't use strings, use '10' instead as in
ForestMode = '10'
DomainMode = '10'

so far M$ has not provided proper string name, so '10' will get you going ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

3 participants