Skip to content

Language DC Error #23

Description

@dakhama-mehdi

It should be noted that the script appears to work only on domain controllers originally installed in English. Group names such as Domain Admins and Enterprise Admins may vary depending on the installation language, particularly in the JSON files and prerequisites.

To make the script language-independent, these groups could be identified using their SIDs:

# Domain Admins
$DomainAdminsSID = "$((Get-ADDomain).DomainSID)-512"
$DomainAdmins = Get-ADGroup -Identity $DomainAdminsSID

# Enterprise Admins (located in the forest root domain)
$RootDomain = Get-ADDomain (Get-ADForest).RootDomain
$EnterpriseAdminsSID = "$($RootDomain.DomainSID)-519"
$EnterpriseAdmins = Get-ADGroup -Identity $EnterpriseAdminsSID

The DC’s original installation language can also be checked with:

Get-ItemPropertyValue `
    -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Language' `
    -Name InstallLanguage

0409 corresponds to US English. At a minimum, this limitation should be documented if it has not already been addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions