473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.Exchange.Management.Powe rShell.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?
Oct 9 '08 #1
1 3100
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.Powe rShell.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?
Oct 9 '08 #2

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

Similar topics

5
by: Neil Chambers | last post by:
Hi All, I'm looking to see if it's feasible to use the SortObjectCommand included in the Microsoft.Powershell.Commands assembly. I have a Dictionary Dictionary<string, intd = new...
3
by: =?Utf-8?B?VGhvbWFzIFcuIEJyb3du?= | last post by:
1. Is there a dedicated discussion group for Windows Powershell? I couldn't find one, but that doesn't necessarily mean there isn't :-) 2. I'm just starting in on learning to use Powershell and...
2
by: Alexander Vasilevsky | last post by:
Hi! How to debug Powershell commandlets? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
5
by: josepharmbruster | last post by:
I am all about using the right tool for the right purposes, which is why I have started reading the GettingStarted guide to PowerShell. I am curious if any other pythoneers have ventured into the...
0
by: =?Utf-8?B?SmVycnk=?= | last post by:
Hi, I just don't get it :( I'm using VB.NET code, within this code I want to call some Powershell code. (To create a user mailbox in Exchange 2007). How can I run Powershell code in vb.net?...
3
by: shalong | last post by:
Hi all, I want to run a python script to create a large number of Exchange mailboxes. I am using the os.system("New-Mailbox.......) method. However if i try to execute the python script in...
4
by: superdave67 | last post by:
How can I run... C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command ". 'C:\Program...
5
by: krasman | last post by:
hi everyone, i hope you might help me on this one. i need to create a contact in a exchange public folder using dotnet (vb or c#) and exchange 2003, without using outlook object model. i'm...
1
by: chelluchittibabu | last post by:
hi, pls tell me if you know regarding ms exchange server 2007. In my system i am using windows 2003. what i want is 1. how to connect ms exchange server 2007 from .net 2. how to get data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.