The Net command line program can return info on error numbers thusly:

 Code:
c:\>net helpmsg 1355

The specified domain either does not exist or could not be contacted.


Have a look in your script for any place that refers to a domain - drive mappings (Use), group membership checks (InGroup, EnumGroup, EnumLocalGroup), commands that look for a server (SetTime) or macros (@Domain, @LDomain, @HostName).

Put something to output the @Error or @SError macros before and after any of those commands. If you see the error code appear, investigate the parameters on that last command.

cj