Solved

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

Posted on 2016-11-01
3
16 Views
Last Modified: 2016-11-21
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
Comment
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
yo_bee earned 500 total points
Comment Utility
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
 
LVL 7

Author Comment

by:Senior IT System Engineer
Comment Utility
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
 
LVL 21

Expert Comment

by:yo_bee
Comment Utility
change the subtree to OneLevel
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
By this time the large percentage of day-to-day transactions have shifted to mobile banking; here are some overriding areas QAs must investigate while testing mobile banking apps.  
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now