How to Import CSV into Local Group


G

Guest

Hi, folks.

I have a large number of domain users that I need to add to a local group on
an XP workstation. I have the list of users in a CSV file in the format
domain\user, domain\user, domain\user, etc. Can I (how can I) import that
user list into a local group on the workstation?

TIA,

Bob
 
Ad

Advertisements

G

Guest

You might look for ADSI scripting samples. ADSI is much like VBScript, but
has coding libraries specific to these types of tasks.

http://www.microsoft.com/technet/scriptcenter/tools/admatic.mspx

However, if your task is to add users to a local XP workstation group, you
should be able to do the same by creating a domain-local-group (tree level),
and then add that domain-local-group to the workstation local group. In
this fashion, you can administer accounts from within the tree to affect
access on the workstation.

Vinson
 
G

Guest

Hi, Vinson.

I certainly appreciate the feedback. Unfortunately, I am not an AD sysadmin
and would have to open up a support ticket, yadda yadda yadda. So, I was
hoping to find a command line command to do this. I'm not familiar with
scripting (yet), but I'll look into the URL that you provided.

Thanks,

Bob
 
Ad

Advertisements

G

Guest

Hey Bob,

There is a simple command called NET that would do the trick. The command
will do interesting things, including add people to groups, and is accessed
from the CMD Window (a.k.a DOS). Specifically, the syntax of the command is
NET GROUP. With many user names, it might require some batch programming,
at the least. Here is a good start page to explore the groups aspect of the
NET command. At the bottom of the page, there are command samples.

http://technet2.microsoft.com/windo...e214-4ab2-a319-e89e3d4806941033.mspx?mfr=true

Hope this helps.

Vinson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top