Gary's $this and that about PowerShell

I am a Microsoft Senior Premier Field Engineer based out of Atlanta, GA. My focus is Powershell. This blog is mainly to share interesting Powershell script samples.

Browse by Tags

Related Posts
  • Blog Post: Some Handy Exchange Mailbox and Database Size Powershell One-Liners

    I wrote this up a while ago to share with customers and colleagues, but I never really posted it anywhere. If you look at my previous post about using add-member, you might wonder why then I am using select-object here to create calculated properties which changes the pipeline to PSCustom objects...because...
  • Blog Post: Simple Text Parse with Powershell using IPConfig.exe

    Here is a fun little one-liner in Powershell: PS C:\> ipconfig | where-object {$_ -match "IPv4 Address"}    IPv4 Address. . . . . . . . . . . : 1.2.3.4 This gets us just the lines from the IPConfig that list the IP address.  This isnt text parsing, this is just filtering the...
  • Blog Post: One-Liner to List Calendar Appointments with a Simple Filter

    So this post is born out of my playing with writing a script to help me be a better PFE.  I need to automatically create calendar appoints to remind me to get all my PFE “paperwork” in on time.  my colleagues will know what I am talking about when I say my TRs.  My thought was to simply...
  • Blog Post: Find Expiring Certificates Using PowerShell – One-Liner and a Script

    This code is not really complicated at all.  Just the same it can come in very handy, and some folks have never played with the Certificate provider.  I have provided a one-liner version of this code, and a script version.  They are basically the same, but certainly the script one is considerably...