Tag: PowerShell

Get-OutlookBitValue

This little function is interesting, it will display the bit version of the Outlook client on a machine. I got this from an internal discussion, that someone needed to get an answer for a customer. I grabbed the code, functioned it up, and here it is. Now, my first thought is, why does it matter?

Restart-ExchangeIIS

One issue Exchange engineers run into from time to time, is the need to restart IIS (Internet Information Services). Here is a simple way to restart IIS on all Exchange servers in the organization: Restart-ExchangeIIS I’ve considered scoping this to say just a few servers, but then, that’s easy to remote into a machine and

Connect-ExchangeServer

This Connect-ExchangeServer function runs the PowerShell code to log into an Exchange server on premises using remote PowerShell. Using the -Computer parameter (required), tells the function which Exchange server to connect to. Using the -Prefix parameter (optional), allows a modification to the noun of the imported cmdlets, so that you can have multiple connections in

Get-DotNETVersion

The Get-DotNETVersion function presents the current .NET version on a machine. This is part of the MO_Module PowerShell code that helps administrators in their daily tasks. From an Exchange Server perspective, .NET support is very sensitive to which version of Exchange and which .NET is allowed to be used. This value also changes based on

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

Which way is correct?

This is just a philosophical discussion around the common answer of ‘it depends’, or ‘it’s a choice’. ‘Which way should the toilet paper roll go in your house?’ This is very analogous to all of the ongoing debates in history: Coke vs. Pepsi, VHS vs. Beta, BlueRay vs. HDDVD, Visual Studio Code vs. ISE, and

PowerShell modules: loaded vs. available

The Get-Module cmdlet lists all modules that are available on the current computer to the current user. Whereas the Get-InstalledModule cmdlet lists all modules that were installed using Install-Module on a local computer. The difference in performance comes from the second command needing to inspect each available module to check whether it was installed or

Can’t hold shift and type space with Fall 2018 Win10 update

Some people may have run into an annoyance when typing out shorthand pipes to Select-Object or Where-Object. With the Windows 10 Fall 2018 update, people have noticed an odd issue with PowerShell.  It doesn’t happen with the cmd.exe though, while holding down the left-shift key and typing out a command, spaces are not written. In

Using PowerShell instead of command line to keep a transcript

Ok, so all of you that use Command Line (CMD.exe), it is probably time to stop and just use PowerShell. Now there is nothing wrong with cmd, as we’ve used it for many, many years. However, there is no transcript option available. Many of you know and some do not, that PowerShell has a built