Solved

Get-ActiveSyncDeviceStatistics against a list of users

Posted on 2013-10-23
3
1,016 Views
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.

Thanks
0
Comment
Question by:ECS-ITUK
[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
3 Comments
 
LVL 53

Accepted Solution

by:
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 $_.}

Will.
0
 
LVL 9

Expert Comment

by:VirastaR
ID: 39593777
Hi,

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
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/10e6a380-d9c7-42c3-a652-60ceb85aa02d/trying-to-get-list-of-activesync-devices-excluding-those-in-a-list?forum=ITCG

Hope that helps :)
0
 

Author Closing Comment

by:ECS-ITUK
ID: 39593944
Works great thanks
0

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