Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I try to run:

New-ActiveSyncMailboxPolicy Test

directly in the Powershell, it asks me if im sure, and if so, it does what it should. But if I try the same from my example Code in C#, then I get an error, saying that "the current host does not implement it". Other Commands like Set-CASMailbox or Get-ActiveSyncMailboxPolicy work just fine, both in the powershell and my application.

The Exchange Server/Windows Server 2008R2 and Domain are all setup completely new (test-environment). Is there a way to make this possible?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

After alot more research, trial-and-error and work, I found that not the "New-ActiveSyncMailboxPolicy" feature that is not implemented, but the "ask the user if he is sure" feature. I must have overlooked the parameter for that, but it is possible to turn of this by setting "Confirm" to false. Doing so, everything works as expected.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.