Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! Windows Powershell: An Introduction

(image) Hey, Scripting Guy! Your Windows PowerShell articles have been real interesting, and I have been fascinated by the things you can do. But I need you to start at the beginning. It all looks real confusing to me. How about it? - TD(image) (image) Hi TD, You know things are only confusing when you do not understand them. We remember ...

Hey, Scripting Guy! How Can I Reuse Functions?

 (image) Hey, Scripting Guy! I have a bunch of functions I wrote in PowerShell that I would like to use in other scripts. I am getting tired of cutting and pasting these things into various scripts over and over again. Surely there has got to be an easier way to do this! Have any ideas?- JB(image) (image) Hi JB, Of course, I have an ...

Hey, Scripting Guy! Australian Dispatch #2: A Metric Ton of Scripting

After nearly 20 hours in airports and planes, the giant Boeing 747 aircraft touched down on the runway at Sydney International airport-my scripting eyes were glued to the insides of my eye lids. It is rather evil the way they give you a test to see if you are qualified to enter the country...not Australia, all countries do this. Why are you ...

Hey, Scripting Guy! How Can I Use Leading Zeroes When Displaying a Value in Windows PowerShell?

(image) Hey, Scripting Guy! I just read your “using calculated properties” PowerShell Tip of the Week, and it addresses a problem I recently had. However, when I got to the last step in your article, I realized the file sizes – and my displayed values – are now left-justified. I’d like to use leading zeroes to align the numbers on ...

Hey, Scripting Guy! How Can I Use Windows PowerShell to Retrieve the Non-Unique Items in a List?

(image) Hey, Scripting Guy! I understand that I can use Windows PowerShell and the Get-Unique cmdlet to determine which items are unique in a collection. However, I want to do the opposite: I want to determine which items are not unique in a collection. How can I do that?-- YE (image) (image) (image) Hey, YE. You know, yesterday afternoon, ...