This is a reprint of an article published earlier this year in my premium PowerShell newsletter, Behind the PowerShell Pipeline. This is a sample of what my subscribers get 6-8 times a month. I expect I will write several articles about PowerShell and its relationship with objects. I know that this is the biggest hurdle…
Tag: PowerShell
Using PowerShell Your Way
I’ve often told people that I spend my day in a PowerShell prompt. I run almost my entire day with PowerShell. I’ve shared many of the tools I use daily on Github. Today, I want to share another way I have PowerShell work the way I need it, with minimal effort. This specific task centers…
Better PowerShell Properties
I was chatting with my friend Gladys Kravitz recently about some PowerShell scripting she was doing with Active Directory and the DirectorySearcher object. For a number of reasons, the Active Directory module from Remote Server Administration Tools (RSAT) is not an option. But that’s fine. Gladys is an experience AD admin and PowerShell scripter. Still,…
Open Up Wide
I recently read a terrific post from Mike F. Robbins about using Format-Wide to display strings. Format-Wide is one of those cmdlets that I don’t think gets much use. This is a shame because it certainly fulfills a need. But as Mike points out, if you have a list of strings, Format-Wide requires a little…
PowerShell First-Timers
Are you a PowerShell first-timer? Someone who is finally dipping their toes into the PowerShell pool. Or maybe you want to poke around and see what all the fuss is about. If so, here are some steps you might want to take. Even if you’ve been using PowerShell for a while, you might want to…
An Iron Scripter Warm-Up Solution
We just wrapped up the 2022 edition of the PowerShell+DevOps Global Summit. It was terrific to be with passionate PowerShell professionals again. The culmination of the event is the Iron Scripter Challenge. You can learn more about this year’s event and winner here. But there is more to the Iron Scripter than this event. Throughout…
Tips for PowerShell Gallery Success
New on the blog: Tips for #PowerShell Gallery Success
Hey PSGallery, What’s New?
I am a Cmdlet and Module Working Group member that helps triage Github issues for PowerShell. Like all of you, resources are limited, and Microsoft can only take on so much work. We often see requests for new or enhanced cmdlets. Often, we recognize the value, but it comes down to prioritizing and criticality. Even…
PowerShell Predicting with Style
I’ve been using the PSReadline module for years in PowerShell. I especially loved it when the module added inline command prediction based on your history. You would start typing a command and the module would search your saved history and suggest an inline completion. In my PowerShell profile I enable and configure this feature. Recently,…
Introducing PSProjectStatus
I write a lot of PowerShell modules. And probably like you, I am working on more than one project at a time. I was finding it difficult to keep track of what I was working on and what I might be neglecting. So I turned to PowerShell and created a tool that I use to…
I SID You Not!
As usually happens during my day, I get sidetracked to another issue, and before you know it, I have a new PowerShell tool. In this instance, I was looking at event logs using Get-WinEvent. One of the event record properties is a UserID. That’s very nice, but who is this? In this particular instance, the…
Metric Meta PowerShell Scripting
I was fiddling around with PowerShell the other day. I spend my day in front of a PowerShell prompt and am always looking for ways to solve problems or answer questions without taking my hands off the keyboard. For some reason, I started thinking about metric conversions. How many feet are 50 meters? How many…
Managing Raw DirectorySearcher Data
Recently, I was chatting with my friend Gladys. As part of her work, she often creates Active Directory PowerShell-related tools for her colleagues. It is always good to be the toolmaker! Anyway, she doesn’t want to rely on the Active Directory module from Remote Server Administration Tools (RSAT). There’s no guarantee that the feature can…
Copy to Multiple Destinations with PowerShell
In honor of today, 2/22/2022, I thought I’d share a PowerShell function that allows you to copy files to multiple destinations. If you look at help for Copy-Item, which you should, you’ll see that the Destination parameter does not take an array. That’s ok. I can fix that. However, I have a disclaimer that you…
Friday Fun with PowerShell and Alternate Data Streams
I have always had a peculiar fascination with alternate data streams. This is an NTFS feature that has been around for a long time. The feature, also referred to as ADS, allows a user to write data to a hidden fork of a file. You can store practically anything in an alternate data stream without…