-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Vichu
Message 1 in Discussion
Hi all, How to create new user in the active directory of windows using asp.net? I am
using old asp code for creating the user (sample one not elaborated much). my system
is having windows 2000 professional. I am targeting the system which is having windows
2000 server. I have given the code for creating the user in domain. when it come
across the user.setinfo it throws 'unspecified error'. what could be the problem. Here
is my code inside the function...
Try
Dim Computer As Object
Dim User As Object
Computer = GetObject("WinNT://" & strDomain) ' passing domain name as godrej.local
which is server
User = Computer.Create("User", strUser)
User.fullname = strFullName
User.description = strDesc
Call User.setPassword(strPassword)
User.setinfo()
Computer = Nothing
User = Nothing
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
What could be the problem in the code
Please help me reagarding this
Yours
Viswanath
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]