Delete Email

Hello All, I have a need to user Active Roles cmdlets to script the mailbox disablement of DL's and Users. I have the user one but not sure what to use for Groups.

User Mailbox disablement: (This works)

Set-QADUser -Identity $userObj -Proxy -ObjectAttributes @{'edsaDeleteMailbox'=$true}

Group Mailbox disablement (This is not working)

Set-QADGroup -Identity $adObj -Proxy -ObjectAttributes @{'edsaDeleteEmail'=$true}

Anyone have any ideas?

Thanks, Lu

Parents
  • Active Directory groups cannot actually be mailbox enabled so your command isn't valid.

    If you are talking about a Shared Mailbox that is effectively "owned" by an AD Group (via permissions), you would have to figure out a way to identify that mailbox and then initiate a disablement of that mailbox itself using the relevant Exchange and/or Exchange Online cmdlets.

    It really depends on how you associate your groups with their respective mailboxes.

    If you can shed some light on that for us, perhaps we can help.

Reply
  • Active Directory groups cannot actually be mailbox enabled so your command isn't valid.

    If you are talking about a Shared Mailbox that is effectively "owned" by an AD Group (via permissions), you would have to figure out a way to identify that mailbox and then initiate a disablement of that mailbox itself using the relevant Exchange and/or Exchange Online cmdlets.

    It really depends on how you associate your groups with their respective mailboxes.

    If you can shed some light on that for us, perhaps we can help.

Children
No Data