共用方式為


Referencing an External Domain

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to refer to an external domain in Active Directory Domain Services (AD DS).

Example

The following example demonstrates how to create a cross-reference to the Northwind.com domain in the Fabrikam.com domain:

New-ADObject -Name northwind -Type crossref -OtherAttributes @{NcName="DC=NORTHWIND,DC=COM";DnsRoot="northwind-dc1.northwind.com"} -Path 'CN=Partitions,CN=Configuration,DC=FABRIKAM,DC=COM' -Description 'A cross reference to the external domain northwind.com'

Additional information

The following property values are the most common values that are used in the creation of a new Active Directory object:

  • Description

  • DisplayName

  • ProtectedFromAccidentalDeletion

For a full explanation of the parameters that you can pass to New-ADObject, at the Active Directory module command prompt, type Get-Help New-ADObject –detailed, and then press ENTER.