Today let’s look at how I approached the first Iron Scripter PowerShell challenge of the year. The goal of the challenge was to convert or translate an object into a PowerShell class definition. If you are new to these challenges, the journey to how you achieve the goal is more valuable than the end result….
Tag: Classes
Answering the CIM Directory Challenge
The last Iron Scripter challenge of 2020 was a big one. If you didn’t get a chance to work on it, see what you can come up with then come back to see my approach. As with many of the challenges, the goal isn’t to produce a production-ready PowerShell tool, but rather to push the…
Open Up Wide with PowerShell
A few weeks ago, an Iron Scripter PowerShell scripting challenge was posted. The challenge involved wide directory listings. Which always makes me think “open wide”, which leads me to “Open Up Wide” by Chase. (I used to play trumpet and Chase was THE band back in the day). Anyway, solving the challenge most likely involves…
An Expanded PowerShell Scripting Inventory Tool
The other day I shared my code that I worked up to solve an Iron Scripter PowerShell challenge. One of the shortcomings was that I didn’t address a challenge to include a property that would indicate what file was using a given command. I also felt I could do better with performance in Windows PowerShell…
PowerShell Left-Center-Right
Normally, I’d leave a post like this for a Friday Fun article. But given the situation these days, I thought some of you might like to start your week off with a little fun. And maybe even learn a little PowerShell along the way. If your family is anything like mine, you are hopefully spending…
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…
Email Reminders for PowerShell Tasks
I’ve published a new version of the myTasks module to the PowerShell Gallery and its GitHub repository. The big change is that the current version has a feature to send you a daily email with tasks that are due in the next three days. I’ve added a command called Enable-EmailReminder that will create a scheduled…
A Classy Christmas PowerShell Module
Yesterday I showed you a class-based PowerShell script. My intention was to have a little bit of fun and teach you the basics of using a class. But what I gave you was really just the first step. If you wanted to create an actual tool around a class, you will most likely want to…
A Classy PowerShell Christmas
Well it’s that time of year again to have some holiday fun with PowerShell. This year I thought I’d give you a classy present. Or more accurately, a class-based PowerShell toy. Classes were introduced in PowerShell 5.0, primarily with DSC resources in mind, but you can use classes for all sorts of things.
Introducing a PowerShell To-Do Manager
I don’t know about you but I always have a PowerShell session open and find it easier to manage my day right from a prompt. I find ways to use PowerShell whenever I can. Recently I started a project to help me manage my work and of course I created it in PowerShell. I had…
Creating Class Based PowerShell Tools Demos
During my recent trip to Sweden, I had an opportunity to do a presentation for the PowerShell User Group Sweden. It was a big turn out and I appreciate everyone who attended. My talk was on using the new class feature in PowerShell 5.0 to create new types of PowerShell tools. Classes were introduced to…