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: Sample for Sending Email with PowerShell

    I get asked quite often to show examples of sending an email from Powershell.  This could easily by written into an actual cmdlet, and it wouldn't shock me a bit if it already has.  Either way, its very simple .Net code to send email. In this script sample below, I am showing a small utility...
  • Blog Post: Lesson Learned Today about PowerShell’s .Net Type System

    Today I was asked why this person saw more properties showing with a “format-table”, than with a “format-table *”.  I will admit, I wasn't sure.  I kicked myself later once I got the answer and I realized I should have known this.  There is a PFE colleague of mine that always seems to...
  • Blog Post: Quick AD Search Example

    I was emailing with another instructor tonight and wrote a quick snippet to search AD for an object with a particular SID.  This is quick and way too simple for production, but it just shows how easily you can search AD.  This is with Powershell v1 $searcher = new-object system.directoryservices...