?
Solved

CMD to view ActiveSync Users

Posted on 2009-07-16
5
Medium Priority
?
639 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
[X]
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
  • 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 2000 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

765 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