by Michael Simmons | Aug 19, 2021 | PowerShell (Modern)
I’ve mentioned previously about How to Create a Random Password using the .NET Framework. That works for Windows Powershell, but it doesn’t work for .NET 5, which is what modern versions of PowerShell use. So what can you do? Well, thankfully it’s...
by Michael Simmons | Nov 18, 2019 | PowerShell (Modern), Windows PowerShell (Legacy)
Is Add-Member the most underrated and underappreciated cmdlet in PowerShell? PowerShell is so vast and can manage so many platforms and technologies. It’s easy to get deep in one module or topic. But the core features and language of PowerShell is so often where...
by Michael Simmons | Mar 8, 2017 | PowerShell (Modern), Windows PowerShell (Legacy)
I’m sure that you’ve seen plenty of scripts that set a path like “C:\temp” for logs, files, and other outputs. But did you know that it’s actually very easy to add a pop up directory UI in PowerShell that gives a choice of where to save...
by Michael Simmons | Sep 16, 2015 | PowerShell (Modern)
Alright, another quick lesson in finding XML. You see, an XML node like this: <server name=”DomainController1″></server> Uses the name as an attribute. I just wrote a post about how to search XML by node attribute. But that won’t do you a...
by Michael Simmons | Sep 11, 2015 | PowerShell (Modern)
Any of you say this prayer after you’ve successfully remembered how to filter by the node attribute property with Select-XML and PowerShell? Dear God. Please let me remember this syntax the next time I’m trying to search an XML file. If you will just spare...
by Michael Simmons | Jun 5, 2015 | PowerShell (Modern), Windows PowerShell (Legacy)
Have a complaint from a user that a server is sluggish? Maybe you’re just curious if the problem you’re seeing on a server is related to a process consuming a lot of CPU, or you know the CPU is pegged and you want to identify which process is the culprit....