Adding new user in ASP

M

MeAndI

Hi to everybody,

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

User example: myserver/user1
 
R

Ray at

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
 
M

MeAndI

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,814
Members
47,357
Latest member
sitele8746

Latest Threads

Top