Skip to content

Install-ADDcoreComponent contains wrong redirPath #16

@PatrickOnGit

Description

@PatrickOnGit

The function tries to redirect default user / computer location to "OU=Provisioning" but the OU in SQLite is called "OU=Provision"

                #$RedirPath = "OU=Provisioning,OU=$($FocusHash['Stage']),OU=Tier-2,$DomDN"
                $RedirPath = "OU=Provision,OU=$($FocusHash['Stage']),OU=Tier-2,$DomDN"

This information should come out of the SQLite DB and not being hardcoded.

It should also use the well known GUIDs not the names:

                #$CompWKO = $WellKnownObjects | Where-Object {$_ -like "*CN=Computers,*"}
                $CompWKO = $WellKnownObjects | Where-Object {$_ -match '\:AA312825768811D1ADED00C04FD8D5CD\:'}

                # Corrected to "Users" and using wellknown GUID
                #$UserWKO = $WellKnownObjects | Where-Object {$_ -like "*CN=Computers,*"}
                $UserWKO = $WellKnownObjects | Where-Object {$_ -match '\:A9D1CA15768811D1ADED00C04FD8D5CD\:'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions