Freigeben über


AD DS Deployment Cmdlets in Windows PowerShell

This topic contains brief descriptions of the Windows PowerShell® cmdlets that are for use in deploying Active Directory Domain Services (AD DS) in Windows Server® 2012. Each cmdlet in the table is linked to additional information about that cmdlet.

AD DS Deployment Cmdlets (in verb order)

The following table contains the names and a brief description of each ADDSDeployment cmdlet.

Cmdlet Description

Add-ADDSReadOnlyDomainControllerAccount

Creates a read-only domain controller (RODC) account that can be used to install an RODC in Active Directory.

Install-ADDSDomain

Installs a new Active Directory domain configuration.

Install-ADDSDomainController

Installs a domain controller in Active Directory.

Install-ADDSForest

Installs a new Active Directory forest configuration.

Test-ADDSDomainControllerInstallation

Runs the prerequisites (only) for installing a domain controller in Active Directory.

Test-ADDSDomainControllerUninstallation

Runs the prerequisites (only) for uninstalling a domain controller in Active Directory.

Test-ADDSDomainInstallation

Runs the prerequisites (only) for installing a new Active Directory domain configuration.

Test-ADDSForestInstallation

Runs the prerequisites (only) for installing a new forest in Active Directory.

Test-ADDSReadOnlyDomainControllerAccountCreation

Runs the prerequisites (only) for adding a read-only domain controller (RODC) account.

Uninstall-ADDSDomainController

Uninstalls a domain controller in Active Directory.

Tipp

You can import and display the cmdlets by running the following commands from Windows PowerShell. You need only run the Add-WindowsFeature for the specific server role that you would like to add.

  • Import-Module ServerManager – Imports the Server Manager module that provides the Add-WindowsFeature cmdlet.

  • Add-WindowsFeature AD-Domain-Services – Adds the Active Directory Domain Services binaries.

  • Import-Module ADDSDeployment – Imports the AD DS Deployment module that provides the above cmdlets.

  • Get-Command -Module ADDSDeployment – Displays all the above cmdlets that are associated with AD DS Deployment.