powershell script Exchange Quota

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Austin Fies Austin Fies 3 months, 1 week ago.

  • Author
    Posts
  • #63637
    Profile photo of Inigo
    Inigo
    Participant

    Hi Guys

    Ive create a powershell script using Finditems and Findfolder, using .load to search for specific PropertySet class and return all those mails for a entry maibox

    I would like to added to the sctipt that if the user reach the Issue Warning Limit in Exchange , start delete mails base on the Propery set starting for oldest message till decreae the Mailbox size under 80 % of the Issue warninig Limit

    Any suggestion how to archieve ?

    Thanks !!!!

  • #68665
    Profile photo of Austin Fies
    Austin Fies
    Participant

    You probably don't want to hear "that isn't a good idea policy wise", but users will be upset if you delete their mail. Storage is cheap now, so we don't have the challenges we had in the past keeping the databases small.

    This isn't possible through Exchange PowerShell. You would need to use the Exchange Web Services DLL and make calls to that in your PowerShell script.

You must be logged in to reply to this topic.