From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Restoring a deleted mailbox

Restoring a deleted mailbox

- [Instructor] So to use PowerShell to restore deleted mailboxes in Exchange, I will first need to have an Exchange PowerShell session open or be running this in the Exchange management shop. And you can see that I've got an Exchange session open since I'm running this in the IOC. So before we restore the mailboxes, I've got to delete one. So I've got two mailboxes here. I'm going to show you what it looks like when they're deleted and after they've been moved, so they have a different disconnect status, which I want to demonstrate. So first with user 1, I'm going to get the database that that user is in, and then I'm going to go ahead and use the Disable-Mailbox command to disable them and we can verify that it's been disabled using the Get-Mailbox commandlet and we get an error because Dara Gentner does not exist any more, or at least as a mailbox. And then for my second user, I'm actually going to move this user to another database so that it gets a soft-delete status in the…

Contents