The script mentioned here nto working for me ...
$mailboxes=get-mailboxforeach ($mailboxin$mailboxes) {$device= (get-activesyncdevicestatistics-mailbox
$mailbox.alias).devicetypewrite-host"$mailbox.alias `t $device"}
I get this error ..
Unexpected token 'in' in expression or statement.
At line:1 char:44
+ $mailboxes=get-mailbox foreach ($mailbox in <<<< $mailboxes) {$device= (get-activesyncdevicestatistics -mailbox $mailbox.alias).devicetypewrite-host "$mailbox.alias `t $device"}
+ CategoryInfo : ParserError: (in:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
thanks in adv.