Programatic execution of New-MailboxSearch using PSObject (System.Management.Automation) fails with 'Unable to execute the task. Reason: The task

Status
Not open for further replies.
T

tabuelt



I'm programtically running Exchange 10 commands using System.Management.Automation. I have been successful in executing powershell commands for all commands except for New-MailboxSearch. It works fine when I use the Exchange Management Shell on the same box. I get the following error "Unable to execute the task. Reason: The task can't identify the user that is executing the task."

Has anyone else been successful in executing the New-MailboxSearch command?
 
S

Shafaquat Ali



Hi,

Run Setup.com /PrepareAD
then

Enable-Mailbox “SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}” -Arbitratio

if problem persist kindly let us know.

Regards.

Shafaquat Ali.

M.C.I.T.P Exchange 2007/2010, M.C.I.T.P Windows Server 2008, M.C.T.S OCS Server 2007 R2, URL: http://blog.WhatDoUC.net Phone: +923008210320
 
Status
Not open for further replies.
Top