Windows Powershell Quick Reference Windows Powershell Quick Reference
Windows Powershell Quick Reference Windows Powershell Quick Reference
$args[0]
You can reference the last item in a collection by using
the index number 1:
$args[-1]
$a = Get-Content C:\Scripts\Test.txt
Less than
Less than or equal to
Greater than
Greater than or equal to
Equal to
Not equal to
Like (uses wildcards for
matching)
Not like (uses wildcards for
matching)
color is red."}
color is blue."}
color is green."}
color is yellow."}
{"Other."}
Get-Alias
C:\Scripts\Test.ps1
Get-Process | Get-Member