Showing tag results for getting started

May 7, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

Hey, Scripting Guy! I want to evaluate a condition and select from several different options. I know I could use the If…Then…ElseIf 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 the better way?- KM Hi KM, You are not going to believe this. But the moment I read your qu...

Scripting Guy!Windows PowerShellscripting techniques
May 6, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 Get-Help cmdlet to find Help, but when I use Get-Help If, it says it cannot find Help for that to...

Scripting Guy!Windows PowerShellscripting techniques
May 5, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 about walking on the beach was somewhat dumb. This is because to really follow alongside w...

Scripting Guy!Windows PowerShellscripting techniques
May 4, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 repetition?- CH Hi CH, Ed here. Some repetition is good. For example, several years ago the ...

Scripting Guy!Windows PowerShellscripting techniques
Apr 29, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1

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 PowerShell. I can find the F...

Scripting Guy!Windows PowerShellscripting techniques