I have no idea what possessed me, but the other day I came across an older script that uses PowerShell to create an HTML report showing drive utilization for a group of computers. The utilization is displayed using a color gradient from green to red to provide a visual reference. As I looked at the…
Tag: PowerShell
PowerShell Calendaring Revisited
Early this week, I came across an old snippet of code in my scripts folder, originally published by Lee Holmes. It was an old script, from 2008, on using PowerShell to display a calendar with out of office information. I seem to recall that I had been trying to do something similar — display a…
Searching for a CIM/WMI Class with PowerShell
I got a question on Twitter about an older function I has posted to get antivirus information via WMI. The function continues to work fine with Windows 10, although there’s always room for improvement. However, the question was that the function did not seem to work when querying a server running Windows Server 2016 or…
Converting PowerShell to Markdown
I have been working a lot with markdown documents over the last year or so, primarily due to all the books I’ve been working on published at Leanpub.com. With the growing use of markdown in projects like Platyps for generating help files and documentation, you will most likely be using markdown at some point. With…
Making Short Links Long with PowerShell and WPF
Sometimes, when I have nothing better to do, I kill some time giving Todd Klindt and Shane Young a hard time during their podcast. You should join me sometime. Anyway, during a recent show Todd mentioned a bit of PowerShell code he put together to resolve short links. You see these all the time in…
Talking PowerShell
Hard to believe the year is almost have over. Other than the PowerShell Summit, most of my travel this first half of the year has been for private PowerShell classes. After taking some well-earned rest with my family I will be back on the road towards the end of the summer. I have a number…
PowerShell Practice Makes Perfect
I have been teaching and presenting about PowerShell for over 10 years. I always put a great emphasis on doing as I firmly believe that is the best way to learn something like PowerShell. I’ve also heard a number of people over the years say that they want to learn and do more with PowerShell…
Get Git Configuration with PowerShell
A few weeks ago I was teaching a PowerShell fundamentals course. Towards the end of the week we start creating simple scripts and functions. One night after class I was thinking about giving them another example and I was working on a project using git. At some point I was looking at my git configuration…
Friday Fun: Perk Up Your PowerShell Prompt
I haven’t written a Friday Fun post in quite a while. Often these posts don’t have much practical value but hopefully illustrate a concept or technique. Although what I have today is something you could use immediately. I have a version of a PowerShell prompt function that will color code your location based on the…
A PowerShell Mystery
The other day I was prepping for my sessions at the upcoming PowerShell + DevOps Global Summit. As I usually do, when I am building demos that will connect to remote machines I often use the local computer as a placeholder. This should always work right? so imagine my surprise when this command gave me…
Extending VSCode with PowerShell
Last year I made a conscious decision to jump into VS Code as my primary PowerShell development tool. I had spent years tweaking and customizing the PowerShell ISE so I was a little concerned about the transition. But I knew the only way I’d master VS Code (and I still have a long way to…
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 PowerShell DNS Suffix Tool
The other day my good friend Greg Shields asked for a little assistance with a PowerShell problem. He was trying to use PowerShell to set the primary DNS suffix for a computer. This is different than the DNS suffix you can set on a network adapter configuration. Instead, he was looking at the dialog box…
Extending PowerShell DateTime Objects
I’ve been experimenting more with my PSTypeExtensionTools module, finding more objects to enhance. You can check out the project on Github and install the module from the PowerShell Gallery. My current fun has been with the DateTime object – specifically converting a value into another culture. Apparently those of us in North America don’t know…
New PowerShell Projects Published
Last week I published a few of the recent PowerShell modules I’ve been working on to the PowerShell Gallery. These projects had been in a beta phase while I worked out some last minute features. I was also waiting to see if there were any issues reported by you that I might need to address….