Saturday 18 May 2013

How to export member list of destribution group in exchange 2007


Use the following command in exchange management shell.



[PS] C:\Windows\system32>Get-DistributionGroupMember -identity "distributiongroupname" | Export-C
sv > "c:\pic\zeesh.csv"
cmdlet Export-Csv at command pipeline position 2
Supply values for the following parameters:
Path: c:\pic\zzzz.csv

Wednesday 15 May 2013

How to show the current unique connections with mailbox servers in Microsoft exchange 2007

Use the following command in exchange management shell.

(get-logonstatistics -server mailboxservername |% {$_.username} | sort -unique).count
 
Note:
if you have mailbox cluster then you have to use mailbox cluster name.