C# PowerShell Exchange 2007 Manage code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YXVsZGg=?=

    #1

    C# PowerShell Exchange 2007 Manage code

    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.Exch ange.Management .PowerShell.Adm in", 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 foreignconnecto r data.
    basically one machine calls a remote exchange server.

    i'm missing something and i'm not seeing clearly, can any one help?
  • =?Utf-8?B?YXVsZGg=?=

    #2
    RE: C# PowerShell Exchange 2007 Manage code

    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.Exch ange.Management .PowerShell.Adm in", 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 foreignconnecto r data.
    basically one machine calls a remote exchange server.
    >
    i'm missing something and i'm not seeing clearly, can any one help?

    Comment

    Working...