MO_Module introduction
I’d like to introduce you to my MO_Module. It’s a PowerShell module, combining several daily administrative tasks into simple Verb-Noun Functions for engineers to perform their jobs easier. I was developing/maintaining several different PS modules, which became more work, so I thought I’d just combine everything into one single place.
Since my primary technologies are Exchange and Active Directory, there are several functions that assist with those roles. However, some of the cool features help with other applications. I’m also planning to just put in all kinds of random stuff that works for people.
For example: Get-DotNetVersion. This is handy code for any application that you have to ensure a specific version of .NET is installed or not. More specially, with Exchange, each version of Exchange and updates, have limits on which .NET version is and is not supported.
Why ‘MO’? Well, since I have a fairly common name, and since Mike was the number one US new baby boy name for many, many, many years, some of my friends would call me MO, to help separate the vast number of Mike’s in the room. So, I thought it would be easier to remember and not type incorrectly than my name. Plus…who’d have thought, that an apostrophe would be the bane of my computer existence with my name. Oh sure, coders can program around special characters in database fields, but most don’t. I’ve even sent many companies (like credit cards, and car rentals) the actual code so they could fix their problem with my name. Most still can’t deal with it. Oh well, MO it is.
Over the coming weeks, I’ll go through each of the functions in more detail, but currently, these are the ones available:
- Connect-ExchangeServer
- Connect-ExchangeOnline
- Get-DotNETVersion
- Restart-ExchangeIIS
- Restart-IISOnServers
- Restart-AutoDAppPool
- Start-DAGMaintenanceMode
- Stop-DAGMaintenaceMode
- Get-MailboxAutoReployConfigurationDomain
- Get-GroupMemberCount
- Get-OutlookBitValue
I’ll continue to add to the list. Most of the time, I get requests to help customers or other engineers on a PowerShell task. Therefore, I’ll just throw the function in the MO_Module, version up the .psd1 file, and viola, off and running with more easily repeatable tasks for everyone to use in their environment.
To download the latest version, just run Import-Module cmdlet with this syntax:
Import-Module -Name MO_Module
Once you have it installed, occasionally, you can run the Update-Module syntax to get the latest updates:
Update-Module -Name MO_Module
This module is maintained in the MS PowerShell gallery and the MS Script Center.
I hope this helps make your daily administrative tasks easier. Enjoy.
Mike O'Neill