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: Deseperately Need Your HELP!
    ... If your account ... Error code 0XC0070574: Logon Failure: The ... name is incorrect. ...
    (microsoft.public.exchange.admin)
  • Re: [PATCH] modpost: detect unterminated device id lists
    ... This patch against 2.6.23-rc6 will cause modpost to fail if any device ... that made some extensive changes to the elf parser (due to the NOBITS ... the .bss segment is initialized by the loader to all ... the above code basically side-steps the incorrect symbol location ...
    (Linux-Kernel)