Would you like to learn how to select specific rows from a Powershell command? In this tutorial, we are going to show you how to use Powershell to filter specific lines from a command using Powershell on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Select specific rows from a command

Start a Powershell command-line.

Start Powershell

As an example, list all files in a directory.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

List all properties available to this command.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Filter rows where the name has a specific word.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Filter rows using multiple name values.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Filter rows using a numeric value.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Filter rows where the object was written in the last hour.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Congratulations! You are able to select specific rows from a Powershell command.