Powershell Aliases
- Navigate to the Powershell & Execute the following commands
Get-Alias
Get-Alias dir

- To Create a New Alias
Get-Command -Noun Alias
Get-Help New-Alias -Online
Get-Help about_Aliases
Understanding Parameters in Powershell?
- If we look into help of some cmd-lets, as shown below how to read them

- Parameter Types:
- Optional Parameters:
- In help docs they are surronded by square brackets

Get-Process Get-Process -Name notepad - In help docs they are surronded by square brackets
- Optional Positional Parameters:
- Positional Parameters can be passed without referring the parameter with name
- Eg:
Get-Process -Name 'notepad' Get-Process 'notepad'- Positional parameters can be optional. Which is represented in red color below

- Mandatory Parameters:
- This are the Parameters which you need to suppy
- Execute Get-Help Copy-Item

- Switch Parameter: The presence of switch parameter makes a difference
- Example: Get-ChildItem, Get-ChildItem -Recurse
- Common Parameters:
- Example

- Execute the command Get-Help about_CommonParameters

- Example
- Parameter Values:
- We see the parameters such as
<string> => string <string []> => a list of strings
- Optional Parameters:
Next Topics
- Confirm Paramters
- Providers
- Splatting
- Modules & Snap-ins
- Powershell Gallery
