Category Archives: Scripting

Convert Text to Object Updated

I’ve had a few comments and emails lately about my post and script on converting text to objects. I decided the function needed a little more lovin’ so today I have an updated version, complete with comment based help. Function … Continue reading

Posted in CommandLine, PowerShell, PowerShell v2.0, Scripting | Tagged , , , | 3 Comments

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

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

Friday Fun – A PowerShell Console Menu

When working in PowerShell, and especially when scripting, you might want to give the user a choice of actions. For example, you might develop a configuration script that another admin or technician will run. Perhaps one of the steps is … Continue reading

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