Solved

Get-ActiveSyncDeviceStatistics against a list of users

Posted on 2013-10-23
3
921 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
Comment Utility
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
Comment Utility
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
Comment Utility
Works great thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

772 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

8 Experts available now in Live!

Get 1:1 Help Now