Change Allocation Method for Azure Network Interface

Update Azure Network Interfaces with PowerShell

Have you already provisioned a Microsoft Azure Virtual Machine, with a dynamic private IP address? Do you want to change that dynamically provisioned IP address to a static IP address? If so, you’re in luck! This process is relatively easy using the Microsoft Azure PowerShell module. Install PowerShell 5.0 First, …

Continue reading

Use PowerShell to Persist Environment Variables

Persistent Environment Variables PowerShell

In PowerShell, you can easily create environment variables using a few different methods. However, these are only scoped to the current PowerShell process, and not to any process running inside the user’s profile, or any process running on the system. Here are a few examples of methods that you can …

Continue reading

A Story of PowerShell Quoting Rules

PowerShell Quoting Rules

This will be a fairly brief article that talks about single quotes vs. double quotes in the PowerShell automation language. Single Quotes In PowerShell, single quotes are commonly used to define string literals. If you want to include a single quote inside of a single-quoted string literal, then you simply …

Continue reading

Poll: Favorite PowerShell Editor

Do you have a favorite PowerShell editor experience? Vote this in this poll, and make your voice heard! We’re gathering people’s feedback to help better understand which tools are popular among the PowerShell developer community, and tailor content towards that crowd. Thanks!

Continue reading

Hyper-V SecureBoot Error

I recently was trying to install Ubuntu Desktop 16 under a Hyper-V VM on Windows 10. Naturally, I downloaded the ISO image for the operating system, mounted it to a new Generation 2 Virtual Machine, and then proceeded to boot the VM. Unfortunately the VM was unable to boot to …

Continue reading

ncdu: Identify Large Files on Windows 10

If you’re looking for a solution to find large files (high disk utilization) on Windows 10, you’re in luck! In fact, you can even do this from the Ubuntu on Windows Bash console. There’s a tool called ncdu, which is short for nCurses du. “du” refers to the “disk utilization” tool …

Continue reading

Unicode Emojis in PowerShell!

Check out this post over at Art of Shell that talks about supporting emojis in PowerShell! The post starts out … We all use emojis, to some extent, on a daily basis. We write smiley faces in text messages, e-mails, on Twitter, on Facebook, and other social media platforms. These …

Continue reading

PSA: Upload your PowerShell Modules!

For some time now, the PowerShell Gallery has been available, enabling the upload of PowerShell modules to a centralized repository. This repository provides an easily discoverable location from PowerShell 5.0’s PowerShellGet module. In order to install a PowerShell module in PowerShell 5.0, a user must simply type Install-Module -Name <ModuleName>. …

Continue reading

Auto-Complete .NET Constructor Params

Introduction If you’re a regular PowerShell script or module author, you’re probably accustomed to creating .NET objects using object constructors. In the Microsoft .NET Framework, each struct or class can have one or more constructors. A constructor enables the type consumer to instantiate the object using a set of zero …

Continue reading