Usrtogrp.exe: Add Users to a Group


This command-line tool adds users to a local or global group according to information contained in a user-specified input text file.

The UsrToGrp tool creates the specified group if it does not already exist. Then, for each user name specified in the file, it searches the specified computer or domain for the user account. If you are adding users to a local group, the tool also searches trusted domains for the user account. If you are adding users to a global group, the tool only searches the specified domain, not any trusted domains. Once the account is found, UsrToGrp adds the account to the group. Note that if the user name exists in multiple domains, only the first instance of that user name that UsrToGrp finds is added to the group.

UsrToGrp does not create user accounts. Each user specified in the text file you create must have an existing account. For global groups, users must have an account in the specified domain. For local groups, users must have an account on the local computer, the specified domain, or in a trusted domain. Only accounts that exist on your local computer will be used if your Windows 2000 Professional computer is a member of a Workgroup rather than a Domain.

This tool is most beneficial when used in a trusted domain structure. It is useful for granting large numbers of users (1,000 maximum per iteration) membership in a group, especially if you don't know in which trusted domain the user accounts are contained. The tool works on all Windows 2000 computers.

 

note-icon

Note

You must be a member of the Administrators or Account Operators group in the specified computer or domain.

UsrToGrp Topics

Files Required