![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
| | #2 (permalink) |
| 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 |
| | #3 (permalink) |
| 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 |
| | #5 (permalink) |
| 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 |
| | #6 (permalink) |
| 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 > |
| | #7 (permalink) |
| 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. |
| | #8 (permalink) |
| 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 >> |
| | #9 (permalink) |
| 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 > >> > |
| |
| |
![]() |
| 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 |