Pelle,

To find the next available $virtual, you must run a FOR EACH loop to see if
it is in the registry OR you could track the numbers in a database. I prefer
the FOR EACH method because it is not susceptable someone manually setting
up a domain, etc.

Mike

----- Original Message ----- 
From: "Stib" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 10, 2005 12:16 PM
Subject: SPAM-WARN: [IMail Forum] IMAIL script new host with VB


> Hi Everyone!
>
> I wonder if someone have som example, preferable in VB so I can continue
> develop my  automatic script for setting up Imail 8 hosts.
> I have script up my DNS, Ftp and IIS settings so it all works, but I
> haven't got to Imail yet.
> I do this from a remote computer using
> Set objLocator = server.CreateObject("WbemScripting.SwbemLocator")
> Set Mail1 = objLocator.ConnectServer("SERVERNAME", "root\cimv2",
> "USERACCOUNT", "USERPASSWORD")
>
> Does anyone have an idea on how I can set up a host and add a useraccount
> to this?
> I guess it is a Regsetting, but it sweams like I need both to set
> $virtualXXX (Is there then an easy way to get next available #?) and then
> the domainname and the sub Users.
>
> Any ideas is greatfully accepted :P
>
> Regards Pelle
>
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
>
>



To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to