Skip to content

Commit

Permalink
Changes to ActiveDirectoryDsc
Browse files Browse the repository at this point in the history
- Updated all the examples files to be prefixed with the resource
  name so they are more easily discovered in PowerShell Gallery and
  Azure Automation (issue dsccommunity#416).
  • Loading branch information
johlju committed Jul 29, 2019
1 parent a1494c2 commit 08297fb
Show file tree
Hide file tree
Showing 44 changed files with 48 additions and 44 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## Unreleased

- Changes to ActiveDirectoryDsc
- BREAKING CHANGE: Renamed the xActiveDirectory to ActiveDirectoryDsc and removed the 'x' from all resource names.
- BREAKING CHANGE: Renamed the xActiveDirectory to ActiveDirectoryDsc
and removed the 'x' from all resource names ([issue #312](https://github.com/PowerShell/ActiveDirectoryDsc/issues/312)).
- Added a Requirements section to every DSC resource README with the
bullet point stating "Target machine must be running Windows Server
2008 R2 or later" ([issue #399](https://github.com/PowerShell/ActiveDirectoryDsc/issues/399)).
Expand Down Expand Up @@ -40,6 +41,9 @@
[new helper functions for localization](https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#helper-functions-for-localization)
([issue #316](https://github.com/PowerShell/ActiveDirectoryDsc/issues/316),
[issue #317](https://github.com/PowerShell/ActiveDirectoryDsc/issues/317)).
- Updated all the examples files to be prefixed with the resource
name so they are more easily discovered in PowerShell Gallery and
Azure Automation ([issue #416](https://github.com/PowerShell/ActiveDirectoryDsc/issues/416)).
- Changes to ADManagedServiceAccount
- Added a requirement to README stating "Group Managed Service Accounts
need at least one Windows Server 2012 Domain Controller"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create two Active Directory computer accounts
enabled. The property Enabled will not be enforced in either case.
#>
Configuration AddComputerAccount_Config
Configuration ADComputer_AddComputerAccount_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create an Active Directory computer account
disabled. The property Enabled will not be enforced.
#>
Configuration AddComputerAccountDisabled_Config
Configuration ADComputer_AddComputerAccountDisabled_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
on the specified domain controller and in the specific organizational
unit.
#>
Configuration AddComputerAccountSpecificPath_Config
Configuration ADComputer_AddComputerAccountSpecificPath_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
unit. After the account is create an Offline Domain Join Request file
is created to the specified path.
#>
Configuration AddComputerAccountAndCreateODJRequest_Config
Configuration ADComputer_AddComputerAccountAndCreateODJRequest_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a new domain with a new forest and a forest
functional level of Server 2016.
#>
Configuration NewForest_Config
Configuration ADDomain_NewForest_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a new child domain in an existing forest with
a Domain Functional Level of Windows Server 2012R2.
#>
Configuration NewChildDomain_Config
Configuration ADDomain_NewChildDomain_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ConfigurationData = @{
This configuration will create a domain, and then create a child domain on
another node.
#>
Configuration NewForestWithParentAndChildDomain_Config
Configuration ADDomain_NewForestWithParentAndChildDomain_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ConfigurationData = @{
The WaitForDomain resource is used to ensure that the domain is
present before the second domain controller is added.
#>
Configuration NewDomainWithTwoDCs_Config
Configuration ADDomain_NewDomainWithTwoDCs_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will add a domain controller to the domain
contoso.com.
#>
Configuration AddDomainControllerToDomainMinimal_Config
Configuration ADDomainController_AddDomainControllerToDomainMinimal_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will add a domain controller to the domain
contoso.com, specifying all properties of the resource.
#>
Configuration AddDomainControllerToDomainAllProperties_Config
Configuration ADDomainController_AddDomainControllerToDomainAllProperties_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will add a domain controller to the domain
contoso.com using the information from media.
#>
Configuration AddDomainControllerToDomainUsingIFM_Config
Configuration ADDomainController_AddDomainControllerToDomainUsingIFM_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will add a read-only domain controller to the domain contoso.com
and specify a list of account, whose passwords are allowed/denied for synchronisation.
#>
Configuration AddReadOnlyDomainController_Config
Configuration ADDomainController_AddReadOnlyDomainController_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will set an Active Directory domain's default password
policy to set the minimum password length and complexity.
#>
Configuration ConfigureDefaultPasswordPolicy_Config
Configuration ADDomainDefaultPasswordPolicy_ConfigureDefaultPasswordPolicy_Config
{
Param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a new one way inbound trust between two
domains.
#>
Configuration NewOneWayTrust_Config
Configuration ADDomainTrust_NewOneWayTrust_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
in the forest by replacing any existing suffixes with the ones specified
in the configuration.
#>
Configuration ReplaceForestProperties_Config
Configuration ADForestProperties_ReplaceForestProperties_Config
{
Import-DscResource -ModuleName ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
the forest by adding and removing the desired suffixes. This will not overwrite
existing suffixes in the forest.
#>
Configuration AddRemoveForestProperties_Config
Configuration ADForestProperties_AddRemoveForestProperties_Config
{
Import-DscResource -ModuleName ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create a new domain-local group
#>
Configuration NewGroup_Config
Configuration ADGroup_NewGroup_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create a new domain-local group with three members.
#>
Configuration NewGroupWithMembers_Config
Configuration ADGroup_NewGroupWithMembers_Config
{
Import-DscResource -ModuleName ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a new domain-local group in contoso with
three members in different domains.
#>
Configuration NewGroupMultiDomainMembers_Config
Configuration ADGroup_NewGroupMultiDomainMembers_Config
{
Import-DscResource -ModuleName ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
slightly ahead in the future, the key won't be usable for at least 10 hours
from the creation time.
#>
Configuration CreateKDSRootKey_Config
Configuration ADKDSKey_CreateKDSRootKey_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
replicated yet, there may be issues when retrieving the gMSA password.
Use with caution
#>
Configuration CreateKDSRootKeyInPast_Config
Configuration ADKDSKey_CreateKDSRootKeyInPast_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
If gMSAs are installed on the network, they will not be able to reset
their passwords and it may cause services to fail.
#>
Configuration CreateKDSRootKeyRemoveLastKey_Config
Configuration ADKDSKey_CreateKDSRootKeyRemoveLastKey_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create a managed service account.
#>
Configuration CreateManagedServiceAccount_Config
Configuration ADManagedServiceAccount_CreateManagedServiceAccount_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create a group managed service account.
#>
Configuration CreateGroupManagedServiceAccount_Config
Configuration ADManagedServiceAccount_CreateGroupManagedServiceAccount_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create a group managed service account with members.
#>
Configuration CreateGroupManagedServiceAccountWithMembers_Config
Configuration ADManagedServiceAccount_CreateGroupManagedServiceAccountWithMembers_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a computer account disabled, and
enforcing the account to be enabled.
#>
Configuration EnabledComputerAccount_Config
Configuration ADObjectEnabledState_EnabledComputerAccount_Config
{
Import-DscResource -ModuleName ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
a cluster using the disabled computer account, and enforcing the
computer account to be enabled.
#>
Configuration CreateClusterComputerAccount_Config
Configuration ADObjectEnabledState_CreateClusterComputerAccount_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
This configuration will configure a cluster using a pre-staged computer
account, and enforcing the pre-staged computer account to be enabled.
#>
Configuration EnabledPrestagedClusterComputerAccount_Config
Configuration ADObjectEnabledState_EnabledPrestagedClusterComputerAccount_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
CONTOSO\CLUSTER01$. This is used so that the Windows Failover Cluster
can control the roles AD objects.
#>
Configuration DelegateFullControl_Config
Configuration ADObjectPermissionEntry_DelegateFullControl_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(CreateChild,DeleteChild) computer objects in an OU and any sub-OUs that
may get created.
#>
Configuration CreateDeleteComputerObject_Config
Configuration ADObjectPermissionEntry_CreateDeleteComputerObject_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(ReadProperty, WriteProperty) of all properties of computer objects in
an OU and any sub-OUs that may get created.
#>
Configuration ReadWriteComputerObjectProperties_Config
Configuration ADObjectPermissionEntry_ReadWriteComputerObjectProperties_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will add an Active Directory organizational unit to the
domain.
#>
Configuration CreateADOU_Config
Configuration ADOrganizationalUnit_CreateADOU_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will enable the Active Directory Recycle Bin for a
specified Domain
#>
Configuration EnableADRecycleBin_Config
Configuration ADRecycleBin_EnableADRecycleBin_Config
{
param
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create an Active Directory replication site
called 'Seattle'.
#>
Configuration CreateADReplicationSite_Config
Configuration ADReplicationSite_CreateADReplicationSite_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'Seattle'. If the 'Default-First-Site-Name' site exists, it will rename
this site instead of create a new one.
#>
Configuration CreateADReplicationSiteRenameDefault_Config
Configuration ADReplicationSite_CreateADReplicationSiteRenameDefault_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will remove the Active Directory replication site
called 'Cupertino'.
#>
Configuration RemoveADReplicationSite_Config
Configuration ADReplicationSiteLink_ADReplicationSite_RemoveADReplicationSite_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create an AD Replication Site Link.
#>
Configuration CreateReplicationSiteLink_Config
Configuration ADReplicationSiteLink_CreateReplicationSiteLink_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will modify an existing AD Replication Site Link.
#>
Configuration ModifyExistingReplicationSiteLink_Config
Configuration ADReplicationSiteLink_ModifyExistingReplicationSiteLink_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will create an AD Replication Subnet.
#>
Configuration CreateReplicationSubnet_Config
Configuration ADReplicationSubnet_CreateReplicationSubnet_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will add a Service Principal Name to a user account.
#>
Configuration AddUserServicePrincipalName_Config
Configuration ADServicePrincipalName_AddUserServicePrincipalName_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.DESCRIPTION
This configuration will add a Service Principal Name to a computer account.
#>
Configuration AddComputerServicePrincipalName_Config
Configuration ADServicePrincipalName_AddComputerServicePrincipalName_Config
{
Import-DscResource -Module ActiveDirectoryDsc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This configuration will create a user with a managed password.
This might be used to manage the lifecycle of a service account.
#>
Configuration CreateUserAndManagePassword_Config
Configuration ADUser_CreateUserAndManagePassword_Config
{
param
(
Expand Down

0 comments on commit 08297fb

Please sign in to comment.