none
Adding ADUser to ADGroup where ADUser.departmentID matches with ADGroup.departmentName RRS feed

  • Question

  • Can someone please help me with the script where,

    there is a departmentId attribute with every ADUser, and there is a departmentName attribute with every ADGroup.

    I need to add ADUser to appropriate ADGroup where ADUser.departmentID matches with ADGroup.departmentName


    Nikhil Katre

    Wednesday, July 16, 2014 3:49 PM

All replies

  • On Wed, 16 Jul 2014 15:49:33 +0000, Nikhil Katre wrote:

    Can someone please help me with the script where,



    there is a departmentId attribute with every ADUser, and there is a departmentName attribute with every ADGroup.

    I need to add ADUser to appropriate ADGroup where ADUser.departmentID matches with ADGroup.departmentName

    This is a duplicate of the post you made earlier. Since you're looking for
    scripting help and not FIM help, you should be posting this to one of the
    scripting forums.


    Paul Adare - FIM CM MVP
    :q :q! :wq :w :w! :wq! :quit :quit! :help help helpquit quit quithelp
    :quitplease :quitnow :leave :shit ^X^C ^C ^D ^Z ^Q QUITDAMMIT ^]:wq

    Wednesday, July 16, 2014 4:17 PM
  • Solution to the script is here :

    http://social.technet.microsoft.com/Forums/en-US/b0cbf5c2-cc7d-4690-8d64-1ca03cf834ed/powershell-script-to-move-aduser-to-appropriate-group-based-on-its-department-id-attribute?forum=ilm2


    Nikhil Katre

    Thursday, July 17, 2014 2:21 PM