Description
The example listed has a wrong argument, InstallDNS
should be InstallDns
:
PS C:\Users\vagrant> Install-ADDSForest -DomainName "sampledomain.local" -InstallDNS
WARNING: A script or application on the remote computer LOCALHOST is sending a prompt request. When you are prompted, enter sensitive information, such as credentials or passwords, only if you trust the remote computer and the application or script that is requesting the data.
SafeModeAdministratorPassword: **************
WARNING: A script or application on the remote computer LOCALHOST is sending a prompt request. When you are prompted, enter sensitive information, such as credentials or passwords, only if you trust the remote computer and the application or script that is requesting the data.
Confirm SafeModeAdministratorPassword: **************
The target server will be configured as a domain controller and restarted when this operation is complete.
Do you want to continue with this operation?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): Y
Install-ADDSForest: Verification of prerequisites for Domain Controller promotion failed. The specified argument 'InstallDNS' was not recognized.
RunspaceId : faac3bd3-a2eb-4e74-bf47-d4e7125c95b1
Message : Verification of prerequisites for Domain Controller promotion failed. The specified argument
'InstallDNS' was not recognized.
Context : Test.VerifyDcPromoCore.DCPromo.General.77
RebootRequired : False
Status : Error
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 44808677-cd16-9fed-e6d8-2743bae10712
- Version Independent ID: 670a116a-c21d-914c-d1ba-928f8ba1ddc2
- Content: Install-ADDSForest (ADDSDeployment)
- Content Source: docset/winserver2022-ps/addsdeployment/Install-ADDSForest.md
- Product: w10
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend