in reply to Win32API::Net::GetDCName returns error code 87 for remote servers
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32API::Net::GetDCName returns error code 87 for remote servers
by dt667 (Acolyte) on Mar 30, 2016 at 11:16 UTC | |
by BrowserUk (Patriarch) on Mar 30, 2016 at 11:21 UTC | |
by dt667 (Acolyte) on Mar 30, 2016 at 12:59 UTC | |
by BrowserUk (Patriarch) on Mar 30, 2016 at 13:17 UTC |