Hi all,
I created a script that creates user account in Active Directory, creates share folder, set security, etc...
My scripts needs 5 arguments First name, last name, group, password, user type.
I tried an asp page that prompts the user for those informations and on submit button, calls the script. It looks like it should work but it doesn't.
Can someone help me please!
here is my asp page.
I created a script that creates user account in Active Directory, creates share folder, set security, etc...
My scripts needs 5 arguments First name, last name, group, password, user type.
I tried an asp page that prompts the user for those informations and on submit button, calls the script. It looks like it should work but it doesn't.
Can someone help me please!
here is my asp page.
Code:
<%@ Language=VBScript %>
<html>
<head>
<%
Fname = request.querystring("Fname")
Lname = request.querystring("Lname")
Level = request.querystring("Level")
Password = request.querystring("password")
UserType = request.querystring("UserType")
dim wsh, return
if Fname <> "" Then
set wsh = Server.CreateObject("WScript.Shell")
return = wsh.run("CreateUser.vbs" & " " & Fname & " " & Lname & " " & Level & " " & Password & " " & UserType,3,TRUE)
Response.Write "In IF " & Fname & "return = " & return
End if
%>
</head>
<body>
<form name=form1 method="get">
<h3>Select user type</h3>
<p>Student:
<input type="radio" checked name="UserType" value="Students">
<br>
Teacher:
<input type="radio" name="UserType" value="Teachers">
</p>
<br>
<h3>Enter user informations</h3>
First Name :
<input type="text" name="Fname">
<br>
Last Name :
<input type="text" name="Lname">
<br>
Group :
<input type="text" name="Level">
<br>
Password :
<input type="password" name="Password">
<br>
<br>
<input type="submit" value="Create User">
</form>
</body>
</html>[\code]
Thanks!