Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

exchange 2003 and PS

Closed Thread
 
Thread Tools Display Modes
Old 04-10-2007   #1 (permalink)
roger
Guest


 

exchange 2003 and PS

I need to write a simple VB.NET app that creates a exch 2003 mailbox. Used to
do this trough codexm but this no longer works on vista - so PS looks like
the way to go... So does anyone know how such a script should look like or
where to find the docs to read up on how to do this?

Regards,
Roger

Old 04-10-2007   #2 (permalink)
Thomas Lee
Guest


 

Re: exchange 2003 and PS

In message <114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com>, roger
<roger@discussions.microsoft.com> writes
>I need to write a simple VB.NET app that creates a exch 2003 mailbox. Used to
>do this trough codexm but this no longer works on vista - so PS looks like
>the way to go... So does anyone know how such a script should look like or
>where to find the docs to read up on how to do this?


Powershell is supported natively by Exchange 2007, but not by Exchange
2003.

--
Thomas Lee
doctordns@gmail.com
MVP - Admin Frameworks and Security
Old 04-10-2007   #3 (permalink)
Marco Shaw
Guest


 

Re: exchange 2003 and PS


"roger" <roger@discussions.microsoft.com> wrote in message
news:114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com...
>I need to write a simple VB.NET app that creates a exch 2003 mailbox. Used
>to
> do this trough codexm but this no longer works on vista - so PS looks like
> the way to go... So does anyone know how such a script should look like or
> where to find the docs to read up on how to do this?


As Thoman mentions, PowerShell is supported natively in Exch 2003. You
could still potentially use PowerShell though from what I've been able to
quickly google.

I've never heard of CDOEXM before, but it appears to be an Exch automation
DLL (COM object, if I'm using the right terminology).

I would think you could use PowerShell to load CDOEXM as a COM object then
call a method or property from it to do pretty much anything that object
would support.

That enough to get you going?

Marco


Old 04-10-2007   #4 (permalink)
Marco Shaw
Guest


 

Re: exchange 2003 and PS

> As Thoman mentions, PowerShell is supported natively in Exch 2003. You
> could still potentially use PowerShell though from what I've been able to
> quickly google.


Oops! PowerShell is supported natively in Exch *2007*...


Old 04-10-2007   #5 (permalink)
Thomas Lee
Guest


 

Re: exchange 2003 and PS

In message <uqK6Qg2eHHA.4136@TK2MSFTNGP02.phx.gbl>, Marco Shaw
<marcoDOTshaw_@_gmailDOTcom.?.invalid> writes
>
>"roger" <roger@discussions.microsoft.com> wrote in message
>news:114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com...
>>I need to write a simple VB.NET app that creates a exch 2003 mailbox. Used
>>to
>> do this trough codexm but this no longer works on vista - so PS looks like
>> the way to go... So does anyone know how such a script should look like or
>> where to find the docs to read up on how to do this?

>
>As Thoman mentions, PowerShell is supported natively in Exch 2003.


It's Thomas and it's Exchange 2007 that's supported natively not 2003!
:-)

One place to start, Roger, is "Exchange Scripting: A Road Map"
http://www.microsoft.com/technet/scr...ge/exchange_ro
admap.mspx

> You
>could still potentially use PowerShell though from what I've been able to
>quickly google.


Indeed - you can pretty much do _everything_ with PowerShell (well
nearly).

>I've never heard of CDOEXM before,


Collaboration Data Objects for Exchange Management.

http://msdn2.microsoft.com/en-us/library/aa142616.aspx

NB: these are gone in Exchange 2007
http://msdn2.microsoft.com/en-us/library/bb332450.aspx

>but it appears to be an Exch automation
>DLL (COM object, if I'm using the right terminology).


Correct.

>I would think you could use PowerShell to load CDOEXM as a COM object then
>call a method or property from it to do pretty much anything that object
>would support.
>
>That enough to get you going?


See also:

Scripting Exchange Using VBScript and ADSI (Part 1):
http://www.msexchange.org/articles/S...ipt-ADSI-Part1
..html

Scripting Exchange Using VBScript and ADSI (Part 2)
http://www.msexchange.org/articles/S...ipt-ADSI-Part2
..html

Scripting Exchange Using VBScript and ADSI (Part 3)
http://www.msexchange.org/articles/S...ipt-ADSI-Part3
..html

HTH

Thomas

--
Thomas Lee
doctordns@gmail.com
MVP - Admin Frameworks and Security
Old 04-10-2007   #6 (permalink)
roger
Guest


 

Re: exchange 2003 and PS

Thomas & Marco:

Thanks for the replies - although I knew Powershell/Exchange features was
"made for" exchange 2007 I thought a subset of features - like creating a
mailbox would be possible. As you mentioned CDOEXM is part of the Exchange
2003 management tools. It was a breeze to hook into it from a VB.NET app and
create new mailboxes in code. The insane thing I discovered after upgrading
to Vista is that MS has decided that the 2003 management tools can not be
used on Vista - efficiently breaking my code from running on administrators
Vista pc's. And testing and development has to be done on an XP pc until I
find an alternative solution to this. It has to be more developers out there
that did this through CDOEXM and has been fooled by this strange effect og
installing Vista.... :-((

I'll have a look at WMI to see if that can be the way to go......

"Thomas Lee" wrote:

> In message <uqK6Qg2eHHA.4136@TK2MSFTNGP02.phx.gbl>, Marco Shaw
> <marcoDOTshaw_@_gmailDOTcom.?.invalid> writes
> >
> >"roger" <roger@discussions.microsoft.com> wrote in message
> >news:114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com...
> >>I need to write a simple VB.NET app that creates a exch 2003 mailbox. Used
> >>to
> >> do this trough codexm but this no longer works on vista - so PS looks like
> >> the way to go... So does anyone know how such a script should look like or
> >> where to find the docs to read up on how to do this?

> >
> >As Thoman mentions, PowerShell is supported natively in Exch 2003.

>
> It's Thomas and it's Exchange 2007 that's supported natively not 2003!
> :-)
>
> One place to start, Roger, is "Exchange Scripting: A Road Map"
> http://www.microsoft.com/technet/scr...ge/exchange_ro
> admap.mspx
>
> > You
> >could still potentially use PowerShell though from what I've been able to
> >quickly google.

>
> Indeed - you can pretty much do _everything_ with PowerShell (well
> nearly).
>
> >I've never heard of CDOEXM before,

>
> Collaboration Data Objects for Exchange Management.
>
> http://msdn2.microsoft.com/en-us/library/aa142616.aspx
>
> NB: these are gone in Exchange 2007
> http://msdn2.microsoft.com/en-us/library/bb332450.aspx
>
> >but it appears to be an Exch automation
> >DLL (COM object, if I'm using the right terminology).

>
> Correct.
>
> >I would think you could use PowerShell to load CDOEXM as a COM object then
> >call a method or property from it to do pretty much anything that object
> >would support.
> >
> >That enough to get you going?

>
> See also:
>
> Scripting Exchange Using VBScript and ADSI (Part 1):
> http://www.msexchange.org/articles/S...ipt-ADSI-Part1
> ..html
>
> Scripting Exchange Using VBScript and ADSI (Part 2)
> http://www.msexchange.org/articles/S...ipt-ADSI-Part2
> ..html
>
> Scripting Exchange Using VBScript and ADSI (Part 3)
> http://www.msexchange.org/articles/S...ipt-ADSI-Part3
> ..html
>
> HTH
>
> Thomas
>
> --
> Thomas Lee
> doctordns@gmail.com
> MVP - Admin Frameworks and Security
>

Old 04-10-2007   #7 (permalink)
Marco Shaw
Guest


 

Re: exchange 2003 and PS

....
> "made for" exchange 2007 I thought a subset of features - like creating a
> mailbox would be possible. As you mentioned CDOEXM is part of the Exchange
> 2003 management tools. It was a breeze to hook into it from a VB.NET app
> and
> create new mailboxes in code. The insane thing I discovered after
> upgrading
> to Vista is that MS has decided that the 2003 management tools can not be
> used on Vista - efficiently breaking my code from running on
> administrators
> Vista pc's. And testing and development has to be done on an XP pc until I
> find an alternative solution to this. It has to be more developers out
> there
> that did this through CDOEXM and has been fooled by this strange effect og
> installing Vista.... :-((


Well, it appears CDOEXM is just a set of DLLs... I see no reason why you
can't hunt down the DLLs, and copy them over to Vista manually. Might not
be supported, but I'd think it would work. Easy to load them into
PowerShell after..

> I'll have a look at WMI to see if that can be the way to go......


That should work too.


Old 04-10-2007   #8 (permalink)
Gaurhoth
Guest


 

Re: exchange 2003 and PS

You do not *HAVE* to use CDOEXM to create mailboxes via scripts... altho
it's the only way that Microsoft supports it. There is a set of AD Fields
that if you enter the correct data, the RUS will create the mailbox and
handle everything just fine. I've done it successfully in my lab and several
times in my production environment. It'll probably be this weekend before I
can dig out the code -- I'm in the middle of buying a house, so my time is
no longer mine

Gaurhoth

"roger" <roger@discussions.microsoft.com> wrote in message
news:86179F3E-1F6E-48EE-80D7-3E26B11ED29F@microsoft.com...
> Thomas & Marco:
>
> Thanks for the replies - although I knew Powershell/Exchange features was
> "made for" exchange 2007 I thought a subset of features - like creating a
> mailbox would be possible. As you mentioned CDOEXM is part of the Exchange
> 2003 management tools. It was a breeze to hook into it from a VB.NET app
> and
> create new mailboxes in code. The insane thing I discovered after
> upgrading
> to Vista is that MS has decided that the 2003 management tools can not be
> used on Vista - efficiently breaking my code from running on
> administrators
> Vista pc's. And testing and development has to be done on an XP pc until I
> find an alternative solution to this. It has to be more developers out
> there
> that did this through CDOEXM and has been fooled by this strange effect og
> installing Vista.... :-((
>
> I'll have a look at WMI to see if that can be the way to go......
>
> "Thomas Lee" wrote:
>
>> In message <uqK6Qg2eHHA.4136@TK2MSFTNGP02.phx.gbl>, Marco Shaw
>> <marcoDOTshaw_@_gmailDOTcom.?.invalid> writes
>> >
>> >"roger" <roger@discussions.microsoft.com> wrote in message
>> >news:114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com...
>> >>I need to write a simple VB.NET app that creates a exch 2003 mailbox.
>> >>Used
>> >>to
>> >> do this trough codexm but this no longer works on vista - so PS looks
>> >> like
>> >> the way to go... So does anyone know how such a script should look
>> >> like or
>> >> where to find the docs to read up on how to do this?
>> >
>> >As Thoman mentions, PowerShell is supported natively in Exch 2003.

>>
>> It's Thomas and it's Exchange 2007 that's supported natively not 2003!
>> :-)
>>
>> One place to start, Roger, is "Exchange Scripting: A Road Map"
>> http://www.microsoft.com/technet/scr...ge/exchange_ro
>> admap.mspx
>>
>> > You
>> >could still potentially use PowerShell though from what I've been able
>> >to
>> >quickly google.

>>
>> Indeed - you can pretty much do _everything_ with PowerShell (well
>> nearly).
>>
>> >I've never heard of CDOEXM before,

>>
>> Collaboration Data Objects for Exchange Management.
>>
>> http://msdn2.microsoft.com/en-us/library/aa142616.aspx
>>
>> NB: these are gone in Exchange 2007
>> http://msdn2.microsoft.com/en-us/library/bb332450.aspx
>>
>> >but it appears to be an Exch automation
>> >DLL (COM object, if I'm using the right terminology).

>>
>> Correct.
>>
>> >I would think you could use PowerShell to load CDOEXM as a COM object
>> >then
>> >call a method or property from it to do pretty much anything that object
>> >would support.
>> >
>> >That enough to get you going?

>>
>> See also:
>>
>> Scripting Exchange Using VBScript and ADSI (Part 1):
>> http://www.msexchange.org/articles/S...ipt-ADSI-Part1
>> ..html
>>
>> Scripting Exchange Using VBScript and ADSI (Part 2)
>> http://www.msexchange.org/articles/S...ipt-ADSI-Part2
>> ..html
>>
>> Scripting Exchange Using VBScript and ADSI (Part 3)
>> http://www.msexchange.org/articles/S...ipt-ADSI-Part3
>> ..html
>>
>> HTH
>>
>> Thomas
>>
>> --
>> Thomas Lee
>> doctordns@gmail.com
>> MVP - Admin Frameworks and Security
>>


Old 04-11-2007   #9 (permalink)
Rob Campbell
Guest


 

Re: exchange 2003 and PS

I believe the required properties you need to set to have RUS create the
mailbox are:

msexchhomeservername
homemdb
mailnickname

"Gaurhoth" wrote:

> You do not *HAVE* to use CDOEXM to create mailboxes via scripts... altho
> it's the only way that Microsoft supports it. There is a set of AD Fields
> that if you enter the correct data, the RUS will create the mailbox and
> handle everything just fine. I've done it successfully in my lab and several
> times in my production environment. It'll probably be this weekend before I
> can dig out the code -- I'm in the middle of buying a house, so my time is
> no longer mine
>
> Gaurhoth
>
> "roger" <roger@discussions.microsoft.com> wrote in message
> news:86179F3E-1F6E-48EE-80D7-3E26B11ED29F@microsoft.com...
> > Thomas & Marco:
> >
> > Thanks for the replies - although I knew Powershell/Exchange features was
> > "made for" exchange 2007 I thought a subset of features - like creating a
> > mailbox would be possible. As you mentioned CDOEXM is part of the Exchange
> > 2003 management tools. It was a breeze to hook into it from a VB.NET app
> > and
> > create new mailboxes in code. The insane thing I discovered after
> > upgrading
> > to Vista is that MS has decided that the 2003 management tools can not be
> > used on Vista - efficiently breaking my code from running on
> > administrators
> > Vista pc's. And testing and development has to be done on an XP pc until I
> > find an alternative solution to this. It has to be more developers out
> > there
> > that did this through CDOEXM and has been fooled by this strange effect og
> > installing Vista.... :-((
> >
> > I'll have a look at WMI to see if that can be the way to go......
> >
> > "Thomas Lee" wrote:
> >
> >> In message <uqK6Qg2eHHA.4136@TK2MSFTNGP02.phx.gbl>, Marco Shaw
> >> <marcoDOTshaw_@_gmailDOTcom.?.invalid> writes
> >> >
> >> >"roger" <roger@discussions.microsoft.com> wrote in message
> >> >news:114ADE5F-082F-4DDD-83F4-F619C32F20FC@microsoft.com...
> >> >>I need to write a simple VB.NET app that creates a exch 2003 mailbox.
> >> >>Used
> >> >>to
> >> >> do this trough codexm but this no longer works on vista - so PS looks
> >> >> like
> >> >> the way to go... So does anyone know how such a script should look
> >> >> like or
> >> >> where to find the docs to read up on how to do this?
> >> >
> >> >As Thoman mentions, PowerShell is supported natively in Exch 2003.
> >>
> >> It's Thomas and it's Exchange 2007 that's supported natively not 2003!
> >> :-)
> >>
> >> One place to start, Roger, is "Exchange Scripting: A Road Map"
> >> http://www.microsoft.com/technet/scr...ge/exchange_ro
> >> admap.mspx
> >>
> >> > You
> >> >could still potentially use PowerShell though from what I've been able
> >> >to
> >> >quickly google.
> >>
> >> Indeed - you can pretty much do _everything_ with PowerShell (well
> >> nearly).
> >>
> >> >I've never heard of CDOEXM before,
> >>
> >> Collaboration Data Objects for Exchange Management.
> >>
> >> http://msdn2.microsoft.com/en-us/library/aa142616.aspx
> >>
> >> NB: these are gone in Exchange 2007
> >> http://msdn2.microsoft.com/en-us/library/bb332450.aspx
> >>
> >> >but it appears to be an Exch automation
> >> >DLL (COM object, if I'm using the right terminology).
> >>
> >> Correct.
> >>
> >> >I would think you could use PowerShell to load CDOEXM as a COM object
> >> >then
> >> >call a method or property from it to do pretty much anything that object
> >> >would support.
> >> >
> >> >That enough to get you going?
> >>
> >> See also:
> >>
> >> Scripting Exchange Using VBScript and ADSI (Part 1):
> >> http://www.msexchange.org/articles/S...ipt-ADSI-Part1
> >> ..html
> >>
> >> Scripting Exchange Using VBScript and ADSI (Part 2)
> >> http://www.msexchange.org/articles/S...ipt-ADSI-Part2
> >> ..html
> >>
> >> Scripting Exchange Using VBScript and ADSI (Part 3)
> >> http://www.msexchange.org/articles/S...ipt-ADSI-Part3
> >> ..html
> >>
> >> HTH
> >>
> >> Thomas
> >>
> >> --
> >> Thomas Lee
> >> doctordns@gmail.com
> >> MVP - Admin Frameworks and Security
> >>

>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wmi error exchange 2003 voodooking PowerShell 3 04-29-2008 07:43 PM
Vista , Micorosoft exchange 2003 & Outlook 2003 Emma Vista networking & sharing 5 04-02-2008 10:29 AM
exchange 2003 with powershell IT Staff PowerShell 7 01-11-2008 06:38 AM
Exchange Server Tools 2003 Ramzus Vista installation & setup 1 08-06-2007 07:48 AM
Cannot connect to Exchange 2003 using either OWA or Outlook2003 Sal Vista General 2 07-21-2007 01:52 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50