PowerShell Training Overview
Last updated:
POWERSHELL
- Introduction
- PowerShell - Shell + Scripting and how to run it
- extensible
- Check version
- Running with VS code
- Help System
- -online tag
- about topics
- Running commands - Day1
- execution policy
- Cmdlets / form / convention
- using parameter names
- positional
- required
- shortcuts
- Providers (How to use files and folders)
- PSProviders - maps things to powershell for use
- Using wildcards
- Registry things
- Pipeline
- Connecting
- Export
- Killing processes
- How powershell passes data down the pipeline | pipeline parameter binding —> Day2
- First ByValue
- Then ByPropertyName
- Select with Name and Expression
- Extensions
- Modules
- Objects
- What and why?
- Get-member
- How to use
- Formatting - Day 3
- ft (with Name and expression)
- fl
- out
- out-gridview
- Filtering and comparison
- Filter left (as close to the first cmdlet as possible)
- Comparison Operators
- Where-Object
- Remote control - Day 4
- WinRMGet
- -ComputerName
- Enter-PSSession/ Exit-PSSession
- Invoke-Command/Invoke-Scriptblock
- Diff between remote and local commands
- lack methods (readonly copy)
- New-PSsession / Remove-PSSession
- Variables - Day 5
- Types
- Quotes
- Arrays
- how to access object
- how to access one property for multiple objects
- $() - subexpression
- specify type using []
- Best practices
- No space
- Name properly with description
- define type
- Input/Output
- Read-Host
- Write-Host
- Write-Output
- Otherways
- -verbose
- Scripting - Day 6
- Parameterization (help about_functions_advanced_parameters)
- [CmdletBinding()]
- Mandatory
- aliases
- validate
- Setting default parameter values
- Comments and stuff
- Scopes
- Functions
- begin
- process
- end
- Parameterization (help about_functions_advanced_parameters)
- Logic and loops - Day 7
- foreach
- foreach-object - pipeline
- alias %
- -parallel
- While
- do while
- Error handling - Day 8
- Error variables
- Error action
- Error action preference (when -erroraction is not available)
- try catch finally blocks
- Debugging
- Random
- different versions of powershell
- Operators : -in, -contains, -join and -split, -replace, -as and -is
- Handling text
- Handling date
- WMI dates - ConvertDateTime and ConvertToDateTime
- Script blocks
- & operator - to run commands
- WMI and cim
- $null/empty strings/zero
- how to compare