List Mobile Devices connected using ActiveSync on Office 365

27/03/2016

listmobiloffice365

Connect to Exchange Online
$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Get-Mailbox -ResultSize Unlimited | ForEach {Get-MobileDeviceStatistics -Mailbox:$_.Identity} | export-csv “c:\ActiveSyncDevices.csv”

Remove-PSSession $Session

Connect to Exchange Online using remote PowerShell

 

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *