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
  • Hi Johnny,

    I'm just speaking of Mail enabled Security group on the one that is not working. I was able to get it to work with the following.

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

    Setting the value 'TRUE' works, but when i do $true it does not. 

    The one for a user object it works when I do "Set-QADUser -Identity $userObj -Proxy -ObjectAttributes @{'edsaDeleteMailbox'=$true}".

    Not sure if it's a QAD cmdlet thing. Lu

Reply
  • Hi Johnny,

    I'm just speaking of Mail enabled Security group on the one that is not working. I was able to get it to work with the following.

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

    Setting the value 'TRUE' works, but when i do $true it does not. 

    The one for a user object it works when I do "Set-QADUser -Identity $userObj -Proxy -ObjectAttributes @{'edsaDeleteMailbox'=$true}".

    Not sure if it's a QAD cmdlet thing. Lu

Children
No Data