Forum Discussion

hagosmt's avatar
hagosmt
Copper Contributor
Apr 19, 2024

How to check the remaining size of recoverable items folder of a mailbox using powershell

Set-ExecutionPolicy RemoteSigned #changes PowerShell execution policies for Windows computers
Install-Module exchangeonlinemanagement #Install exchange online modules
Import-Module exchangeonlinemanagement #Import exchange online modules
Connect-ExchangeOnline #connect to exchange online service
Get-MailboxFolderStatistics -Identity "use UPN" -FolderScope RecoverableItems | Format-Table Name, FolderAndSubfolderSize, ItemsInFolderAndSubfolders -Auto

No RepliesBe the first to reply

Resources