O'Reilly logo

Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 by Shannon Bray, Gary Lapointe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

Filtering and Iterating Your Data

IN THIS CHAPTER, YOU WILL LEARN TO:

  • ADD CONDITIONAL LOGIC

    Use Comparison and Logic Operators

    Use the If/ElseIf/Else Statements

    Use the Switch Statement

  • FILTER YOUR DATA

    Use the Where-Object Cmdlet

    Use the Sort-Object Cmdlet

    Use the Select-Object Cmdlet

  • ITERATE THROUGH YOUR DATA

    Use While Loops

    Use Do While Loops

    Use Do Until Loops

    Use For Loops

    Use Foreach Loops

    Use the ForEach-Object Cmdlet

Once you've declared your variables and have received a result set from the various Windows PowerShell and SharePoint 2010 cmdlets, you will often need to perform some conditional logic based on the data, filter the data, or loop through the data to perform some additional operations. The constructs and cmdlets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required