Get-CrossGeoMovedUsers-Html
SharePoint Online: HTML report of cross-geo moved users
#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[ValidateSet('MoveIn','MoveOut')]
[string]$Direction
)
Process {
try {
$cmdArgs = @{ ErrorAction = 'Stop'; Direction = $Direction }
$result = Get-SPOCrossGeoMovedUsers @cmdArgs | Select-Object *
Write-Output ($result | ConvertTo-Html -Fragment)
}
catch { throw }
}Movement direction: MoveIn or MoveOut