$Credential = Get-Credential
$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid" -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $ExchangeSession
Get-Mailbox
Get-Mailbox aa@shera.com | FL Alias,ExchangeGuid
Get-Mailbox -SoftDeletedMailbox | Select-Object Name,ExchangeGuid
New-MailboxRestoreRequest -SourceMailbox <SoftDeletedMailboxGUID> -TargetMailbox <NewTargetMailboxGUID>
Set-MsolUserPrincipalName -UserPrincipalName anne.wallace@contoso.onmicrosoft.com -NewUserPrincipalName anne.jones@contoso.com
#Remove proxy
Get-Mailbox mf13_preparation@shera.com | fl UserPrincipalName,EmailAddresses
Set-Mailbox mf13_preparation@shera.com -EmailAddresses SMTP:mf13_preparation@shera.com
ไม่มีความคิดเห็น:
แสดงความคิดเห็น