Problem about PowerShell and Exchange

Hi,
I want to excute "Get-Mailboxdatabase" Command to get "Mouted" property.But i failed,it always returns "null".I have specified "Status"parameter.Could you help me?

呃...由于我的英文很差..又无奈来到英文论坛...这里我尽可能描述问题...用两种语言.
我尝试通过C#调用PowerShell来执行“Get-Mailboxdatabase”这个cmdlet指令,同时指定了“-Status”参数,希望能够检索“Mounted”属性。但是一直得到null值,同时,我在PowerShell中执行这个指令,返回了“true”或者“false”。请注意,这两种方式都是通过PSSession来进行的。

Sorry for my pool english.I will try my best to explain myself.

I want to excute powershell cmdlet via C#/.NET. It seems ok until I am trying "Get-Mailboxdatabase" cmlet.Because the "Mounted" property always returns null.Note that I have specified the "-Status" parameter and It returns "true" or "false" when I run the command via powershell console.I use PSSession.

Thank you!
 
Last edited:

My Computer

呃...由于我的英文很差..又无奈来到英文论坛...这里我尽可能描述问题...用两种语言.
我尝试通过C#调用PowerShell来执行“Get-Mailboxdatabase”这个cmdlet指令,同时指定了“-Status”参数,希望能够检索“Mounted”属性。但是一直得到null值,同时,我在PowerShell中执行这个指令,返回了“true”或者“false”。请注意,这两种方式都是通过PSSession来进行的。

Sorry for my pool english.I will try my best to explain myself.

I want to excute powershell cmdlet via C#/.NET. It seems ok until I am trying "Get-Mailboxdatabase" cmlet.Because the "Mounted" property always returns null.Note that I have specified the "-Status" parameter and It returns "true" or "false" when I run the command via powershell console.I use PSSession.

Thank you!
 

My Computer

Back
Top