473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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...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...
import win32com.client

exch = win32com.client.Dispatch("CDOEXM.ExchangeServer")
exch <COMObject CDOEXM.ExchangeServer> exch.ExchangeVersion
u''
exch.StorageGroups
()


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),
}
Jul 18 '05 #1
0 1517

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Peter Otten | last post by:
QOTW: "It seems to me that in many respects Python is a programmer's programming language." - Arthur "My code did NOT have any leaks in it! :-D That's almost a miraculous occurrence when...
0
by: Dave Spina | last post by:
I have been working with the System.DirectoryServices namespace and the CDOEXM COM objects in a recent project. After probing the CDOEXM object set for a while I noticed that beyond the usual...
8
by: doomx | last post by:
I'm using SQL scripts to create and alter tables in my DB I want to know if it's possible to fill the description(like in the Create table UI) using these scripts. EX: CREATE TABLE(...
0
by: Manuel Krummenacher | last post by:
Hello! I'm trying to develop an application to manage email-forwardings on an Exchange 2000 Server. Forwardings to external Addresses are requiring a contact with an Exchange account. I can...
1
by: Jeroen van Gent | last post by:
Hi, I am trying to create a function to create a GroupOfNames in exchange with C#. I have found multiple samples of this in VBScript and VB but nothing in C#. The biggest problem for me is the...
2
by: Vincent Nguyen | last post by:
Hi, I have problem create exchange 2000 mailbox using CDOEXM in my Web Service application. The error I got was "Catastrophic failure". Here is the code that I have: DirectoryEntry user =...
0
by: Flens | last post by:
Hi, I have code that worked until we upgraded from Exchange 2000 to Exchange 2003 and I now get a catastrophic failure at CreateMailbox (COMException (0x080004005)) I have updated the...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
0
by: arjen1984 | last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft: http://support.microsoft.com/kb/313114 Then my homeMDB string was incorrect. I saw an article , link:...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.