Get User Hold Policies

If you've ever wanted to be able to track down all of the policies and ways that a mailbox's data might be held, this might be the tool for you.  This script combines data from the Security & Compliance Center's retention and label policies, in-place holds, Exchange Online liti

1,742 times
Add to favorites
Office 365
E-mail Twitter Digg Facebook
Sign in to ask a question

  • this PowerShell is not working for us
    1 Posts | Last post January 11, 2020
    • we keep getting 
      Get-Mailbox : The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable
      program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
      At line:1 char:1
      + Get-Mailbox -Resultsize Unlimited | .\Get-UserHoldPolicies.ps1
      + ~~~~~~~~~~~
          + CategoryInfo          : ObjectNotFound: (Get-Mailbox:String) [], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException
  • want to export reteand ntion holds startdate and enddate
    1 Posts | Last post November 29, 2018
    • I used this but it didn't pull the dates. Any idea?
      Get-Mailbox | where {$_.RetentionHoldEnabled -eq $true} | Select Name, StartDateForRetention, EndDateforRetention | Export-Csv C:\mine4.csv