I am calling the command Add-MailboxPermission in a powershell workflow activity. I recently noticed that it stopped working. It was working fine before. The command after that, Set-mailbox still works.Can someone help me?
param
(
$AcctName
)
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
add-MailboxPermission -Identity $AcctName -User "NT Authority\SELF" -Accessright 'Fullaccess' (stopped working)
set-mailbox -identity $AcctName -HiddenFromAddressListsEnabled $false (working fine)