Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

CMD to view ActiveSync Users

Posted on 2009-07-16
5
619 Views
Last Modified: 2013-12-05
Is there a cmdlet that I can run on Exchange 2007 to see which user accounts have or are accessing the Exchange Server via ActiveSync?

Im curious to see what users are connecting without approval using their personal devices for corporate emails... either using iPhones or WM devices... :(
0
Comment
Question by:OdyChris
  • 2
  • 2
5 Comments
 

Expert Comment

by:KuncikLibor
ID: 24872452
Get-ActiveSyncDeviceStatistics
sample:
Get-ActivesyncDeviceStatistics -mailbox email@domain.com
0
 

Author Comment

by:OdyChris
ID: 24872490
Thansk for your quick reply KuncikLibor,
 
This command would need to be run for all 320 of my users? Is there one that would let me know of all the users that have connected with that service?
0
 

Expert Comment

by:KuncikLibor
ID: 24872885
Here is sample for users with device partnership. (at least once connected)
Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true}
0
 
LVL 65

Accepted Solution

by:
Mestha earned 500 total points
ID: 24872888
You need to use get-casmailbox and then some filters.

A basic list:

Get-CASMailbox | where {$_.HasActiveSyncDevicePartnership} | select Name

Another way of doing the same:

Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true} | foreach {Get-ActivesyncDeviceStatistics -mailbox $_.name}

If you run get-activesyncdevicestatistics against a user who you know has the partnership then you can see what you can get out of it, then add them to script.

Simon.
0
 

Author Comment

by:OdyChris
ID: 24878404
Awesome info guys, this is what I want...
So to export this info to a excel spreadsheet... would I do something like:

Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true} | foreach {Get-ActivesyncDeviceStatistics -mailbox $_.name} | Export-Csv C:\Test.csv
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An article on effective troubleshooting
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question