[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

CMD to view ActiveSync Users

Posted on 2009-07-16
5
Medium Priority
?
646 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

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video discusses moving either the default database or any database to a new volume.

649 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