Quoting DePriest, Jason R.:
> For scripts using AdminMisc, I usually check the results of
> Win32::FormatMessage(Win32::GetLastError()) where I would typically
> check $! and $^E.
> As far as specific errors for passwords and such, I haven't looked into
> that.

Ah ha! I tried that, but it didn't work. Jason emailed me with how he
normally gets things working, but then it slowly dawned on me that
UserChangePassword is a NetAdmin function, not an AdminMisc one.

And, 

http://www.uni-hildesheim.de/rz/perl/html/site/lib/Win32/NetAdmin.html

says: "All of the functions return false if they fail, unless
otherwise noted. When a function fails call
Win32::NetAdmin::GetError() rather than GetLastError() or $^E to
retrieve the error code."

So that was my answer.

Peter
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to