i am using Exchange server 2007 with service pack 1
i need to run the exchange shell command remove-mailbox permission through c#
all the shell command are successfully executed except this one
remove-MailboxPermission -identity $user -user “Domain Admins” -Deny -InheritanceType 'All' -AccessRights FullAccess
this command results in an error :
Error in script : Cannot invoke this function because the current host does not implement it.
how to run shell script using c#
do i need some updated version of exchange server service pack ?
or higher version of shell ?
or any change in script ?
also remove-MailboxPermission command get executed successfully in shell without any errors
but the results are not reflected in corresponding Exchange management console