As you continue to learn and embrace PowerShell, you will eventually meet regular expressions. Hopefully many of you already have some fundamental knowledge. if not, the first place to start is by reading the help topic, about_regular_expressions In this article, I’m gong to introduce you to an advanced regular expression topic – named captures. I’ll…
Get a Jump Start on Docker
Over the last few years, perhaps no topic has caught fire as much as Docker and containers. If you’re like me you’ve perhaps installed Docker for Windows, pulled down a Windows server image and tinkered a bit with it. Of course, there is so much more to learn and do with Docker and containers. If…
Securing PowerShell Class Open for Registration
I am very happy to announce that registration is open for a 4 day class I will be presenting this fall on Securing PowerShell. The class will be held in Helsinki, Finland which should make it easily accessible for anyone in Europe. This 4 day instructor-led course is designed for IT Professionals who want to…
More PowerShell Adventures in Cleaning Your Path
A few days ago, I posted an article that demonstrated a number of PowerShell techniques and concepts that you could use to clear out obsolete locations in your %PATH% environment variable. For those of you new to my blog I want to make sure you understand that I often use a scenario, such as this…
Going Down the Right %PATH% with PowerShell
I trust that most of you are aware that the reason it is often easy to run command and programs in Windows, especially items from the command prompt, is thanks to a system environment variable called PATH. When you tell Windows to run a command, without using the complete path to the program, Windows looks…
Azure PowerShell Virtual Workshop
Some of you may have seen the announcement last week about a 2-day virtual workshop I am doing with CloudSkills.fm. I will be presenting along with side veteran cloud expert Mike Pfeiffer and Azure training master Tim Warner. We will be running a 2 day online deep dive into PowerShell and Azure. The goal is…
Extending PowerShell and Docker Containers
I’ve been continuing to tinker with my PowerShell command for getting information about Docker containers. The Docker CLI is fine, but it is very difficult to work with the output or do much with it. That’s why I prefer to have objects in a PowerShell pipeline. One of the Docker container elements that I ignored…
More Fun with Docker Containers and PowerShell
A few days ago I shared some experiences of working with Docker containers and PowerShell. As I continue to learn Docker, I am also learning how to manage it with PowerShell. The Docker command line tools are fine but I think they are even better when drizzled with a nice PowerShell glaze. Here’s a bit…
PowerShell Remoting Sessions and Containers
This year I’ve been ramping up my work with containers via the Docker Desktop application. When Windows Server 2016 was in preview Microsoft tried out some PowerShell cmdlets for working with containers but they never went anywhere. Essentially, the docker command line has become the defacto management tool. There are some modules in the PowerShell…
Updating PowerShell Core Windows Compatibility
I thought I’d share a quick update on my experiences in living in a PowerShell Core world. One of the things that Microsoft is working on to make this easier is a way to access your Windows PowerShell modules that will work in PowerShell Core. It does this through commands in the WindowsCompatibility module. However…
A Better PowerShell WPF Grid Viewer
A while ago I added a command called ConvertTo-WPFGrid in my PSScriptTools module. I wanted something similar to Out-Gridview but done in a WPF form. The initial version was ok and got the job done but it always felt lacking. The new version of the command is greatly improved I think. I wanted to take…
PowerShell Format Files the Easy Way
Whenever I teach or present on PowerShell scripting, I’m always talking about writing objects to the pipeline. Most of the time you can simply let PowerShell format and display output of your command to the best of its ability. However, you may wish to take matters into your own hands and create custom output. For…
Creating More Git PowerShell Tools
I have received a tremendous amount of interest in my recent articles on creating a git sizing tool using PowerShell. Many of you were savvy enough to realize the journey I was describing was just as important as the destination. With that in mind, I decided to revisit another PowerShell and git-related project that I…
Getting Git Size with PowerShell Retooled
A few days ago I wrote about my experiences in designing a PowerShell function that reports on the size of the hidden .git folder. In that version of the function I decided to include a parameter that would permit the user to get the size pre-formatted as either KB, MB or GB. I thought long…
Keeping Git in Check with PowerShell
Last week on Twitter I saw a discussion about a git related problem. The short version of the story is that the person was running out of disk space and didn’t understand why. Turns out this person has several development projects using git. All of the change tracking and other related activities are stored in…