Chapter 1 | Know Your PowerShell
PowerShell Version and host version

- Where is PowerShell Installed in your System ?

Get All Cmd-Lets (Commands) available in your powershell session


- Types of commands in Powershell
Get-Command | select CommandType -Unique | ft -AutoSize

Get All Cmd-Lets available via a specific module
Get-Command -Module <module_name>

Alias
- Aliases translates to one of other Cmd-Let
Get-Command -CommandType Alias

-
Example |
See the dir i.e. legacy cmd command and ls i.e. Unix command both translates to Get-ChildItem |

Cmd-Let
- Cmd-Let (Pronounced as
CommandLet
) is Native PowerShell smart functions
- Cmd-Let has standard naming convention i.e.
Verb-Noun
and Microsoft recomend the same naming if a vendor or any user writes any custom Cmd-Let
- Input and Output of any given Cmd-Let is always an Object or a Collection of Objects
Get-Command -CommandType CmdLet
