Re: NetJoinDomain
- From: Mermy <Mermy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 2 Dec 2007 23:49:01 -0800
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?
- Next by Date: Re: NetJoinDomain
- Next by thread: Re: NetJoinDomain
- Index(es):
Relevant Pages
|
|