Skip to main content

Posts

Avoid 21 Vianet option if possible and not having data in China. (Office 365)

21Vianet - Office 365. Friend's if you are working on O365 and while configuring you see option for 21Vianet. Please don't select it as it stores your data in China Data Centre. As per China Govt. there data should be within country and that's why Microsoft is working with 21Vianet. https://blogs.office.com/2014/04/18/office-365-operated-by-21vianet-becomes-generally-available-in-china/

PowerShell to compile report for last access date for all mailboxes in organization

Power Shell  to compile report for last access date for all mailboxes in organization. $users = Get-Mailbox -ResultSize unlimited $mailboxstats = $users | Get-MailboxStatistics $mailboxstats | select displayname,lastlogontime,lastloggedonuseraccount | Export-Csv -NoTypeInformation -Path C:\temp\*.csv –Force  If you would like to know from Mailbox server point of view and target just one server. Get-MailboxStatistics -server Mailbox Server |sort lastlogonTime -Descending >c:\Avi.txt If you would like to target database you certainly do it. Get-MailboxStatistics -Database "Mailbox Database"

Dynamic Distribution Group Member (Export to csv)

Dynamic distribution groups is calculated each time a message is sent to the group, based on the filters and conditions that you define. When an email message is sent to a dynamic distribution group, it’s delivered to all recipients in the organization that match the criteria defined for that group.  Now you are worried how to export members of these Distribution list to csv files.  PowerShell is the way...!   $FTE = Get-DynamicDistributionGroup "I-Like distlist" Get-Recipient -RecipientPreviewFilter $FTE . recipientFilter -ResultSize unlimited > C:\users\a2361ag\Desktop\ILIKE.txt