Showing posts with label Exchange Online. Show all posts
Showing posts with label Exchange Online. Show all posts

Wednesday, November 1, 2023

[EXO] Collect Failures of Sync Requests

 start-transcript

$syncstats = Get-SyncRequestStatistics user@domain.com  -IncludeReport -DiagnosticInfo verbose

$syncstats.Report.Failures | group failuretype

$syncstats.Report.Failures | select -last 2

$syncstats.Report.InternalFailures

$syncstats.DiagnosticInfo

$syncstats.Report.Entries | % {[string] $_}

stop-transcript

Saturday, January 12, 2019

[EX16] Correct UPN to match Smtp


$ggg = Get-Mailbox -OrganizationalUnit "formula indy"
$ggg | % {Set-Mailbox -Identity $_ -UserPrincipalName  $_.primarysmtpaddress}

Sunday, December 16, 2018

[EXO] PST Import Mapping Example


Workload,FilePath,Name,Mailbox,IsArchive,TargetRootFolder,SPFileContainer,SPManifestContainer,SPSiteUrl
Exchange,,PST2.pst,mbxtoimport@domain.com.br,FALSE,/,,,,

Tuesday, May 10, 2016

[EXO] Download pictures from users


$user = Get-UserPhoto user@domain.com

$user.PictureData | Set-Content "D:\Export\Photo$($user.Identity).jpg" -Encoding byte

Friday, January 29, 2016

[O365] Recover messages deleted from Recoverable items folders


To verify the number of items:
Search-Mailbox "user@testtenant.com.br" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "Recover1" -LogLevel Full -SearchDumpsterOnly -LogOnly

To copy the items to another user folder:
Search-Mailbox "user@testtenant.com.br" -TargetMailbox "user2@testtenant.com.br"  -TargetFolder "Recover1" -LogLevel Full -SearchDumpsterOnly

Monday, December 7, 2015

[O365] Migrating mailbox to cloud


$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection

Import-PSSession $Session

---------------

$OnPremCreds = Get-Credential

$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress henwal@azurelab.dk -Credentials $OnPremCreds

In this example, we will migrate all users listed in a CSV file located on our system partition:

$OnboardingBatch = New-MigrationBatch -Name MigrationBatch1 -SourceEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain azurelab.mail.onmicrosoft.com -CSVData ([System.IO.File]::ReadAllBytes("C:\MigrationBatch1.csv"))

Start-MigrationBatch -Identity $OnboardingBatch.Identity

Sunday, August 30, 2015

[EX2010] MRSProxy Service Configuration



C:\Program Files\Exchange Server\V14\Client Access\exchweb\ews\web.config

In the bottom of this file, you needed to change IsEnabled=”false” to IsEnabled=”true” then save the file and restart the Exchange MRS service.

Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true –MRSProxyMaxConnections 100