Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When using the -Path parameter with the NEW-ADGroup cmdlet to create multiple groups, all groups will be created in the same container as specified by the -Path parameter. This can lead to issues if different groups are intended to be created in different organizational units or containers within Active Directory. To solve this problem, the -Path parameter should be dynamically set for each group being created or a separate cmdlet should be used for each group to specify the correct container.