ok, so you can't guarantee UPN will be set how about simply changing it to ->> $mailboxes = get-mailbox -resultsize unlimited | sort -property name
and drop the select. Regards, Chris ________________________________ From: Chris Boller [ch...@mahoola.com] Sent: 17 February 2011 01:12 To: MS-Exchange Admin Issues Subject: RE: Wll this work with 2010? Hi, get-activesyncdevicestatistics should work the same but you might want to consider 1) get-mailbox - for >1000 mailboxes you will need to include -resultsize unlimited 2) the select after the get-mailbox tells it to process alias. If you have two mailboxes with the same alias this won't return any results, consider using userprincipalname or some other unique field(*) 3) some error traps around particularly around the get-activesyncdevicestatistics depending on the size of your estate and change the "exchange 2007" to "exchange 2010" in the write-output :) Chris ________________________________ From: Martin Blackstone [mblackst...@gmail.com] Sent: 17 February 2011 00:03 To: MS-Exchange Admin Issues Subject: Wll this work with 2010? http://itadmindev.blogspot.com/2009/09/powershell-script-to-get-all-activesync.html Im really interested in getting the device types the users have connected. --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe exchangelist