473,387 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Adding new user in ASP

Hi to everybody,

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

User example: myserver/user1
Jul 19 '05 #1
3 1494
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

"MeAndI" <se******@libero.it> wrote in message
news:NN**********************@twister1.libero.it.. .
Hi to everybody,

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

User example: myserver/user1

Jul 19 '05 #2
http://www.15seconds.com/faq/ADSI/615.htm

MeAndI wrote:
Hi to everybody,

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

User example: myserver/user1


Jul 19 '05 #3
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:#Y**************@TK2MSFTNGP12.phx.gbl...
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

"MeAndI" <se******@libero.it> wrote in message
news:NN**********************@twister1.libero.it.. .
Hi to everybody,

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

User example: myserver/user1


Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: microsoft.public.dotnet.languages.vb | last post by:
Hi All, I am having a serious problem of removing and adding again an user in a database. Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003...
2
by: avivgur | last post by:
Hello, I am writing a program in Visual C# and I have encountered a problem. In my program I want to dynamically create a multitude of controls (thousands) on a form. The problem is that calling...
3
by: Andy_Alpha | last post by:
Here's code,that i think,add user in group .... DirectoryEntry grp=new DirectoryEntry(GroupName); MessageBox.Show(GroupName,"group to add"); try { if (grp!=null) { grp.Invoke("Add",new...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
1
by: seanmayhew | last post by:
I have a form page that that while editing saves the data to an xml doc before submitting to db. On each page unload it saves the xmldoc as the user can add multiple items to the company like...
3
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
1
by: smartchap009 | last post by:
Adding,Updating and Deleting user using perl script in linux -------------------------------------------------------------------------------- hi, If i can get help in writing perl code for...
2
by: Chris | last post by:
I am getting a viewstate error when adding dynamically user controls. SYSTEM_EXCEPTION:Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.