-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xActiveDirectory: OptIn to the "Common Tests - Validate Example Files…
… To Be Published" (#364) - Changes to xActiveDirectory - Opt-in to the following DSC Resource Common Meta Tests: - Common Tests - Validate Example Files To Be Published (issue #311)
- Loading branch information
1 parent
0ee8c74
commit aa801e9
Showing
55 changed files
with
1,038 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 24 additions & 3 deletions
27
...n/3-NewForestwithParentAndChildDomain.ps1 → ...ForestwithParentAndChildDomain_Config.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
Examples/Resources/xADDomainDefaultPasswordPolicy/1-ConfigureDefaultPasswordPolicy.ps1
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
...ples/Resources/xADDomainDefaultPasswordPolicy/1-ConfigureDefaultPasswordPolicy_Config.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0 | ||
.GUID 96b94fc3-2b96-47b7-82e8-d0551ec2e738 | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT (c) Microsoft Corporation. All rights reserved. | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/xActiveDirectory/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/xActiveDirectory | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES | ||
.PRIVATEDATA | ||
#> | ||
|
||
#Requires -module xActiveDirectory | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will set an Active Directory domain's default password | ||
policy to set the minimum password length and complexity. | ||
#> | ||
|
||
Configuration ConfigureDefaultPasswordPolicy_Config | ||
{ | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[System.String] | ||
$DomainName, | ||
|
||
[parameter(Mandatory = $true)] | ||
[System.Boolean] | ||
$ComplexityEnabled, | ||
|
||
[parameter(Mandatory = $true)] | ||
[System.Int32] | ||
$MinPasswordLength | ||
) | ||
|
||
Import-DscResource -Module xActiveDirectory | ||
|
||
Node $AllNodes.NodeName | ||
{ | ||
xADDomainDefaultPasswordPolicy 'DefaultPasswordPolicy' | ||
{ | ||
DomainName = $DomainName | ||
ComplexityEnabled = $ComplexityEnabled | ||
MinPasswordLength = $MinPasswordLength | ||
} | ||
} | ||
} |
26 changes: 23 additions & 3 deletions
26
...urces/xADDomainTrust/1-NewOneWayTrust.ps1 → ...ADDomainTrust/1-NewOneWayTrust_Config.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.