About Me

I am certified Microsoft professional, a Microsoft MVP and an IT veteran with almost 20 years of experience, much of it spent as an IT consultant specializing in Windows server technologies. I work today as an independent author, trainer and consultant. I've co-authored or authored several books, courseware, and training videos on administrative scripting and automation. My latest book is Managing Active Directory with Windows PowerShel: TFM 2nd Ed.(SAPIEN Press 2011).
-
Please consider a donation if I've been of any help or assistance. Thank you.
Blog Sponsors
Tag Archives: Function
Friday Fun Convert Object to Hash Table
I’ve been working on a few PowerShell projects recently and one requirement I had was to turn an object into a hash table. I thought this was something that was already handled in PowerShell but I couldn’t find a cmdlet … Continue reading
Posted in Friday Fun, Miscellaneous, PowerShell
Tagged Function, get-member, hashtable, objects, PowerShell
3 Comments
Friday Fun Export Transcript to Script
Over the years I’ve posted variations on this technique and discuss it often in my training classes. The idea is to take your PowerShell transcript and transform it into a PowerShell script. Remember that there is very little difference between … Continue reading
Posted in Friday Fun, PowerShell v2.0, Scripting
Tagged Function, PowerShell, Scripting, Start-Transcript, transcript
6 Comments
Get Shared Resource
I was poking around WMI the other day in PowerShell and was intrigued by the Win32_Share class. This is a great way to find out what items are shared on a server such as printers and folders, although it’s not … Continue reading
Test Port 2.0
A few years ago I updated a PowerShell script I came across to scan a computer for open ports. My initial revision was aimed at making it more pipeline friendly in PowerShell v1.0. I recently needed to use the function … Continue reading
Posted in PowerShell v2.0, Scripting
Tagged Function, networking, port, PowerShell, Scripting, Write-progress
2 Comments
Friday Fun: Start-TypedDemo v2
Not too long ago I posted a function I wrote for doing PowerShell demonstrations. My goal was to simulate a live interactive demo but without the typing so I could focus on explaining and not typing. The first version was … Continue reading
Posted in Friday Fun, PowerShell v2.0, Professional, Scripting, Training
Tagged Function, PowerShell, ScriptBlock, Scripting, Write-Host
5 Comments



