Re: NetJoinDomain



Thanks for the answer.

the "\\" didn't work as well. Error code: 87 The parameter is incorrect.
i will try the Patch kb890737.

cya later


uhm, i'm in the german discussion^^:


die Backslashes gehen auch nicht: Error Code 87 The parameter is incorrect.

Ich melde mich nochmal wenn ich den Patch getestet habe.

Vielen Dank
Mermy

"Randy Birch" wrote:

Have you reviewed http://support.microsoft.com/kb/890737? Also, you could
try prefacing the domain in the user ID with \\ (\\myDomain\Administrator)

--

Randy
http://vbnet.mvps.org/


"Mermy" <Mermy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:334C231A-002F-4D70-84E2-CE8E70EFA804@xxxxxxxxxxxxxxxx
Hello guys,

I try to use the NetJoinDomain() function.


Private Const NETSETUP_JOIN_DOMAIN = &H1
Private Const NETSETUP_DOMAIN_JOIN_IF_JOINED = &H20

strDomain = myDomain
strUser = "myDomain\Administrator"
strPassword = "password"

'convert the names to Unicode
strDomain = StrConv(strDomain, vbUnicode)
strUser = StrConv(strUser, vbUnicode)
strPassword = StrConv(strPassword, vbUnicode)

Flags = NETSETUP_JOIN_DOMAIN Or NETSETUP_DOMAIN_JOIN_IF_JOINED
ReturnCode = NetJoinDomain(vbNullString, strDomain, vbNullString, strUser,
strPassword, Flags)


but it doesn't work. The Return is 1332 "No mapping between account names
and security IDs was done."

someone got an idea?




.



Relevant Pages

  • Re: Need your help!
    ... Error code 0XC0070574: Logon Failure: The target account ... name is incorrect. ...
    (microsoft.public.exchange.setup)
  • Re: Need your help!
    ... I am using the account with exchange full admin rights and ... Error code 0XC0070574: Logon Failure: The target ... name is incorrect. ...
    (microsoft.public.exchange.setup)
  • Re: Need your help!
    ... I am using the account with exchange full admin rights and ... Error code 0XC0070574: Logon Failure: The target ... name is incorrect. ...
    (microsoft.public.exchange.setup)
  • Re: Pending MFC of drm updates
    ... Robert Noland wrote: ... I have a patch available for testing at ... With the updated patchfile you need to: ... *** Error code 1 ...
    (freebsd-stable)
  • Re: How to complie keepliaved from Port.
    ... Is there anyone knows how to compile keepalived from the port? ... Its patch only available up to version 7.0. ... When I followed its instruction to patch 4 files, 1 or 2 of those have ... *** Error code 1 ...
    (freebsd-net)