Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! More About Looping with Windows PowerShell

Hey, Scripting Guy! I am trying to get ready for the Summer Scripting Games. I understand they are coming up fairly soon. So I am thinking I want to compete in the beginner division this year for Windows PowerShell. I am trying to get my head around looping. I know that you are talking about it this week, but I am still thrown for a loop (...

Hey, Scripting Guy! How Can I Use the Do…While…Loop in Windows PowerShell?

Hey, Scripting Guy! I frequently work with arrays in my scripts. The way I write scripts, I end up using Do…While…Loop frequently. I know that you like using the For…Each…Next for arrays, but to me Do…While…Loop seemed easier and more flexible. I looked and cannot find an example of how to use Do…While…Loop in Windows ...

Hey, Scripting Guy! How Can I Use the Windows PowerShell Equivalent of the VBScript While…Wend Loop?

Hey, Scripting Guy! I have been using VBScript for a long time. One of my favorite language statements in VBScript is the While…Wend loop. It is easy to use and easy to understand. Is there an equivalent command in Windows PowerShell?- HS Hi HS, WE never did use the While…Wend loop very much. WE generally used the Do…While…Loop ...

Hey, Scripting Guy! How Can I Write and Run a Windows PowerShell Script?

Hey, Scripting Guy! I appreciate the command-line stuff you are showing, but to be honest, I am not interested in returning to the DOS days to administer my network. I am not a UNIX administrator-I am a Windows guy. If I wanted to do UNIX kinds of things, I would download the latest *nix distro, obtain a silly haircut, grow facial hair, and ...

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (04/24/09)

In This Post How Can I Script the Download of Large Binary Files? How Do I Take Ownership of a File? How Do I Get the Time on a Computer? How Do I Increment a Number and Retain Its Format? How Can I Get a List of Mapped Drives from a Remote Machine? How Can I Script the Download of Large Binary Files?   Hey, Scripting Guy! Is...

Feedback usabilla icon