Tag Archives: FridayFun

Friday Fun: A PowerShell Alarm Clock

Today’s Friday Fun is a continuation of my exploration of ways to use Start-Job. A few weeks ago I wrote about using Start-Job to create “scheduled” tasks. I realized I could take this further and turn this into a sort … Continue reading

Posted in Friday Fun, PowerShell, PowerShell v2.0 | Tagged , , , | Leave a comment

Friday Fun: Output to 2 Places in 1

Today’s Friday Fun comes out of a short exchange I had yesterday with Hal Rottenberg on Google Plus. We were playing around with piping a PowerShell command to Clip.exe which dumps the output to the Windows Clipboard. I got to … Continue reading

Posted in Friday Fun, PowerShell v2.0 | Tagged , , , , | Leave a comment

Friday Fun What’s My Variable

I use scriptblocks quite a bit in my PowerShell work, often saved as variables. These are handy for commands you want to run again, but don’t necessarily need to turn into permanent functions. $freec={(get-wmiobject win32_logicaldisk -filter "deviceid=’c:’" -property Freespace).FreeSpace/1mb} Now … Continue reading

Posted in Friday Fun, PowerShell | Tagged , , , , , | Leave a comment

Friday Fun – A Christmas Prompt

Over the last few weeks I’ve read about other people’s PowerShell prompts and offered a few suggestions of my own. This week’s Friday Fun creates colorful holiday prompt that counts down the number of days until Christmas.

Posted in Friday Fun, PowerShell v2.0 | Tagged , , , | 3 Comments

Friday Fun – Get Number Object

You most likely know that I’m all about the object and the PowerShell pipeline. Everything in PowerShell is an object. Pipe something to Get-Member and you can discover all of the object’s properties and methods (ie its members). Some objects, … Continue reading

Posted in Friday Fun, PowerShell, Scripting | Tagged , , , , , | Leave a comment