Generating All Case Combinations in PowerShell

At work, a software package that I’m dealing with requires that lists of file extensions for whitelisting or blacklisting be case-sensitive. I’m not sure why this is the case (no pun intended), but it is not the only piece of software that I’ve used with this issue. What that means is that if you want …

Continue reading ‘Generating All Case Combinations in PowerShell’ »

Hyper-V HomeLab Intro

So  I’ve been playing with Hyper-V for a while now.  If you recall it was one of my 2016 goals to build a virtualization lab. I’ve done that, building out the base Microsoft Test Lab Guide several times: Manually (clicking in the GUI) Using PowerShell commands (contained in the guides) Using Lability and PS-AutoLab-Env I was also …

Continue reading ‘Hyper-V HomeLab Intro’ »

PowerShell Topics I’m Ready to Stop Talking About

Part of me wants to know every bit of PowerShell there is.  I know that’s true about me, so  I don’t have much of an input filter.  If the content is PowerShell-related, I’m interested. When it comes to sharing, however, there’s clearly got to be a point at which I shouldn’t be talking about something. …

Continue reading ‘PowerShell Topics I’m Ready to Stop Talking About’ »

PowerShell Parameter Disambiguation and a Surprise

When you’re learning PowerShell one of the first things you will notice is that you don’t have to use the full parameter name.  This is because of something called parameter disambiguation. When it works For instance, instead of saying Get-ChildItem -Recurse, you can say Get-ChildItem -R.  Get-ChildItem only has one (non-dynamic) parameter that started with the …

Continue reading ‘PowerShell Parameter Disambiguation and a Surprise’ »

When the PowerShell pipeline doesn’t line up

The PowerShell Pipeline One of the defining features of PowerShell is the object-oriented pipeline.  The ability to “wire-up” parameters to the pipeline and allow objects (or properties) to be automatically assigned to them allows us to write code that is often variable-free. By “variable-free”, I mean that instead of doing something like this: we can …

Continue reading ‘When the PowerShell pipeline doesn’t line up’ »