Discussion:
Net localgroup does not work
(too old to reply)
Tim Stammberg
2004-09-16 21:00:59 UTC
Permalink
Hi NG,
i am trying to add the following XP Active Directory usergroups to the local
Power Users Group, but somehow it does not work.
I am using the following syntax

net localgroup "Power Users" "eu\gerstu_ws_proj_admin" /add

I always get the message that the syntax is wrong.
Does anone know, which is the right syntax to add domain user groups to the
local group?
Thanks
Tim
dre
2004-09-17 13:50:00 UTC
Permalink
Post by Tim Stammberg
Hi NG,
i am trying to add the following XP Active Directory usergroups to the local
Power Users Group, but somehow it does not work.
I am using the following syntax
net localgroup "Power Users" "eu\gerstu_ws_proj_admin" /add
I always get the message that the syntax is wrong.
Does anone know, which is the right syntax to add domain user groups to the
local group?
Thanks
Tim
I have no idea why you would want to do it through a script. Thats what
Active directory is for, just create a group policy to add that AD group
to the local group.
Tim Stammberg
2004-09-17 16:53:57 UTC
Permalink
Post by dre
Post by Tim Stammberg
Hi NG,
i am trying to add the following XP Active Directory usergroups to the
local Power Users Group, but somehow it does not work.
I am using the following syntax
net localgroup "Power Users" "eu\gerstu_ws_proj_admin" /add
I always get the message that the syntax is wrong.
Does anone know, which is the right syntax to add domain user groups to
the local group?
Thanks
Tim
I have no idea why you would want to do it through a script. Thats what
Active directory is for, just create a group policy to add that AD group
to the local group.
Thanks for even considering this way.

The Problem is, that it should only take effect on certain PCs and not on
every Pc in the Domain. The second Problem ist, that some PCs do not belong
to the Department where those changes should take effect., so I need to run
the batch or script only on a few (100Pcs) not all (approx3500Pcs).

Greetings
Tim
Pegasus (MVP)
2004-09-18 12:47:11 UTC
Permalink
Post by Tim Stammberg
Hi NG,
i am trying to add the following XP Active Directory usergroups to the local
Power Users Group, but somehow it does not work.
I am using the following syntax
net localgroup "Power Users" "eu\gerstu_ws_proj_admin" /add
I always get the message that the syntax is wrong.
Does anone know, which is the right syntax to add domain user groups to the
local group?
Thanks
Tim
I can't see anything wrong with your syntax. Here is my own command:

C:\>net localgroup "administrators" "lock-wood\power users" /add
The command completed successfully.

Continue reading on narkive:
Loading...