Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » getting started   (RSS)

Hey, Scripting Guy! How Can I Create Variables in Windows PowerShell?

Hey, Scripting Guy! In VBScript, it was easy to create a variable; all I had to do was use the DIM statement. I did not need to specify a type or a value or anything. I just used DIM and the variable would be created. How do I create variables in Windows

Hey, Scripting Guy! Can I Change on the Fly the Way Windows PowerShell Functions Work?

Hey, Scripting Guy! I have started using functions in Windows PowerShell to encapsulate complex commands, and it works pretty well. However, I would like to be able to change the way the functions work on the fly. By this I do not mean that I will throw

Hey, Scripting Guy! How Can I Create a Custom Function?

Hey, Scripting Guy! I am getting tired of typing the long commands used in Windows PowerShell. I know you Scripting Guys seem to show people always typing commands inside the Windows PowerShell console, but I do not think I like to work that way. It is

Hey, Scripting Guy! Tell Me About Aliases in Windows PowerShell

Hey, Scripting Guy! I have been playing around with Windows PowerShell 2.0 in Windows 7 and I think that I like it. However, it seems to require an awful lot of typing. The double command names, such as Get-Process , are somewhat helpful for remembering

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

In this post : How Do I Run Scripts? Which WMI Class Works with IDE Controllers? How Can I Randomize and Repeat Sequences? How Can I Run a VBScript I Find on the Script Center? How Can I Enable the Windows Scripting Host on My Computer? How Do I Run Scripts?

Hey, Scripting Guy! How Can I Learn Windows PowerShell?

Share this post : Hey, Scripting Guy! I recently ran across the Hey, Scripting Guy! Blog and have been fascinated by the different things you can do with scripts. I now think I can use them to make my life easier as a network administrator. So here is

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

How Can I List Files and Folders with Special Characters in Their Names? Hey, Scripting Guy! First I would like to thank you for all the good humour you present me every time I need you. I’m trying to use one of your scripts to list the files and folders

Scripting: Your First Steps

A long time ago, even before any of the Scripting Guys were born, people used to walk from one place to another. Not for exercise or recreation, but because they had to get somewhere. Those who were fortunate enough to have other forms of transportation

Hey, Scripting Guy! How Can I Evaluate a Condition and Select from Several Options with Windows PowerShell?

Hey, Scripting Guy! I want to evaluate a condition and select from several different options. I know I could use the If…Then…ElseI f to do this, but it is somewhat cumbersome and yesterday you said there was a better way to do these kinds of things. What’s

Hey, Scripting Guy! How Can I Use the If Statement in Windows PowerShell?

Hey, Scripting Guy! I have a problem with a script I am trying to write. I have to evaluate between several conditions as they come into the script, but I do not understand the way the If statement in Windows PowerShell works. I even tried to use the

Hey, Scripting Guy! How Can I Loop Through Collections with Windows PowerShell?

Hey, Scripting Guy! Your article yesterday was fairly interesting. The problem is that every time that you looped through something, you needed to basically know how many times that you would loop because you needed to be able to count it. Also your analogy

Hey, Scripting Guy! How Can I Use Windows PowerShell to Handle Mind-Numbing, Repetitive Tasks?

Hey, Scripting Guy! I have a number of tasks that I always have to do. These tasks are somewhat repetitive, and I want to be able to write a Windows PowerShell script to eliminate the repetition. Is there something I can use to help with the mind-numbing

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.

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

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
More Posts Next page »
 
Page view tracker