Scripting Blog

A place to learn about PowerShell and share stories of automation

How Do I Use a Windows PowerShell Script Containing Functions?

  Summary: Using a script containing Windows PowerShell functions can be as simple as dot-sourcing the script.   Hey, Scripting Guy! I was looking in the Script Center Script Repository for Windows PowerShell scripts, and I found one that was really cool. Unfortunately, when I attempted to use it, it did not work. I know that ...

Hey, Scripting Guy! Weekend Scripter: Fibonnaci Sequence This!

Microsoft Scripting Guy Ed Wilson here, it is warming up a bit down here in Charlotte, North Carolina in the United States, and therefore I tend to gravitate outside on weekends. At least, far enough outside to make it to my woodworking shop. Today, I was thinking about building a series of boxes. One of the golden rules in box design is the ...

Hey, Scripting Guy! Weekend Scripter: How Much Wood?

 Microsoft Scripting Guy Ed Wilson here. I am out in my woodworking shop today, and I am laying out an arch that I will use to create a curved top for a box. I need to know how much wood will be required to make that arch—the radius of the arch. Another use might be to measure for drywall when creating an arch over a door. How do I ...

Hey, Scripting Guy! Weekend Scripter: A Function to Calculate Fuel Cost

 Microsoft Scripting Guy Ed Wilson here. The cool thing about scripting on the weekend is you can take two hours for breakfast, hang out with friends on Facebook and Twitter, and not feel bad about it all. The Scripting Wife headed out with her friend to a rodeo and left me in the kitchen unattended. Bad mistake on her part! I got into ...