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 3, 2019
1 parent 7face90 commit 9dab36a
Showing 1 changed file with 45 additions and 1 deletion.
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
}
}
}


0 comments on commit 9dab36a

Please sign in to comment.