Thanks go to CJ!
Ref - Checking for an existing User Account
1. Convert num to Hex -2147022675 = 0x800708AD
2. Strip top 4 bytes = 08AD
3. Convert back to Dec 0x08AD = 2221
4. Look up this error with NET HELPMSG 2221
code:
H:\temp>net helpmsg 2221
The user name could not be found.
EXPLANATION
You specified an unknown user name.
ACTION
Check the spelling of the user name. To display
a list of the users in the security database, type:
NET USER
If you are not able to get this information readily, you can use the following resources:
http://www.microsoft.com/technet
http://msdn.microsoft.com
http://support.microsoft.com
You may also want to go to newsgroups. You don't have a News Reader?
You should be able to try here- http://groups.google.com/groups?gidx=220&hl=en&lr=&ie=ISO-8859-1&group=microsoft.public
HTH,
Kent
{edit}
Thanks to Howard for this tidbit:
In case anyone is interested in a little automation. This function can be included in your code and called when the COM error <> 0.
code:
? ConvertCOMerror(-2147022675)
Function ConvertCOMerror($error)
$error = val("&"+Right(DecToHex($error),4))
? "Error: $error"
shell "net helpmsg $error"
Endfunction
See also this topic for another slant on it.
Topic: FAQ Disscussion - Error Msg Lookup
[ 19. March 2003, 22:03: Message edited by: LLigetfa ]