Exchange and PowerShell Exchange and PowerShell powershell powershell

Exchange and PowerShell


I've found the answer, thanks to this topic.

I changed the Command object like that:

        Command command = new Command("Remove-Mailbox");        command.Parameters.Add("Identity", identity_);        command.Parameters.Add("Permanent", true);        command.Parameters.Add("Confirm", false);

And it works like a charm.Thanks !

I hope that help someone !