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 5c5e709
Show file tree
Hide file tree
Showing 19 changed files with 65 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADComputer

.DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/MSFT_ADDomain/en-US/about_ADDomain.help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADDomain

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADDomainController

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADDomainDefaultPasswordPolicy

.DESCRIPTION
Expand Down
48 changes: 46 additions & 2 deletions DSCResources/MSFT_ADDomainTrust/en-US/about_ADDomainTrust.help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADDomainTrust

.DESCRIPTION
Expand Down 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
@@ -1,4 +1,4 @@
.NAME
.NAME
ADForestProperties

.DESCRIPTION
Expand Down 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
2 changes: 1 addition & 1 deletion DSCResources/MSFT_ADGroup/en-US/about_ADGroup.help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADGroup

.DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/MSFT_ADKDSKey/en-US/about_ADKDSKey.help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADKDSKey

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADManagedServiceAccount

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADObjectEnabledState

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADObjectPermissionEntry

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADOrganizationalUnit

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADRecycleBin

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADReplicationSite

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADReplicationSiteLink

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADReplicationSubnet

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADServicePrincipalName

.DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/MSFT_ADUser/en-US/about_ADUser.help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
ADUser

.DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.NAME
.NAME
WaitForADDomain

.DESCRIPTION
Expand Down

0 comments on commit 5c5e709

Please sign in to comment.