How to Export Office365 Exchange Online Moblie User List into excel CSV Format
Copy this pink colour script into notepad and save as "all file" types and give file name to MobileUser.ps1. $credentials = Get-Credential -Credential youremailaddress Write-Output "Getting the Exchange Online cmdlets" $session = New-PSSession -ConnectionUri https://outlook.office365.com/powershell-liveid/ ` -ConfigurationName Microsoft.Exchange -Credential $credentials ` -Authentication Basic -AllowRedirection Import-PSSession $session $csv = "C:\TEMP\MobileDevices.csv" $results = @() $mailboxUsers = get-mailbox -resultsize unlimited $mobileDevice = @() foreach($user in $mailboxUsers) { $UPN = $user.UserPrincipalName $displayName = $user.DisplayName $mobileDevices = Get-MobileDevice -Mailbox $UPN foreach($mobileDevice in $mobileDevices) { Write-Output "Getting in...