Email SubscribeTwitter RSS
  • Home
  • About
  • Contact
  • Archives

ActiveSync Device Report

March 5, 2010 by teknologist | 0 Comment »

Brian Desmond’s blog has an excellent tip on how to create an ActiveSync Device Report.  I’ve been looking for a way to do this and hacked together a long powershell command and then found his tip via my feedreader.  I’m going to include it here in case the permalink changes but credit goes to Brian Desmond for posting it.  Thanks Brian!

Exchange 2007

$devices = @()
$mailboxes = Get-CASMailbox -ResultSize:Unlimited | Where-Object {$_.HasActiveSyncDevicePartnership -eq $true -and $_.ExchangeVersion.ExchangeBuild -ilike "8*"}

foreach ($m in $mailboxes)
{
 $devices += Get-ActiveSyncDeviceStatistics -Mailbox $m.Identity
}

$devices | Export-Csv DeviceStats.csv

Exchange 2010

$devices = @()
$mailboxes = Get-CASMailbox -ResultSize:Unlimited | Where-Object {$_.HasActiveSyncDevicePartnership -eq $true -and $_.ExchangeVersion.ExchangeBuild -ilike "14*"}

foreach ($m in $mailboxes)
{
 $devices += Get-ActiveSyncDeviceStatistics -Mailbox $m.Identity
}

$devices | Export-Csv DeviceStats.csv

To use the above info, copy the code into a text file on one of your exchange servers and rename that file with the .ps1 extension.  Next, open up the Exhcange Management Shell and use the ‘cd’ command to change directories until you are in the directory where the .ps1 file is located.  Type ./Filename.ps1 and hit enter to run the script.  The outputted CSV file will be located in the same directory that the file was run from.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.


Exchange Mobile | Tags: 2007, 2010, active sync, exchange


Login

User:
Password:

| Register | Lost password?
Loading Logging in ...

User:
E-mail:

A password will be mailed to you.
Log In | Lost password?
Loading Registering ...

User:
E-mail:

A message will be sent to your e-mail address.
Log In | Register
Loading Looking up your credentials ...

Teknologist Sponsors

  • Tags

    2003 2007 2010 active directory active sync activesync address blackberry blog blogging cell phone database DDL delegates dynamic dynamic distribution lists eas exchange ghost global green group groups hub ifitsgreen ldap list lists logs mailbox mailboxes mailing lists microsoft migration phantom powershell query security send on behalf of smart phone smtp technology transport users windows
  • Archives

    • January 2012
    • December 2011
    • June 2011
    • February 2011
    • December 2010
    • November 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Copyright © 2012 Teknologist All Rights Reserved XHTML CSS THEME by I SOFTWARE REVIEWS