Groups | Blog | Home
all groups > inetserver asp general > november 2003 >

inetserver asp general : Adding new user in ASP


Ray at <%=sLocation%
11/21/2003 11:16:30 AM
What kind of user? A user account on the server or domain? Assuming your
IUSR has permissions (minimum of account operators), you can do:

<%
Dim oShell, sUser, sCommand
sUser = "joe"
sCommand = "cmd.exe /c net user " & sUser & " /ADD"
Set oShell = SErver.CreateObject("WScript.Shell")
oShell.Run sCommand, 0, True
%>

If you have password policies in place, you'll have to adhere to them when
creating the user.

Ray at work



[quoted text, click to view]

Aaron
11/21/2003 11:20:56 AM
http://www.15seconds.com/faq/ADSI/615.htm

[quoted text, click to view]
MeAndI
11/21/2003 4:10:21 PM
Hi to everybody,

How can I add a new user on my server using ASP?

User example: myserver/user1

MeAndI
11/21/2003 4:24:27 PM
I want to add a user account on the server!
Don't worry about the premissions because this page is accessible only by
special users which have all the permissions

OK! Now I try this
thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> ha scritto nel
messaggio news:#Y8MUrEsDHA.2148@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button