Skip to main content

Posts

Showing posts from February, 2016

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

SMTP and DNS Lookup tool

Inresting sites to find SMTP address and Name server (DNS) who owns particualr domain name. http://www.whois.com/whois/ http://mxtoolbox.com/ Lets see example "Facebook.com" facebook.com registry whois Updated 3 hours ago - Refresh Domain Name: FACEBOOK.COM Registrar: MARKMONITOR INC. Sponsoring Registrar IANA ID: 292 Whois Server: whois.markmonitor.com Referral URL: http://www.markmonitor.com Name Server: A.NS.FACEBOOK.COM Name Server: B.NS.FACEBOOK.COM Status: clientDeleteProhibited https://www.icann.org/epp#clientDeleteProhibited Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited Status: clientUpdateProhibited https://www.icann.org/epp#clientUpdateProhibited Status: serverDeleteProhibited https://www.icann.org/epp#serverDeleteProhibited Status: serverTransferProhibited https://www.icann.org/epp#serverTransferProhibited Status: serverUpdateProhibited https://www.icann.org/epp#serverUpdateProhibited Updated Date: 25-a