• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

Using Powershell to convert AD security group from Global to Universal per OU ?

People,

Before I Join my AD domain to bigger AD forest, I need to convert existing 700+ AD security group which is configured as Global to Universal, so the member of this AD security group can be from any domains in the same AD forest.

How can I convert the AD security group per OU basis using the Pwoershell without losing the existing group member or its description & SID number ?

Thanks in advance.
0
Senior IT System Engineer
Asked:
Senior IT System Engineer
  • 2
1 Solution
 
yo_beeDirector of ITCommented:
Try this
you need to have AD Powershell installed on your computer and import the module and run this
Import-Module activedirectory
get-adgroup -filter *  -SearchBase 'OU=Test_OU,DC=xxx,DC=xxxx' -SearchScope Subtree | ?{$_.GroupScope -eq 'Global'} | Set-ADGroup -GroupScope Universal

Open in new window

0
 
Senior IT System EngineerIT ProfessionalAuthor Commented:
Ok, does it going to convert the AD security group in one OU and its sub-OU as well ?

Or just the OU defined?
0
 
yo_beeDirector of ITCommented:
change the subtree to OneLevel
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now