Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

NetUserAdd gives NERR_GroupExists

Why would that be?

I took some code from an Access form and ported to VB to put into an MTS DLL
so I can access it from a website. It works fine in Access but in VB
NetUserAdd returns 123 (well, 2223) NERR_GroupExists.

Anyone with a clue as to why I'm getting this?

Later...

Jerry
[330 byte] By [Jerry D. Turner] at [2007-11-10 0:20:12]
# 1 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --

>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?

From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?

Later... Karl
Karl E. Peterson at 2007-11-11 20:04:09 >
# 2 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --

>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?

From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?

Later... Karl
Karl E. Peterson at 2007-11-11 20:05:15 >
# 3 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.dev-archive.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>

The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.

Later...

Jerry
Jerry D. Turner at 2007-11-11 20:06:13 >
# 4 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.dev-archive.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>

The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.

Later...

Jerry
Jerry D. Turner at 2007-11-11 20:07:12 >
# 5 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --

>The account name I know is not unique as I checked before I added the user.

Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?

Later... Karl

Jerry D. Turner wrote in message <38d6bdf9$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.dev-archive.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
Karl E. Peterson at 2007-11-11 20:08:17 >
# 6 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --

>The account name I know is not unique as I checked before I added the user.

Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?

Later... Karl

Jerry D. Turner wrote in message <38d6bdf9$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.dev-archive.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
Karl E. Peterson at 2007-11-11 20:09:16 >
# 7 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.dev-archive.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl

*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
Jerry D. Turner at 2007-11-11 20:10:13 >
# 8 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.dev-archive.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl

*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
Jerry D. Turner at 2007-11-11 20:11:22 >
# 9 Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]

Jerry D. Turner wrote in message <38d8001f$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.dev-archive.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>
Karl E. Peterson at 2007-11-11 20:12:13 >
# 10 Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]

Jerry D. Turner wrote in message <38d8001f$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.dev-archive.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>
Karl E. Peterson at 2007-11-11 20:13:14 >