Ask Your Question
0

What is the problem with the -Path parameter when creating multiple groups in Active Directory using NEW-ADGroup in PowerShell?

asked 2023-07-11 15:39:31 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-11 16:05:02 +0000

plato gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-11 15:39:31 +0000

Seen: 14 times

Last updated: Jul 11 '23