Active Directory Administration Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

Alas, the only reliable way to list the domains in a forest is to use PowerShell.

For this recipe, we'll need one of the following:

  • A domain controller running Windows Server 2012 with Desktop Experience (or a newer version of Windows Server)
  • A domain-joined member server running Windows Server 2012 with Desktop Experience (or a newer version of Windows Server) with the Active Directory module for Windows PowerShell installed
  • A domain-joined device running Windows 8.1 (or a newer version of Windows) with the Active Directory module for Windows PowerShell installed
On domain controllers running Windows Server 2012 with Desktop Experience (and on newer versions of Windows Server), the Active Directory module for the Windows PowerShell feature is automatically installed, when promoted to domain controller.

On domain controllers running Server Core installations of Windows Server 2012  (and on newer versions of Windows Server), the availability of the Active Directory module for Windows PowerShell depends on the  -IncludeManagementTools option for the  Install-WindowsFeature Windows  PowerShell cmdlet used to install the Active Directory Domain Services role.