Keep It Simple, Stupid | |
PerlMonks |
Re: Win32API::Net::GetDCName returns error code 87 for remote serversby BrowserUk (Patriarch) |
on Mar 29, 2016 at 18:48 UTC ( [id://1159042]=note: print w/replies, xml ) | Need Help?? |
GetLastError results in error code 87 (ERROR_INVALID_PARAMETER). The MS description of the underlying function suggest that error 87 for that api means: "The name syntax is incorrect. This error is returned if the name specified in the servername parameter contains illegal characters. " It goes on to caution that whilst the server name can be in either DNS (microsoft.com) or Netbios (microsoft) form; the domain name can only be in the latter form. I'm guessing that you are supplying the server name in a format that the call doesn't expect. Hard to confirm as you feel the need to redact the name in your posts. If you posted a fictitious name that is in the same form as the real ones you are using, someone might be able to see the problem. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|