Merge-ADGroupHierarchy

1.0

One-way synchronisation of indirect members of a group to direct members of a group.
Use where you have separated groups that contain people (role groups) from groups used to apply resource permissions but the resource in question does not support group nesting.
More information on separating role and resource groups can be found in the "Separating People and Resource
One-way synchronisation of indirect members of a group to direct members of a group.
Use where you have separated groups that contain people (role groups) from groups used to apply resource permissions but the resource in question does not support group nesting.
More information on separating role and resource groups can be found in the "Separating People and Resources" section of the following article: https://ss64.com/nt/syntax-groups.html
1. Using the Get-ADGroupMembers inner function:
   a. Find direct members of a group.
   b. Find indirect members of a group.
2. Compare the direct and indirect lists and calculate what AD objects need to be added or removed as direct members.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Merge-ADGroupHierarchy

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Mark Holderness

Functions

Get-ADGroupMembers Get-ADObjectMemberOfGroup Get-SelectProperties Write-Transcript

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0 (current version) 46 6/20/2021