Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Get-Variable

Get-Variable - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Variable

Description
Get a powershell variable

Usage


Options


Example(s)
Display variables with names that begin with var:

PS C:\>get-variable p*

Display only the values (compare with selecting the value property from the object):

PS C:\>get-variable p* -valueOnly
PS C:\>get-variable p* | select value

Display and sort variables that begin with either the letter 'S' or the letter 'P':

PS C:\>get-variable -include s*,p* | sort-object name