Efficient sizing, planning, and troubleshooting usually starts from collecting data. The first object in an array of Exchange related objects consuming disk space is a mailbox and we have to know how to measure and control its size. The size control we’ll discuss in my upcoming post about mailbox quotas. In this article, we’ll talk … Continue reading Get Exchange mailbox size w/PowerShell
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
How to manage NSX Manager roles w/PowerNSX
Let's start with the terminology. What are the roles of the NSX Manager? NSX Manager roles allow you to manage access rights to NSX objects by assigning to particular user or group a certain role. In the UI, these settings are in Networking and Security -> System -> Users and Domains. What is PowerNSX? PowerNSX … Continue reading How to manage NSX Manager roles w/PowerNSX
The PowerShell ASCII art
Write-Ascii The Write-Ascii function from my PowerShell MS-Module module can draw custom text in the PowerShell console using ASCII fonts. This article’s cover was drawn by the Write-Ascii function too. The below code does the same, it writes end of line (EOL) character or emulates the Enter key. The main function’s parameter is -Text. As … Continue reading The PowerShell ASCII art
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
Who is logged on to my VM?
Do you know who is logged on to your Virtual Machines? How many of them are domain and how many are local accounts? Are you sure what you know where in your virtual infrastructure particular user is logged on right now? And finally the last question, do you want to know? If the answer is … Continue reading Who is logged on to my VM?
Resize Azure VM w/PowerShell
This is anniversary 50-th article in my blog. If you had selected wrong VMSize while VM deployment or your workload eventually changed – you have to resize your VM. To make decision on selecting well-becoming VMSize for your workload you can read my previous article. The Microsoft’s way The Microsoft suggests semi-manual workaround, you have … Continue reading Resize Azure VM w/PowerShell