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 be AMAZING…

0

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…

0

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.directorysearcher $searcher.filter = “(objectsid=S-1-5-21-……)" #clearly a…

0