Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 11th, 2005, 8:25 AM   #1
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Net Group /ADD (on a windows box, non domain controller)

Alright, I have a question... finally.

I'm working on a program (in C#) that needs the ability to add groups to a stand-alone windows 2000 box... It has to be based off the NET command, or something that comes with a standard install of w2k.

When I try to issue the NET command with the following syntax it bombs out:

[GRENDEL] C:\>net group myusers /add
This command can be used only on a Windows 2000 Domain Controller.
More help is available by typing NET HELPMSG 3515.

So obviously, the problem seems to be that I can't issue "net group" commands on a machine that is not a domain controller? The "net user" commands work, just not the "net group" commands.

So my questions are:

1) Could someone enlighten me as to how I can add a group to a stand-alone
windows 2k box using "net group" or with a utility that is part of the standard install?

2) Could someone try to execute the following command on a Windows XP and or a Windows 2003 box that is not setup as a domain controller? I'm in the world of Solaris at the moment and I'm not currently able to access a windows box to test this idea.

Thanks...
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 13th, 2005, 2:27 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
A bit late but in case you cared,
net localgroup "groupname" [users] /add

Direct API equivalent is NetLocalGroupAddW

Yeah it works, I use it all the time.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC