PowerShell Cmdlet of the Day Podcast

Episode 10 – Select-Object


Listen Later

Download the MP3 Podcast

In this episode we explore all of the possibilities for one of the most used PowerShell cmdlets.

Basic Example:

Get-Process |select name, id

Parameters discussed:

  • First
  • Last
  • Skip
  • Unique
  • Return a string collection of the process names rather than an object with only a name property

    Get-Process |select -ExpandProperty Name

    Return the collection that exists within the access property

    Get-Acl |select -ExpandProperty Access

    Create a custom property with Name/Expression Hash

    Get-Process |select @{Name='Modified Name';Expression={$_.Name + "_Modified"}}

    Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Org

    ...more
    View all episodesView all episodes
    Download on the App Store

    PowerShell Cmdlet of the Day PodcastBy Tome Tanasovski

    • 4.2
    • 4.2
    • 4.2
    • 4.2
    • 4.2

    4.2

    6 ratings