PowerShell In-depth
Table of Contents
This chapter covers fundamental concepts of PowerShell for writing PowerShell scripts.
File Name Extension
Comment
Object and Type
Path
Pipe
Number
String
- String
- Single Quoted String
- Double Quoted String
- Here-String
- Escape Characters
- String Length
- Join String
- Split String
- Format String
- String Methods
- String Wildcards
- Regular Expression Operators
- Regex Result ($Matches)
- Regular Expression Syntax
Variable
Boolean
Conditional
Data Structure
Array
- Array
- Array Sub-Expression Operator, Collection to Array
- Array and Types
- Nested Array, Multi-Dimensional Array
- Array, Get Items
- Array, Set Item
- Test If Collection Contains a Value
- Join Array, Append
- Filter Array (where)
- Delete Array, Clear Array
- Array to String
- Array Methods
- Iterate Array
Hashtable, Dictionary
- Hashtable, Dictionary
- Hashtable: Get Key Value, Add, Remove
- Join Hashtables
- Hashtable Key / Property Name Clash
- Hashtable Get All Keys
- Sort Hashtable
- Hashtable Methods
- Iterate Hashtable
Loop, Iteration
Input, Output
Function
- Define Function
- Function Return Value and Statement
- Function Parameters
- Define Function to Accept Pipe
- Function Inline Doc
- Allowed Characters in Function Name
Error
Profile and Script
- Profile (init file)
- Create a Script
- Load a Script
- Eval Variable, String, ScriptBlock
- Get Current Script Path