Archive for PowerShell Scripting

“Let’s do the Time Zone Again…”

I’ve gotten a number of inquiries about the VBScript I wrote for checking time zone settings. Now that it’s getting closer to Standard Time people are getting jumpy again. New servers have been added to the data center over the last few months; are the DST settings correct? Instead of sharing the VBScript code, let’s [...]

We Don’t Need No Stinkin’ Scripts…

Another reason to love PowerShell… the command line. We work directly with objects in the command shell; minimal code required. The days of writing VBScripts to pull system information is long gone. Still hanging on to VBScript, resistant to change, this article may just change your mind…

Organizing Script Code - Calling Scripts from Other Script Files

Each one of us has our own style in the way we accomplish tasks, scripting is no different. My style is modular scripting; where I build libraries of functions (code blocks) and control script flow by calling functions in the order I choose. By maintaining a large library of user-defined functions (custom functions), I “snap-in” [...]

3 Easy Steps to Get Information from Multiple Remote Computers…

As I perused the "Computer Hardware" section of the PowerShell Script Repository, I noticed that every PowerShell script uses the $strComputer = "." variable. Meaning the script only enumerates information on the "Local Computer." Not very practical in the "real-world," I don't know too many of you running scripts locally on each computer in your [...]

What you must know about ‘Out-File’

Using the PowerShell Out-File to output to a file.

The Script Center Script Repository: Sample Windows PowerShell Scripts

Microsoft Windows PowerShell Script Repository