https://github.com/bgelov/export-disabledmailbox
Advanced script for export old mailboxes from Microsoft Exchange Server to .pst files
https://github.com/bgelov/export-disabledmailbox
disabled-mailbox exchange export export-mailboxes mailbox microsoft microsoft-exchange microsoft-exchange-export microsoft-exchange-server msexchange server
Last synced: 4 months ago
JSON representation
Advanced script for export old mailboxes from Microsoft Exchange Server to .pst files
- Host: GitHub
- URL: https://github.com/bgelov/export-disabledmailbox
- Owner: bgelov
- License: gpl-3.0
- Created: 2023-06-12T17:14:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T20:31:56.000Z (about 2 years ago)
- Last Synced: 2025-01-03T15:46:46.354Z (6 months ago)
- Topics: disabled-mailbox, exchange, export, export-mailboxes, mailbox, microsoft, microsoft-exchange, microsoft-exchange-export, microsoft-exchange-server, msexchange, server
- Language: PowerShell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Export-DisabledMailbox
Advanced script for export old mailboxes from Microsoft Exchange Server to .pst files## Some usefull commands
```
# Free space in databases
Get-MailboxDatabase -status |ft server,name, AvailableNewMailboxSpace -AutoSize# Remove disabled mailboxes artifacts for DisabledMDB database
Get-MailboxStatistics -Database DisabledMDB | where {$_.DisconnectReason -eq "disabled"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState disabled}Get-MailboxStatistics -Database DisabledMDB | where {$_.DisconnectReason -eq "Softdeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState disabled}
Get-MailboxDatabase DisabledMDB | foreach {Get-MailboxStatistics -Database $_.identity} | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false}
```