Monitor Activesync connections

geekhelp4u
geekhelp4u used Ask the Experts™
on
I am looking for a way to receive alerts whenever a device is connected via activesync to the network.  Why?  We limit what kind of phones are currently authorized to connect to the network.  It is a pain in the butt to have to scan through the logs and see what is connected.   I would like a way to get an alert when a device is connected so that I can verify that it is authorized.  Third party software (so long as it works) is  an acceptable solution!

Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Alan HardistyCo-Owner
Top Expert 2011

Commented:
What version of Exchange do you have as the solution could be version dependent?

Author

Commented:
2007 sp2
Co-Owner
Top Expert 2011
Commented:
Enter the following into the Exchange Management Shell:
Get-Mailbox | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | ft Identity, Devicetype, DeviceID
This will give you a list of current Activesync Devices per user that are connected to your server.
You can always restrict access by using the following command:
Set-CASMailbox -Identity: "EmailAlias" -ActiveSyncAllowedDeviceIDs: "<DeviceID_1>","<DeviceID_2>"
Not aware of any 3rd party apps for this.

Author

Commented:
Thanks - works like  a charm!

Author

Commented:
Any idea for an additional command to get the last sync time for each device?
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Get-Mailbox | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | ft Identity, Devicetype, DeviceID, LastSyncAttemptTime
This should give you the last Sync time too or

Get-Mailbox | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | fl Identity, Devicetype, DeviceID, LastSyncAttemptTime
Should give you a longer list without truncated info.
Glad it works and thanks for the points.
Alan

Author

Commented:
Thanks again!  Works great also!
Alan HardistyCo-Owner
Top Expert 2011

Commented:
: )

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial