An IMail user has a "flags" value in the registry and if you modify it, you can turn a
user into a host admin. You can try the following in a VBS, which turns a regular user
into a host-list administrator with web access (works for IMail 7.x):
DomainName = "domain.com"
UserLogin = "adminUser"
RegUserKey = "\Software\Ipswitch\IMail\Domains\" & DomainName & "\Users\" & UserLogin
& "\"
RegUserVal = "Flags"
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite RegRootKey & RegUserKey & RegUserVal, 1408, "REG_DWORD"
Set WshShell = Nothing
You can experiment by watching how the "flags" value changes when you check or uncheck
an attribute in IMail Administrator (that's how I found that magic number 1408 you see
in the script).
Vassilis Tremmas
OTEnet SA
-----Original Message-----
From: A W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 4:08 AM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Command Line for Host Admin
Does anyone know any simply code that I could integrate into my batch file
to allow me to grant host administrator priveledges to a user?
Apparently the adduser.exe doesn't offer this functionality...
Thanks!
Andy
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
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/