Title: Message
Chris,
 
Take a look at the AUtoAccept scripts at Microsoft.
 
Kevin
-----Original Message-----
From: James Chris L [mailto:[EMAIL PROTECTED]]
Sent: 21 June 2002 18:04
To: MS-Exchange Admin Issues
Subject: Looking CDO or VB property

I am looking for a way to create a VB script that will logon to all mailboxes and add a check in the auto accept and auto decline meetings boxes from Outlook.   I know this is a setting on the server properties on the mailbox, and is just changed from the Outlook Client. 

 

I have a script with will logon to all mailboxes with a MAPI connection,  I just need to know the name of the server property I am trying to change.

 

I would look something like this.

 

        Dim objSession

        '-- Create temporary Session and Logon:

        Set objSession = CreateObject("MAPI.Session")

        objSession.Logon

       

    'This sets up the connection to use to query exchange for directory information.

    Set ADOCommand = CreateObject("ADODB.Command")

    Set ADOConn = CreateObject("ADODB.Connection")

    ADOConn.Provider = "ADsDSOObject"

    ADOConn.open "Active Directory Provider"

    Set ADOCommand.ActiveConnection = ADOConn

    Set rs = CreateObject("ADODB.Recordset")

 

    ADOCommand.CommandText = "<LDAP://<server>/o=<org>/ou=<site>;(rdn=<user>);uid,mail,cn;subtree"

    Set rs = ADOCommand.Execute

    months = objSession.GetOption("FreeBusyMonths")

 

 

 

 

 

 

List Charter and FAQ at:
http://www.sunbelt-software.com/exchange_list_charter.htm
List Charter and FAQ at:
http://www.sunbelt-software.com/exchange_list_charter.htm

Reply via email to