locked
Add or Remove users from AD group using Input FIle (group name has to be specfied in the input file) RRS feed

  • Question

  • H,

    Iam in need of the below script, can some one help me

    Add or Remove users from AD group using Input FIle

    Input File structure (inputfile.txt):

    group1,user1

    group2,user2

    'where group1&group2 are groups, user1&user2 (samaccountname) are users.

    Script Execution,

    "Cscript //nologo groupmod.vbs inputfile.txt /remove"

    "Cscript //nologo groupmod.vbs inputfile.txt /add"

    Wednesday, May 11, 2011 8:56 AM

Answers

  • Hi,

     

    Since this is Windows SteadyState Forum, I suggest to contact Script Forum for further help:

     

    The Official Scripting Guys Forum! Forum

    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.

     

     

    Regards,

    Leo   Huang

     

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Leo Huang Monday, May 16, 2011 7:03 AM
    Thursday, May 12, 2011 9:26 AM