I tried this today and got an error
System.DirectoryServices.DirectoryServicesCOMException (0x8007202B): A referral was returned from the server.... etc
EDIT
Got it to work. Added the .exe to Data Execution Prevention's exception list.
but got a few errors out of 200 users i saw 3 such as....
System.DirectoryServices.DirectoryServicesCOMException (0x8007001F): A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at ImperoADClient.clsADManager.AddUser(String strPath, String strUsername, String strPassword, String strFirstname, String strSurname, String strHomeDrive, String strHomeFolderPath, String strProfilePath, String strLogonScript, Boolean bCreateHF, Boolean bCreatePF, String strDescription)
System.DirectoryServices.DirectoryServicesCOMException (0x8007001F): A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at ImperoADClient.clsADManager.AddUser(String strPath, String strUsername, String strPassword, String strFirstname, String strSurname, String strHomeDrive, String strHomeFolderPath, String strProfilePath, String strLogonScript, Boolean bCreateHF, Boolean bCreatePF, String strDescription)
&
System.DirectoryServices.DirectoryServicesCOMException (0x80072032): An invalid dn syntax has been specified. (Exception from HRESULT: 0x80072032)
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at ImperoADClient.clsADManager.AddUser(String strPath, String strUsername, String strPassword, String strFirstname, String strSurname, String strHomeDrive, String strHomeFolderPath, String strProfilePath, String strLogonScript, Boolean bCreateHF, Boolean bCreatePF, String strDescription)
It was due to some spacing guys. I anyone knows of a formula to delete spacing. its too many users to double check. next batch will be 2000