Skip to main content

Posts

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...

Partner Firmware Upgrade. PFU & Storage.

Friends,  Today we are going to talk about PFU and Storage.  Firmware upgrade on any device is always a risk as you are making changes on core software of that particular hardware and when you are doing on storage risk is always HIGH. PFU: Partner Firmware upgrade. You know started knowing about storage's (  Every Storage has 2 storage controller and 2 management controllers.  Storage controller also referred as  SC and Management controllers are referred as MC.) Every storage has redundancy maintain so when one controller goes down other one take cares but there are cases which i have seen entire storage went down.  Normally people do Storage firmware upgrade when you have shutdown all your VM & Host  but you can do firmware upgrade when things up also using storage's redundancy feature. Now if you wish to do Firmware upgrade of your storage while keeping everything is up what you have to do is 1st make sure your ...

Blank Storage

It was morning and got page stating one of our site is having trouble after some maintenance work and as usual i have to be on my toes to get it fixed and avoid time delay and resume plant functioning. what has happen was they lost both SC controllers and luns and vdisk were not showing, Management controller was down. (OK for those who are new in infrastructure for them. Every Storage has 2 storage controller and 2 management controllers. Storage controller also referred as  SC and Management controllers are referred as MC.) the one MC which was alive was showing following information :) which was next to Null.     Mantra for such situation is dont panic and first thing you should do is take store logs.  (store logs is your storage logs and gives detail information, you have to open report in notepad++ )  in our case it was clear that none of storage controller were alive.  You should 1st start with power down ...