Get-ActiveSyncDeviceStatistics against a list of users

Posted on 2013-10-23
Last Modified: 2013-10-23
Hi I have a list of AD user name in C:\temp\users.txt

I want to be able to run the Get-ActiveSyncDeviceStatistics against that list.

Something like Get-Content C:\temp\users.txt | Get-ActiveSyncDeviceStatistics

Can someone please send me the correct syntax.

Question by:ECS-ITUK
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
LVL 53

Accepted Solution

Will Szymkowski earned 500 total points
ID: 39593776
Use the following PS script below...

$UserList = get-content "c:\temp\users.txt"
$UserList | % {Get-ActiveSyncDeviceStatistics -Mailbox $_.}


Expert Comment

ID: 39593777

Check whether the treasure you are looking for is hidden in this chest..

trying to get list of activesync devices EXCLUDING those in a list

Hope that helps :)

Author Closing Comment

ID: 39593944
Works great thanks

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

631 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