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 , , , , | 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 , , , , | 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

Posted in PowerShell v2.0, WMI | Tagged , , , , | 1 Comment

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 , , , , , | 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 , , , , | 5 Comments