Sheahan, John wrote on 12/29/2009 03:13 PM:

> One question I have is, when I run the script and it creates the user in AD, 
> I still have to manually go in and right click on the new user that was 
> created and enable it....is there a way to do this automatically through the 
> script?
> 

You probably want to set the userAccountControl attribute to 512. From
the comments in Net::LDAP::Class::User::AD:

# see
#
http://www.sysoptools.com/support/files/Fixing%20user%20accounts%20flagged%20as%20system%20accounts%20-%20the%20UserAccountControl%20AD%20attribute.doc
# for details on userAccountControl.
# basically:
#  512 - normal active account requiring password
#  514 - normal disabled account requiring password
#  544 - system active account - no password required
#  546 - system disabled account - no password required (default)


-- 
Peter Karman  .  http://peknet.com/  .  pe...@peknet.com

Reply via email to