![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | using Exchange Management Shell in c# I am not sure where to post this question. Not sure if it belongs on a development, exchange 2007, or powershell newsgroup. If this is the wrong place please let me know where to go. Thanks. Issue: I installed the Exchange Mgmt shell on a W2k3 server that houses my development IDE. VS2005. Exchange 2007 is installed on a different server "Ex07". On my dev box, in both the shell and in my c# code i can use the command enable-Mailbox -Identity Domain\username -Database \\Ex07\SG1\DB1 and it works. I can also get results for get-Mailbox. But when i try to use the Get-MailboxStatistics -Server Ex07 command I get results only when using the mgmt shell. When using my code i get an error. Here is the error I get via the catch statement. Failed to add mailbox account to Exchange for new user Andrea Q Rose; with manager Manager Not Assigned; Error: System.Management.Automation.CmdletInvocationException: MapiExceptionLowLevelInitializationFailure: Unable to load exrpc32.dll or one of its dependent DLLs (extrace.dll, exchmem.dll, msvcr80.dll, etc) ---> Microsoft.Mapi.MapiExceptionLowLevelInitializationFailure: MapiExceptionLowLevelInitializationFailure: Unable to load exrpc32.dll or one of its dependent DLLs (extrace.dll, exchmem.dll, msvcr80.dll, etc) at Microsoft.Mapi.ExRpcModule.Bind() at Microsoft.Mapi.ExRpcAdmin.Create(String server, String user, String domain, String password) at Microsoft.Exchange.Data.Mapi.ConnectionPool.GetAdministration(String server) at Microsoft.Exchange.Data.Mapi.MapiSession.get_Administration() at Microsoft.Exchange.Data.Mapi.MailboxEntry.<>c__DisplayClass3`1.<FindPaged>b__0() at Microsoft.Exchange.Data.Mapi.MapiSession.InvokeWithWrappedException(ParameterlessReturnle In the evnt log of the dev box i get these two errors: Watson report about to be sent to dw20.exe for process id: 2584, with parameters: E12, c-RTL-x86, 08.00.0685.020, W.WebServer, M.E.StoreProvider, M.M.ExRpcModule.Bind, M.Mapi.MapiExceptionLowLevelInitializationFailure, a7b3, 08.00.0685.020 Process WebDev.WebServer.EXE (PID=2584). An remote procedure call (RPC) request to the Microsoft Exchange Active Directory Topology service failed with error 1753 (Error 6d9 from HrGetServersForRole). Make sure that the Remote Procedure Call (RPC) service is running. In addition, make sure that the network ports that are used by RPC are not blocked by a firewall. I've tried everything I can think of. The rpc service is greyed out. I can't stop and start it, but it is already started. I tried different variations of the command and still nothing. I've tried other commands and have not come across another one that has this issue. Basically if i don't add the -server i get null results, but it doesn't throw an error. Prob because it's not trying to connect to a remote machine. Any help would be GREATLY appreciated. Thanks. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| ExMerge and PowerShell with Exchange Management Shell cmdlets | PowerShell | |||
| Using Exchange Management Shell through Powershell on other PC? | PowerShell | |||
| Exchange Management Shell Command from vbscript | PowerShell | |||
| Configure Exchange management shell to use Specific Domain Control | PowerShell | |||
| Exchange management shell | PowerShell | |||