Tag Archives: PowerShell

The PowerShell Morning Report

I love how easy it is to manage computers with Windows PowerShell. It is a great reporting tool, but often I find people getting locked into one approach. I’m a big believer in flexibility and re-use and using objects in … Continue reading

Posted in PowerShell, Scripting, Windows 7, Windows Server, WMI | Tagged , , , , , | 3 Comments

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

Using Start-Job as a Scheduled Task

Here’s a technique you might want to use for ad hoc troubleshooting or reporting. Even though it is possible to set up scheduled tasks to run PowerShell commands or scripts, it is cumbersome and time consuming. PowerShell v3 offers a … Continue reading

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

Format Leading Zeros in PowerShell

I’ve been working on a question in the forums at ScriptingAnswers.com and the need arose to create a folder name with a 4 digit number. But the number needed to have enough leading zeros so that the number was always … Continue reading

Posted in PowerShell, Scripting | Tagged , , | 5 Comments

Where’s Jeff?

I hope that 2011 was a good a year for you as it was for me. In 2012 I hope to keep up the pace. Here’s a brief look at where you can find me this year and a few … Continue reading

Posted in Books, Conferences, PowerShell, Professional, Training, Writing | Tagged , , | Leave a comment