Write PowerShell Modules, not Scripts

Write PowerShell Modules, Not Scripts

When you think of PowerShell, is writing a PowerShell “script” one of the first things you think of? If so, I implore you to read on and think about the next time you write any PowerShell code. During the rest of this article, I’ll attempt to describe a gap I’ve identified in the PowerShell ecosystem, … Read moreWrite PowerShell Modules, not Scripts

Azure Template Deployment with PowerShell :: MTUG Norway

On August 26th, 2015, I delivered a presentation on deploying Azure Resource Manager (ARM) JSON templates using the ARM PowerShell module for the Microsoft Technology User Group (MTUG) in Norway. This event was coordinated by Microsoft MVP Jan Egil Ring. You can view the 1.5 hour recording of the presentation below. MTUG Script Club – … Read moreAzure Template Deployment with PowerShell :: MTUG Norway

High CPU Utilization Bug on Windows 10 RTM

I’ve been running the Windows 10 Enterprise RTM build, using Native VHD Boot, on my Dell Latitude E6430 ever since it came out on July 29th. Since then, I have mostly had a good experience with it, however there have been some setbacks. The largest setback that I’ve noticed is that my laptop consumes significant … Read moreHigh CPU Utilization Bug on Windows 10 RTM

Create a Visual Studio Project for your PowerShell Scripts

Are you eager to take advantage of Visual Studio PowerShell Tools? This video talks about how to create a Visual Studio Solution & Project to help you manage your PowerShell script files. If you’ve already got a set of one-off scripts, that doesn’t necessarily warrant a PowerShell module, but you still want to author, debug, … Read moreCreate a Visual Studio Project for your PowerShell Scripts

Microsoft Visual Studio as a Python IDE

If you’re running the Windows operating system, and doing any type of software development work in VB.NET, C#, PowerShell, MVC, JavaScript, or anything else, you’re most likely familiar with the Visual Studio Integrated Development Environment (IDE). Visual Studio has been known for a long time, as an enterprise-class, reliable, and most importantly extensible software development … Read moreMicrosoft Visual Studio as a Python IDE

PowerShell: PSReadLine Module

The PSReadLine PowerShell module is a god-send in the world of the PowerShell console host. The console host (powershell.exe) has gotten a lot of flak, over the years, for lacking functionality that most non-Windows users are accustomed to having. Some of the enhancements that you get out-of-box with PSReadLine include: Select text with keyboard SHIFT … Read morePowerShell: PSReadLine Module

Azure RM: Resource Manager or Service Management?

Introduction If you’ve been working with the Microsoft Azure public cloud platform lately, you might be familiar with the terms “Service Management” and “Resource Manager” (Azure RM). These terms refer to two different REST APIs that enable access to Microsoft Azure cloud services. Cloud Services is an ambiguous term, because there is an Azure platform … Read moreAzure RM: Resource Manager or Service Management?

Compress & Extract ZIP Archives with PowerShell

Introduction PowerShell 5.0 includes a module called Microsoft.PowerShell.Archive, which enables you to compress and extract ZIP files from the command line, or inside your PowerShell scripts. If we use the core PowerShell Get-Command, we can dynamically discover the commands that are available inside this module. You should already be familiar with the Get-Command command if … Read moreCompress & Extract ZIP Archives with PowerShell

Writing Interactive Scripts with PowerShell

If you’re authoring PowerShell scripts that are intended to be interactive, there are a couple of very easy ways to ask your users for input. Typically, user input falls into a couple categories: free-form text input, or a list of pre-defined values. We also might need to prompt the user to type in a secure … Read moreWriting Interactive Scripts with PowerShell

Check Your PowerShell Version

If you’re wondering what PowerShell version you’re running, you can easily find this out using a built-in, “automatic variable” called $PSversionTable. For more information about automatic variables in PowerShell, run this command: Get-Help -Name about_Automatic_Variables. Depending on what version of PowerShell you’re running, different features may or may not be available. PowerShell Desired State Configuration … Read moreCheck Your PowerShell Version