Retrieve mailboxes in Hybrid organization w/PowerShell

Every Exchange administrator should be familiar with these two useful EMS cmdlets: Get-Mailbox and Get-RemoteMailbox that intended to retrieve mailboxes. They are powerful cmdlets with plenty of parameters, but in my opinion, both still have serious drawbacks. Even though the -Identity parameter should at the very least support pipeline input, it does not. The Get-RemoteMailbox … Continue reading Retrieve mailboxes in Hybrid organization w/PowerShell

Filter Exchange Servers by Release Year w/PowerShell

Embedded EMS cmdlets, such Get-ExchangeServer and Get-MailboxServer, lack a clear property to indicate the server or product version when used. Get-PExServer In mixed setups, the Get-PExServer function from my PowerShell Power-EXCH module facilitates filtering Exchange servers based on Release year. Assume that your organization has both 2010 and 2016 servers and that you are in … Continue reading Filter Exchange Servers by Release Year w/PowerShell

Put an Exchange Server in and take it out of Maintenance Mode w/PowerShell

This time we’ll focus on just two functions Set-PExMM/Exit-PExMM to handle Exchange Server Maintenance Mode and one auxiliary function Get-PExMM to verify the Maintenance Mode status. Set-PExMaintenanceMode The function Set-PExMaintenanceMode from my PowerShell Power-EXCH module puts a local Exchange Server in Maintenance Mode. This function is just automated solution of the method, outlined by ALI … Continue reading Put an Exchange Server in and take it out of Maintenance Mode w/PowerShell

Get Recipient type w/PowerShell

Have you ever thought how many recipient types there are in a Hybrid organization? Probably much more than you used to think. Each of us knows several of them, like MailContact, UserMailbox, RemoteUserMailbox, etc. But how things really are? Get-PExRecipientType The Get-PExRecipientType function from my PowerShell Power-EXCH module is an automated solution for the workaround, … Continue reading Get Recipient type w/PowerShell

Monitor and highlight log files w/PowerShell

Write-HostHighlight The Write-HostHighlight function from my PowerShell MS-Module module can receive any string(s) and highlight within it a substring. Let see a simple example. By default the search is case insensitive, but you can easy change it by specifying the -CaseSensitive switch. If an input string does not contain a substring, the Write-HostHighlight just writes … Continue reading Monitor and highlight log files w/PowerShell