by mtsimmons | 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 mtsimmons | May 28, 2018 | Windows PowerShell (Legacy)
I get tired of thinking up unique and strong passwords. So anymore, for the most part, I don’t do it. I will use random generated passwords, then save them into an Azure KeyVault. It is a good way to use strong passwords that are practically impossible to...
by mtsimmons | 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 mtsimmons | Sep 10, 2015 | Windows PowerShell (Legacy)
It’s really easy to get the size of a folder with PowerShell. Even though the directory does not actually have a property for size, you just need to get the size of all of the files inside the folder. function Get-FolderSize { [CmdletBinding()] Param (...
by mtsimmons | Sep 10, 2015 | Windows PowerShell (Legacy)
If you’re trying to determine which of your servers require reboots, you’ll love this PowerShell script to check the status. It turns out that a simple way to identify servers that are pending reboot is to check the registry. This information is stored in...
by mtsimmons | 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....