by Michael Simmons | 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 Michael Simmons | 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 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....
by Michael Simmons | May 28, 2015 | PowerShell (Modern), Windows PowerShell (Legacy)
I’ve been rereading the Windows PowerShell Cookbook and I came across a variable I hadn’t noticed before… It turns out to be related to the -match comparison operator. -Match performs a regular expression comparison. A simple way of thinking...
by Michael Simmons | Mar 20, 2015 | Windows PowerShell (Legacy)
Q. How can I see what certificates are installed on a Windows computer with PowerShell? A. Using PowerShell to view certificates is easy. PowerShell has a provider that exposes the certificates store which is part of the pki and security modules,...
by Michael Simmons | Sep 30, 2014 | Windows PowerShell (Legacy)
The North American PowerShell Summit 2015 will be taking place on April 20 through 22, 2015, at the Microsoft offices in Charlotte, North Carolina, USA. The PowerShell North American Summit is put on by PowerShell.org and will be a small...