Similarly to the for statement, the while statement is another type of loop that parses through a collection. The while statement also includes a conditional code block and a script block and continues for so long as the conditional code block equal true.
Category Archives: Windows
Powershell tutorial. The For Statement
This week’s lesson builds on last weeks tutorial but introduces the For statement. The For statement uses a counting loop that processes and continues through a collection as long as the condition equals true. Similar to If statements, the for statement includes a conditional code block and a script block. However you will see that the conditional code block is far more complex.
Windows PowerShell the if statement
There are several ways to control the flow of code within your powershell scripts. The if, for, and while statements are used to define conditions and the actions to happen when the conditions are met. In this blog I’ll focus specifically on the if statement.
Windows 7 details leaked.
Computer World is reporting that some of the new features for Windows 7 were leaked on the Microsoft site (which since, they did it, wouldn’t it be an announcement and not a leak?) today. Like Vista, Windows 7 will come in a few varying flavors from home, Enterprise, to ultimate. The encryption tool, BitLocker, will make another appearance in windows 7 as well. One new feature (not a bug!) will be Driver Protection. Driver Protection will more or less block ‘unstable’ drivers from coming through windows update – something that’s rather plagued vista (where’d my CD BURNER go?!). Details regarding Alpha testing for the OS are expected to be announced later today.