none
Link GPO to multipe OUs

    Question

  • Hello 

    Can anyone tell me how to link multiple OUs to single GPO, i have around 256 OUs

    Please asist

    Aamir


    NA

    Tuesday, January 24, 2017 7:54 PM

Answers

  • Hi,
    Maybe, some adjusting need to be done for the script, in this case, regarding the detail script, I would suggest you post the script question in the scripting forum:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ITCG
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best Regards,
    Wendy

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by Masthanomatic Friday, February 03, 2017 2:53 PM
    Friday, February 03, 2017 2:27 AM
    Moderator

All replies

  • Hi Aamir,

    Rt click on any OU and select link an existing GPO.

    or 

    you can apply it on sites/domains but depend on about structure of active directory.


    Tuesday, January 24, 2017 8:11 PM
  • Hello 

    So i have to right click 256 times and select link existing GPO - not convinced

    Nope i cannot apply sites /domain, as i need to apply only servers OU in all sites

    Thanks


    NA

    Tuesday, January 24, 2017 8:38 PM
  • powershell

    https://www.google.com.au/search?q=powershell+link+gpo+to+multiple+ous+site:social.technet.microsoft.com


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    • Proposed as answer by Todd Heron Wednesday, January 25, 2017 1:34 PM
    Tuesday, January 24, 2017 8:45 PM
  • Hi,
    Scripting may be the appropriate way for finish this, here is a suggested one, but it might need some adjusting to work for your request:
    Assign a New Group Policy Link to an OU
    https://gallery.technet.microsoft.com/scriptcenter/f6740541-3eac-4cd0-a87a-f5f016701fe9
    Best regards,
    Wendy

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, January 25, 2017 8:36 AM
    Moderator
  • You can use script similar to below:

    $Path= Read-Host 'path for the CSV file'
    $Domain= Read-Host 'domain name , enter the FQDN'

    $GPOName= Read-Host 'What is the name of the GPO'

    ForEach
    ($Target in (get-content $Path))

    {New-GPLink -name $GPOName -domain $Domain -Target $Target}

    Wednesday, January 25, 2017 9:24 AM
  • Hello 

    I tried this script and it just keep on running, and does not give output

    thanks


    NA

    Wednesday, January 25, 2017 5:38 PM
  • Hi,
    Did you go to GPMC console and check if the GPO is linked to OUs?
    Best regards,
    Wendy

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, January 31, 2017 8:42 AM
    Moderator
  • Hello Wendy,

    yes i went to GPMC console to confirm, however did you the GPO linked to the required OU


    NA

    Tuesday, January 31, 2017 2:52 PM
  • Hi,
    Maybe, some adjusting need to be done for the script, in this case, regarding the detail script, I would suggest you post the script question in the scripting forum:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ITCG
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best Regards,
    Wendy

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by Masthanomatic Friday, February 03, 2017 2:53 PM
    Friday, February 03, 2017 2:27 AM
    Moderator