Answer is

with Win2K, it's important to set the website (or virtual dir) configuration
properties (in IIS-site-properties-Home Directory) to "Script and Execute"
rights, with Low (IIS Process) application priority. (If that selection is
grayed out, create a new Configuration for the website by clicking the
Create button on the Home Directory panel.)


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rick Leske
Sent: Sunday, May 05, 2002 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [IMail Forum] Help!!


Rainu Jacob wrote:

> Hi,
>
> I tried to add an user in Imail using my asp file
> http://66.221.36.134/test/imail/access1.asp . But its showing the
following
> error 'failed to
>
> add user rainu2 on 66.221.36.134'.
> Code for access1.asp
> -------------------
> <%
> Dim oExecutor,sUserID,sPassword,sFullName,sResult
> sUserID = "rainu2"
> sPassword = "rainu2"
> sFullName = "rainu2"
>
> Set oExecutor = Server.CreateObject("ASPExec.Execute")
> oExecutor.Application = "C:\Imail\AddUser.exe"
>                       oExecutor.Parameters = "-h 66.221.36.134 -u " & sUserID  & " 
>-p " & _
>                               sPassword & " -n " & sFullName
>                       sResult = oExecutor.ExecuteDosApp
>                       Response.Write sResult
> %>
>
>

> Why i couldnt add imail user using my 1st asp file. Both theese files are
> working perfectlyin old versions of imail.Its not working in version 7.07.
> Can u please check it.
>

Jacob,

Here's the help file that accompanies the adduser.exe file from
http://www.ipswitch.com/Support/utilities.html

Adduser.exe

Description:

   Adduser is an IMail utility that can be used to add, modify or
   delete users in the IMail system via the command line, a file
   or standard input.

Syntax:
   Adduser [-h hostname] [-k] [-m] [-u userid] [-n name] [-p password]
           [-f filename] [-?]

Arguments:
   -h hostname    optional argument used to specify the virtual host
                  for the following user.
   -k             delete userid
   -m             modify userid
   -u userid      specify userid
   -n name        specify fullname of user
   -p password    specify password for user (default is 'password')
   -q             disable alias duplicate check
   -c,            optional argument used to specify an alternate
                  delimiting character where you would replace the
                  default delimiter (a comma) with the desired
                  delimiter (space is not allowed).
   -f filename    name of file containing commands (all above commands
                  are valid, note that -h and -c persist across multiple
                  lines of input).
   -chgpass       disable user ability to change password
   -web           disable user ability to use web
   -active        disable user ability to logon
   -info          disable user display in whois, finger and ldap
   +chgpass       enable user ability to change password
   +web           enable user ability to use web
   +active        enable user ability to logon
   +info          enable user display in whois, finger and ldap
   -?             summary of command options
   #  :  ;        Comments

Return codes:

   This program returns 1 if it performed at least one of the requested
   operations and returns 0 if it failed.

Examples:

   Following five examples add a userid of test01
     Adduser test01
     Adduser -u test01
     Adduser -u test01 -n "mr test" -p hispass
     Adduser -h myhost.com -u test01 -n "ms test" -p yourpass

   Following examples delete a userid
     Adduser -k -u test01
     Adduser -h another.net -k test01

Comments:
   The primary IMail host is used if no host is specified.  Only one
   userid may be added, modified or deleted on a single command line.
   Files may be used to contain multiple commands for one execution.

   Adduser will accept command input via stdin and sends all output
   to stdout.  If you invoke Adduser with no command line options,
   you can manually input command lines, pressing Enter after each
   line and CTRL-Z when complete.  You can also redirect input as
   in "Adduser < filename" or "myprog | Adduser".

   New users will all have the WEB option enabled unless one of
   the option modifiers (-/+chgpass, -/+web, -/+active, -/+info)
   are specified.  Modifying users will not change a users option
   unless ANY of the option modifiers are specified.  If any
   option is specified then all options are enabled except the
   specified options.

Sample file:

userid,password,full name
smith,whypass,Mrs Smith
test1,,Mr Smith
jones,okpass,Tom Jones

Sample output running above file:
D:\IMAIL>Adduser -h wks013 -c, -f test.txt
current host is wks013.augusta.ipswitch.com
OK: added userid to host wks013.augusta.ipswitch.com
OK: added smith to host wks013.augusta.ipswitch.com
OK: added test1 to host wks013.augusta.ipswitch.com
OK: added jones to host wks013.augusta.ipswitch.com

Another Sample File:
#Entrys below default to Primary domain automatically.
#Adds user test100 with password nopass, and full name Mr. Test100
test100,nopass,"Mr. test100"
#adds user test101 with password nopass, name of Ms. Test101, has
ability to #change own password, access from web, account is not
disabled, user information #is accessible from outside.
-u test101 -p nopass -n "Ms. test101" +chgpass +web +active +info
#Add user killthisone
-u killthisone
#Remove user killthisone
-k killthisone
#Change domain(host)
-h virtual001
#Change delimiter from default(,) to a (+).
-c+
#Add user test100 with password of password and name of Mr. Test100
test100+password+"Mr. Test100"
#Modify user test100 with new name of Mrs. Test100
-m -u test100 -n "Mrs. Test100"
#Change domain(host)
-h virtual002
#Change delimiter back to default
-c,

#Add user test101 with password nopass and name Mrs. Test101
test101,nopass,"Mrs. test101"
#Add user test103 with default password password, with default name
test103, has #ability to change own password, access from web, account
is not disabled, user #information is accessible from outside.
-u test103 +chgpass +web +active +info
#Add user test104 with default password password, with default name
test103, has #ability to change own password, access from web, account
is not disabled, user #information is not accessible from outside.
-u test104 -chgpass +web +active -info
#Modify user test103 so user information is not accessible from outside.
-m test103 -info

Results from running file above:
current host is mail.some.where.com
OK: added test100 to host mail.some.where.com
OK: added test101 to host mail.some.where.com
OK: added killthisone to host mail.some.where.com
OK: User "killthisone" removed from " mail.some.where.com ".
INF: current host is virtual001
OK: added test100 to host virtual001
OK: user test100 modified in virtual001
INF: current host is virtual002
OK: added test101 to host virtual002
OK: added test103 to host virtual002
OK: added test104 to host virtual002
OK: user test103 modified in virtual002


Rick


Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/




Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to