In the following exercise, you’ll explore the use of the Get-ChildItem and Get-Member cmdlets in Windows PowerShell. You’ll see that it is easy to use these cmdlets to automate routine administrative tasks. You’ll also continue to experiment with the pipelining feature of Windows PowerShell.
Working with the Get-ChildItem and Get-Member cmdlets
Open the Windows PowerShell console.
Use the Get-Alias cmdlet to retrieve a listing of all the aliases defined on the computer. Pipe this output to a Where-Object cmdlet. Specify a -match argument against the definition property that matches the name of the Get-ChildItem cmdlet. The code is as follows:
gal | Where definition -match "Get-ChildItem"
The results ...