Category: PowerShell

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

PowerShell thought process

One important aspect of leveraging PowerShell is to adjust your mindset. Listed are some topics to consider: Automate: Create scripts, functions, and modules to automate manual tasks. If you function up routine tasks, you and others can quickly and easily complete work duties more efficiently. Delegate: Once the functions and modules are built and deployed,

PowerShell Core Support Lifecycle

Microsoft has updated the life cycle of software to the Modern Lifecycle Policy. The short answer is: faster, more frequent updates mean that version support is shorter. This makes sense in today’s agile software development environment. Instead of a three-year cycle for applications, and an additional 10+ years of support, the new agile process of

cmdlet: Remove-InboxRule

Q: Is there a way to remove an Inbox rule for a mailbox? A: Yes. You can use the Remove-InboxRule cmdlet to remove an Inbox rule from a mailbox. Inbox rules process messages in an Inbox based on conditions specified and take actions. Removing an Inbox Rule can assist in troubleshooting end user’s mailboxes. Remove-InboxRule -Mailbox

cmdlet: Enable-InboxRule

Q: Is there a way to enable an Inbox rule for a mailbox? A: Yes. You can use the Enable-InboxRule cmdlet to enable an Inbox rule. Inbox rules process messages in an Inbox based on conditions specified and take actions. The enable/disable InboxRule cmdelts, assist in troubleshooting end user’s mailboxes. Enable-InboxRule "Move To Junk Mail" -Mailbox