none
Create an AD group for every server in specific OU and then add the group to local admin group localy RRS feed

  • Question

  • Hi,

    Trying to create a dynamic funktion that runs couple times a day and checks for new objects in a server-OU in AD. For every object in that OU it should create an AD group in another OU. The group should have the server-name in it's name and a set prefix and fuffix. When the group is created it shoul be added to servers local Administrators group.

    The also need to be a funktion that checks if the group already exists and/or if it's already member of the local admin group on that server.

    Anyone have somethin like this or could help me with some examples how to get all computernames in an OU and the pass that forward to use when creating a group?


    • Edited by Glida Wednesday, February 20, 2019 8:46 AM
    • Moved by Bill_Stewart Wednesday, September 4, 2019 5:55 PM This is not "scripts on demand"
    Wednesday, February 20, 2019 8:04 AM

All replies