What the F***?!
This line is no longer able to export the SetPassword function:
use Win32::AdminMisc qw/SetPassword/;
So I call it directly, as follows, but it always fails. And the error code i get back from Win32::GetLastError() is 2221, which I can NOTHING on, so I don't know how to diagnose the problem:
Win32::AdminMisc::SetPassword( $DOM, $ID, $PW ) or die "Win32::GetLastError()\n"; # this bombs with error code: 2221
This line is no longer able to export the SetPassword function:
use Win32::AdminMisc qw/SetPassword/;
So I call it directly, as follows, but it always fails. And the error code i get back from Win32::GetLastError() is 2221, which I can NOTHING on, so I don't know how to diagnose the problem:
Win32::AdminMisc::SetPassword( $DOM, $ID, $PW ) or die "Win32::GetLastError()\n"; # this bombs with error code: 2221