Posts

Showing posts from October, 2020

Exchange - Mail.que utilizing more space - Exchange Drive - Out of Space

Image
The Mail.que database file in Exchange Servers increases drastically after a point of time is an expected behavior, below are the possible reasons for them. Data stored in Mail.que file : Email message live traffic Shadow queue Emails pending for delivery & Submission queue Use the below path to reach the mail.que database file, Note: It is highly advisable to exclude this path from AntiVirus scanning. %ExchangeInstallPath%\TransportRoles\data\Queue Mail.que utilizing high space : Emails in queue due to sudden flooding during peak business hours or unavailability of other Exchange server Increased message expiration time, nethold time. The cmdlets to re-configure these values are in below article Note: The mail.que database file will not shrink, however during the online maintenance WhiteSpace will be accumulated which could be used for future emails  How to re-create Mail.que database file? Re-creating the mail.que database file will not harm your Exchange server...

PowerShell Date and Time

Image
The need of the scripting never ends, the usage of the date and time in them are always need with perfection. Below are the few PowerShell cmdlets to get the Year, Month, Dates and Time which you could utilize in your reports, scripts and automated emails.  Year : Get-Date -UFormat %Y (Year in expanded format e.g., 2020) Get-Date -UFormat %y (Year in shortened format e.g., 20) Month : Get-Date -UFormat %B (Month in expanded format e.g., October) Get-Date -UFormat %b (Month in shortened format e.g., Oct) Get-Date -UFormat %m (Month in number e.g., 10 for Oct) Day : Get-Date -UFormat %A (Day in expanded format e.g., Sunday) Get-Date -UFormat %a (Day in shortened format e.g., Sun) Time : Get-Date -UFormat %R (Time in 24 Hour format) Get-Date -UFormat %r (Time in 12 Hour format) Add or Minus Days and Time : ((Get-Date).AddDays(2)).addHours(-1)  - (Add days and Min Hours) ((Get-Date).AddDays(0)).addHours(1)   - (Add Hours) Short String & Long String for Date an...