Episode 10 – Select-Object

Episode 10 – Select-Object

Update: 2011-09-19
Share

Description

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

Comments 
loading
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Episode 10 – Select-Object

Episode 10 – Select-Object

Tome Tanasovski