Member of Tab

Posted on 2012-08-17
Last Modified: 2012-08-31
I wanted to know if there might be a shortcut to save time as far as adding/deleting MEMBER OF settings for about 20 users who don't exactly are supposed to have the same groups within this setting.  We apparently don't use any templates for this and we need to do them manually.
Question by:vulture71
    LVL 2

    Expert Comment

    If I understand your question correctly, you could, instead of editing each users member of tab, edit the groups members and take those out/add whomever is applicable.
    LVL 39

    Expert Comment

    by:Krzysztof Pytko
    Sure, you can simply use Microsoft DS Tools to achieve that.

    create a users text file on a DC with their logins


    and save this as users.txt on C-Drive

    On a DC run that query to remove users from group
    for /f %i in (c:\users.txt) do dsquery user -samid %i | dsmod group "GroupDistinguishedName" -rmmbr -c

    Open in new window

    to get group DN run
    dsquery group -name "GroupName"

    Open in new window

    and put it into syntax above.

    To add, replace -rmmbr switch with -addmbr
    for /f %i in (c:\users.txt) do dsquery user -samid %i | dsmod group "GroupDistinguishedName" -addmbr -c

    Open in new window


    Author Comment

    So here's an example of what I'm trying to accomplish.  I have two separate user accounts (User tabs) and I would like to mimic each others settings.  How do I go about this?  For security reasons, we do not create template accounts.
    LVL 39

    Accepted Solution

    OK, so this should not be named member of tab :) because this tab holds user group membership.

    To fill those fields you can also use MS DS Tools but I need to know an example file with input data for users in your environment :(what you want to add and how it is organized within a file) ) Then I will provide proper syntax for you

    Thank you in advance


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Live is the evolution of Q&A. Get your technology problems solved instantly by connecting with technology experts instantly. Pair programming has never been easier.
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    761 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