Change VSCode Integrated Terminal to PowerShell

Visual Studio Code :: Integrated Terminal Setting

Visual Studio Code is an excellent developer tool for PowerShell projects. However, regardless of which type of project you’re developing (C#, Node.js, Python, etc.), you can benefit from changing your default shell to the powerful, object-oriented PowerShell shell. Now, you may not want to change your default shell for the entire operating system. VSCode thankfully … Read moreChange VSCode Integrated Terminal to PowerShell

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

Evernote Privacy Warning :: Disable Data Sharing

Evernote has recently come under fire for their new privacy policy that is intended to enable machine learning, with a goal of improving user experience. For some users, who aren’t storing critically sensitive data, this might not mean too much, but certain users have trade secrets that must be kept completely confidential. You can easily … Read moreEvernote Privacy Warning :: Disable Data Sharing

Run PowerShell Natively on Linux and Docker!

Microsoft just made a huge splash today, by announcing that PowerShell is now available on Linux! I created a launch video that demonstrates how to get PowerShell Core running inside a Docker container! You can see the video over on Microsoft’s MSDN Channel 9. https://channel9.msdn.com/Shows/msftazure/Run-PowerShell-Natively-on-Linux-with-Docker Check if PowerShell is Running in a Docker Container If … Read moreRun PowerShell Natively on Linux and Docker!

Docker Login Error: x509: certificate signed by unknown authority

We recently set up a custom Docker Registry, using the VMware Harbor solution. The NGINX endpoint was secured using a TLS certificate from DigiCert. When we ran the docker login command, to authenticate to this registry, we were receiving a very common error message: x509: certificate signed by unknown authority The crux of the issue … Read moreDocker Login Error: x509: certificate signed by unknown authority

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, make sure you’re running PowerShell … Read moreChange Allocation Method for Azure Network Interface

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 use to set environment variables … Read moreUse PowerShell to Persist Environment Variables

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 put two single quotes next … Read moreA Story of PowerShell Quoting Rules

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 that has been available on … Read morencdu: Identify Large Files on Windows 10