PDA

View Full Version : Command line user/group management


David Jones
December 14th 03, 02:08 AM
Use "net localgroup" instead of "net group" and this will
work.

>-----Original Message-----
>I was wondering if any of you folks know of a way to
>delete users from groups or delete entire groups at a
>command line. Heres the catch, I'm not on a domain. I
>tried using "net group" but it requires that you be on a
>windows domain controller.
>
>Here's what I'm doing.
>I did all my installs as a specific user
called "student".
>While I do all the installs I have that user in the
>Administrators group. I am looking for a fast way to
>remove them from the group, hopefully command line so I
>can make a batch file out of it because I have about 150
>machines to do this to. The other idea I had was to
create
>a new group with admin rights and make the user part of
>that group, then delete that group when I'm done with
the
>installs.
>
>What do you pros think. I am up to ANY suggestions.
>Thanks
>James
>.
>

Google