Solved

Get-ActiveSyncDeviceStatistics against a list of users

Posted on 2013-10-23
3
940 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
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

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now