Skip to content

[Minor] Non-blocking error message in Configure-ADDS.ps1 (no functional impact) #7

@zipmac

Description

@zipmac

Image
In Step 5 Deploying DC01: I noticed this error message appear for Configure-ADDS.ps1

$secureDSRM = ConvertTo-SecureString -String $DSRM
Line 44 stores a variable $secureDSRM using ConvertTo-SecureString, however it throws an error since the -AsPlainText and -Force parameters are missing.

Install-ADDSForest -DomainName $domainName -DomainNetbiosName $domainNetbiosname -ForestMode $forestMode -DomainMode $domainMode -SafeModeAdministratorPassword (ConvertTo-SecureString -String $DSRM -AsPlainText -Force) -NoRebootOnCompletion -Confirm:$false
Line 45 has the correct syntax, and seems to make Line 44 redundant.

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