Using Python, Exchange & CDOEXM to get/create/delete Storage Groups

E

Erick Bodine

I am trying to get a list of Storage Groups on an Exchange Server
(E2K) with an eye towards deleting/creating more. I am going off of
the Exchange SDK docs in msdn
(http://msdn.microsoft.com/library/en-us/wss/wss/_cdo_enumerating_storage_groups_and_stores.asp)
to do this.

I used makepy.py (on 'Microsoft CDO for Exchange Management Library')
to generate early binding and thought everything was going fine, but I
get the following...

First, it doesn't appear that early binding is working?? Second, both
calls come up empty?? I am obviously missing something but don't know
what that something is.

I look in the makepy.py generated module and see the following under
the IExchangeServer class - So I believe that I am creating/calling
everything correctly. Any ideas??

class IExchangeServer(DispatchBaseClass):
"""IExchangeServer Interface"""
CLSID = IID('{25150F47-5734-11D2-A593-00C04F990D8A}')
coclass_clsid = IID('{25150F27-5734-11D2-A593-00C04F990D8A}')

def GetInterface(self, Interface=defaultNamedNotOptArg):
"""Returns the specified interface on the object"""
ret = self._oleobj_.InvokeTypes(85, LCID, 1, (9, 0), ((8, 1),),
Interface)
if ret is not None:
ret = Dispatch(ret, 'GetInterface', None, UnicodeToString=0)
return ret

_prop_map_get_ = {
# Method 'DataSource' returns object of type 'IDataSource2'
"DataSource": (75, 2, (9, 0), (), "DataSource",

'{25150F48-5734-11D2-A593-00C04F990D8A}'),
"DaysBeforeLogFileRemoval": (82, 2, (3, 0), (),
"DaysBeforeLogFileRemoval",
None),
"DirectoryServer": (84, 2, (8, 0), (), "DirectoryServer", None),
"ExchangeVersion": (78, 2, (8, 0), (), "ExchangeVersion", None),
# Method 'Fields' returns object of type 'Fields'
"Fields": (76, 2, (9, 0), (), "Fields",
'{00000564-0000-0010-8000-00AA006D2EA4}'),
"MessageTrackingEnabled": (81, 2, (11, 0), (),
"MessageTrackingEnabled",
None),
"Name": (77, 2, (8, 0), (), "Name", None),
"ServerType": (83, 2, (3, 0), (), "ServerType", None),
"StorageGroups": (79, 2, (12, 0), (), "StorageGroups", None),
"SubjectLoggingEnabled": (80, 2, (11, 0), (),
"SubjectLoggingEnabled",
None),
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top