Okay perfect. I didn't have the On Error Resume Next, so it was failing
before I could gracefully kill it.
How do I handle this though?
Const LDAP_ALREADY_EXISTS = &h80071392
Set objUser = objOU.Create("User", "CN=" & strFirstName & " " & strLastName)
objUser.Put "samAccountName", strUser
objUser.Set
If Err.Number = LDAP_ALREADY_EXISTS
Then WScript.Echo "The user account already exists."
response.end
End If
The If statment is never true. (It works fine in a regular VB script, but
put it in ASP and it falls apart) If I try to create an account with the
same username it just keeps on going, even outputing the message that the
account was created succesfully (at the end of the script.)