$variable_name
$_.Property
(&_
)- eg1,Where-Object
or where
or ?
- eg1, eg2 : Note use of -eq
(equal), -ne
(not equal),
-lt
(less than), -le
(less or equal), gt
, ge
, -like
(compare using wilcards).|
- take from first cmdlet, pass to second;
- run mutiple cmdletsForEach-Object
or %
- eg1It allows you to perform an action against multiple objects
when that action normally only works on one object at a time.
Bold are most common. Red are powerful ones.
Creates a new alias. Syntax:
New-Alias [-Name] <String> [-Value] <String> [-Confirm] [-Description <String>] [-Force] [-Option {None | ReadOnly | Constant | Private | AllScope | Unspecified}] [-PassThru] [-Scope <String>] [-WhatIf] [<CommonParameters>]
Creates or changes an alias for a cmdlet or other command. Syntax:
Set-Alias [-Name] <String> [-Value] <String> [-Confirm] [-Description <String>] [-Force] [-Option {None | ReadOnly | Constant | Private | AllScope | Unspecified}] [-PassThru] [-Scope <String>] [-WhatIf] [<CommonParameters>]
Example: Set-Alias -Name hash -Value get-filehash
- New alias for get-childname.
?