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

  • 相关阅读:
    2017-12-25
    oracle 创建表,增加修改删除字段
    jqxWidgets 常用代码
    Oracle初始化用户-表空间-权限
    Oracle 切换数据库实例
    ORE(Oracle R Enterprise)安装步骤
    Java 枚举类的基本使用
    Java可变参数
    java的封箱和拆箱
    spring 九种设计模式
  • 原文地址:https://www.cnblogs.com/Bear-Study-Hard/p/10647505.html
Copyright © 2011-2022 走看看