We help IT Professionals succeed at work.
Get Started

net localgroup does not work

720 Views
Last Modified: 2013-11-25
Hi

I am running Windows 2003 Domain controllers. The application server in question is Windows 2003 Sp2.

I am trying to add the following security group, "London\$group-EMEA-GBLO-HR-Groupname" to the local Administrators group, using the following command

net localgroup "Administrators" /add "London\$group-EMEA-GBLO-HR-Groupname"

and am getting the following message;

The syntax of this command is:


NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
              groupname {/ADD [/COMMENT:"text"] | /DELETE}  [/DOMAIN]
              groupname name [...] {/ADD | /DELETE} [/DOMAIN]

I assume this is because net.exe is limited to groups with 20 characters or less, so I changed the pre-Windows 2000 group name to "$group-EMEA-GBLO-HR-" in ADUC, which is exactly 20 characters.

When I try and run the command again, I am getting a "no such groups exist" message. Hopefully, this is because of DC replication times.

Couple of questions I was hoping someone could help me with;

a) Is the fact that I am getting the "no such groups exist" message post changing the name due to DC replication  or will even changing the pre-Windows 2000 group name not fix this?

b) I have typed in 'set' at DOS prompt on the server, but can't see a DC that the machine is connected to...how can I check this?

c) Apart from the net.exe limitation, are there any other reasons not to have group names > 20 characters

d) Following on from the above, are there any reasons not to have pre-Windows 2000 username > 8 characters?

Urgent, so max points.

Cheers!
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE