Usrtogrp.exe: Add Users to a Group Topics | Previous

Usrtogrp.exe: Examples


  1. A text file for adding users to a group on the local computer:

    domain: localmachine

    globalgroup: sms users

    user1

    user2

    user3

     

    note-icon

    Note

    If you are manipulating a local group, UsrToGrp will also search trusted domains, so user accounts should be specified as "UserName", not "DomainName\UserName".

  2. A text file for adding users to a group on the maindomain domain:

    domain: maindomain

    localgroup: second level administrators

    user1

    user2

    user3

    user4