All,
 
I'm trying to execute the script below but it's returning this error:
 
Win32::OLE operating in debugging mode: _Unique => 1
Win32::OLE(0.1502) error 0x8007202f: "A constraint violation occurred"
    in METHOD/PROPERTYGET "SetInfo"
 
The really bizzare thing here is that this script's VBSCRIPT equivalent works fine. 
So, I'm totally stumped!
 
Begin Script
------------
 use Win32::OLE;
 my $Name = "Henry Isham";
 my $ID = "hisham";
 
 my $Container = Win32::OLE->GetObject("LDAP://ou=sitename,dc=corp,dc=net";);
 my $NewUser = $Container->Create("user","cn=" .$Name);
 $NewUser->PutEx("SamAccountName",$ID);
 $NewUser->PutEx("objectClass","user");
 $NewUser->PutEx("scriptPath","sitename.vbs");
 $NewUser->PutEx("userAccountControl",512); 
 $NewUser->SetInfo;
 print Win32::OLE->LastError();
=��Z)��f�y��X��X�����h��`�)��lz��rدy+Z��(�:.�˛���m�m����+-����b��jל�o�j)fj��˛


Reply via email to