ICYMI: PowerShell Week of 06-December-2019

Topics include Hyper-V, IIS, Ternary Operators and more.

Special thanks to Robin Dadswell, Prasoon Karunan V, and Kevin Laux.

GETTING STARTED WITH POWERSHELL: THE FIRST FIVE COMMANDS YOU NEED TO MASTER

by Mike Kanakos on December 04, 2019

Getting started with PowerShell is easy. In fact, it’s easy enough for some people that they just dive in and start using it every day with little formal knowledge. At some point though, everyone needs a little help. The PowerShell console has a rich set of cmdlets and built-in help that can be useful for learning how to use the PowerShell language correctly.

BUILDING A HYPER-V REPORT USING AD AND PSWRITEHTML

by Dave Kawula on December 05, 2019

Display Hyper-V VM details as html using Out-GridViewHTML cmdlet in PSWriteHTML module which has built-in buttons to export as CSV,Excel and PDF.

How To Manage IIS Websites In PowerShell

by Bill kindle on December 03, 2019

If you manage Windows Servers, you’ve likely worked with Internet Information Services (IIS). Websites are one of IIS’s main features and, using PowerShell, you can easily manage and automate IIS websites with ease!

PowerShell 7 Ternary Operator

by PowerTip on December 04, 2019

With PowerShell 7, the language gets a new operator that created a lot of debate. Basically, you don’t have to use it, but users with a developer background will welcome it.

Detecting Key Presses

by Tobias Weltner on December 01, 2019

Wouldn’t it be nice for scripts to detect when a key is pressed? Pressing a key could add a pause to scripts, exit loops prematurely, or skip loading things in your profile script.

Reddit /r/PowerShell – Most Popular Weekly Post

Catesta is a PowerShell module that can scaffold a PowerShell project with easy integration into several CI/CD options.

Tweet of the Week

If you are contributing to #PowerShell on GitHub or using the daily builds, the master branch is now 7.1 preview.1. We triage and take specific merged PRs into rc.1 branch. Expectation is that 7.1 preview.1 will ship in Jan along with 7.0 GA.

Youtube: How to export dhcp reservation via powershell

Exporting IP reservations in DHCP using PowerShell.