I'm working on a powershell script to import about 1300 users into our AD because our HR department decided our Intranet should be set up in the dumbest way possible and I'm having some issues getting the accounts imported. If I do a batch of ~100 the script seems to work fine and all the fields are created properly but when I point it at the primary CSV it doesn't properly populate the email, title, and department fields. Now the only major issue in these accounts is that some have email and some don't but that seems to be caught by my script as I intend it. I'm wondering if any of you smarty pants can see anything obviously wrong with my script? I'm already harassing the powershell IRC group but I thought I would see if any of you had any ideas.
http://jaykul.com/679
http://jaykul.com/679