zoukankan      html  css  js  c++  java
  • Exchange Online Mailbox Restoration

    User Account is already deleted in AD.
    User Mailbox is already deleted in Exchange.

    1. Connect to Exchange Online service in Windows PowerShell command line.

    $UserCredential = Get-Credential

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    Import-PSSession $Session -DisableNameChecking

    2. Restore mailbox with InactiveMailboxOnly parameter.

    $InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity <identity of inactive mailbox>

    New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName <-SourceIsArchive> -TargetMailbox targetaccount@contoso.com -TargetRootFolder "TargetUser_Restored01" -AllowLegacyDNMismatch

    3. Check status of mailbox restoration.

    Get-MailboxRestoreRequest -TargetMailbox targetaccount

    4. Check restored mails in target mailbox.

    Get-MailboxFolderStatistics -Identity targetaccount | select Name, FolderPath, FolderSize | Format-Table -AutoSize

  • 相关阅读:
    进程间通讯,线程间通讯
    进程与线程
    学习自测6.0
    学习自测5.0
    学习自测4.0
    学习自测3.0
    学习自测2.0
    学习自测1.0
    PS中怎么复制某个图层的效果?
    初学前端犯下的错误(用于反省)
  • 原文地址:https://www.cnblogs.com/Bear-Study-Hard/p/10647505.html
Copyright © 2011-2022 走看看