Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 772 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

E2010 : Create report for all Windows Mobile phones

Today I had to create a report for all users which use a Windows Phone

Get-ActiveSyncDevice | Select DeviceOS, FriendlyName, Identity | Where{ $_.DeviceOS -like “*windows phone*″} | FT -autosize

 

DeviceType FriendlyName                Identity

———- ————                    ——–

WP8        Windows Phone 8X by HTC       DOMAIN.LOCAL/users/gebruikers/BS/User1/ExchangeActiveS…

WP8        Windows Phone 8X by HTC       DOMAIN.LOCAL/users/gebruikers/Sales/User2/ExchangeActiv…

WP8        Lumia 820                                        DOMAIN.LOCAL/users/gebruikers/Sales/User3/ExchangeActi…

WP8        Windows Phone 8S by HTC       DOMAIN.LOCAL/users/gebruikers/PS/User4/ExchangeActiveSy…

WP8        Windows Phone 8X by HTC       DOMAIN.LOCAL/users/gebruikers/Office/User5/Exchan…

 

It is also possible to export to csv

Get-ActiveSyncDevice | Select DeviceOS, FriendlyName, Identity | Where{ $_.DeviceOS -like “*windows phone*″ } |  export-csv c:\scripts\Windows-Phone-result.csv