PC Review


Reply
Thread Tools Rate Thread

C# PowerShell Exchange 2007 Manage code

 
 
auldh
Guest
Posts: n/a
 
      9th Oct 2008
i read the MS kb:
Using Exchange Management Shell Commands With Managed Code
http://msdn.microsoft.com/en-us/library/bb332449.aspx

how ever i'm getting
"{"No Windows PowerShell Snap-ins are available for version 1."}"

exception when i try to call
PSSnapInInfo info =
rc.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out snapEx);

my environment is:
windows 2003 32 server with sp1 + hotfixes
visual studio 2005 + hotfixes
Windows SDK for Windows Server 2008 and .NET Framework 3.5
powershell 1.0

the exchange servers are all 64 bit with windows 2003 r2+

my project requires my windows 32 bit 2003 server to call the Exchange
powershell snapin to get transport server and foreignconnector data.
basically one machine calls a remote exchange server.

i'm missing something and i'm not seeing clearly, can any one help?
 
Reply With Quote
 
 
 
 
auldh
Guest
Posts: n/a
 
      9th Oct 2008
never mind. i had to load the Exchange Management tool for the 32 bit server.

"auldh" wrote:

> i read the MS kb:
> Using Exchange Management Shell Commands With Managed Code
> http://msdn.microsoft.com/en-us/library/bb332449.aspx
>
> how ever i'm getting
> "{"No Windows PowerShell Snap-ins are available for version 1."}"
>
> exception when i try to call
> PSSnapInInfo info =
> rc.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out snapEx);
>
> my environment is:
> windows 2003 32 server with sp1 + hotfixes
> visual studio 2005 + hotfixes
> Windows SDK for Windows Server 2008 and .NET Framework 3.5
> powershell 1.0
>
> the exchange servers are all 64 bit with windows 2003 r2+
>
> my project requires my windows 32 bit 2003 server to call the Exchange
> powershell snapin to get transport server and foreignconnector data.
> basically one machine calls a remote exchange server.
>
> i'm missing something and i'm not seeing clearly, can any one help?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inconsistent behaviour Powershell Get-Recipient (Exchange 2010) NZSchoolTech Microsoft C# .NET 2 7th May 2010 03:25 AM
Manage spam with a secondary Exchange account Bruno Microsoft Outlook Discussion 0 18th Dec 2009 09:39 PM
Excel 2007 COM: Using SaveAs from PowerShell Marco Shaw Microsoft Excel Programming 2 9th Sep 2007 02:44 AM
Manage different email addresses from Exchange/Outlook news.microsoft.com Microsoft Outlook Discussion 4 27th May 2007 07:44 PM
Manage Exchange/Outlook Rules Sanjay Microsoft Outlook Program Addins 3 24th May 2006 07:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.