Skip to content

Commit

Permalink
Update help.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Aug 2, 2019
1 parent cd267fc commit b7949fc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@
Key - String
Specifies the name of the Active Directory domain that is requesting the trust.

.PARAMETER AllowTrustRecreation
Write - Boolean
Specifies if the is allowed to be recreated if required. Default value is $false.

.EXAMPLE 1

This configuration will create a new one way inbound trust between two
domains.

Configuration ADDomainTrust_NewOneWayTrust_Config
Configuration ADDomainTrust_ExternalInboundTrust_Config
{
param
(
Expand Down Expand Up @@ -73,4 +77,44 @@ Configuration ADDomainTrust_NewOneWayTrust_Config
}
}

.EXAMPLE 2

This configuration will create a new one way inbound trust between two
domains, and allows the trust to recreated if it should have the wrong
trust type.

Configuration ADDomainTrust_ExternalInboundTrustWithOptInToRecreate_Config
{
param
(
[Parameter(Mandatory = $true)]
[System.String]
$SourceDomain,

[Parameter(Mandatory = $true)]
[System.String]
$TargetDomain,

[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
$TargetDomainAdminCred
)

Import-DscResource -module ActiveDirectoryDsc

node localhost
{
ADDomainTrust 'Trust'
{
Ensure = 'Present'
SourceDomainName = $SourceDomain
TargetDomainName = $TargetDomain
TargetCredential = $TargetDomainAdminCred
TrustDirection = 'Inbound'
TrustType = 'External'
AllowTrustRecreation = $true
}
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Configuration ADForestProperties_ReplaceForestProperties_Config

node 'localhost'
{
ADForestProperties $Node.ForestName
ADForestProperties 'contoso.com'
{
ForestName = 'contoso.com'
UserPrincipalNameSuffix = 'fabrikam.com', 'industry.com'
Expand Down

0 comments on commit b7949fc

Please sign in to comment.