├── .github ├── FUNDING.yml └── workflows │ └── powershell.yml ├── .gitignore ├── PowerFul Modules └── Pode │ ├── 01-public-examples.ps1 │ ├── 02-PasswordTool.ps1 │ ├── 03-passwordtool-videoexample.ps1 │ └── scripts │ └── password.ps1 ├── PowerShell Array └── PowerShell Array.ps1 ├── PowerShell Error Handling ├── 1-What causes error.ps1 ├── 2-Non terminating errors.ps1 ├── 3-Error Action preference.ps1 ├── 4-Error Handling with Try Catch.ps1 ├── 5-Try Finally.ps1 ├── 6-Investigating errors.ps1 ├── 7-typed exceptions.ps1 └── 8-application errors.ps1 ├── PowerShell Files └── Downloads │ └── PowerShell File Downloading.ps1 ├── PowerShell Function ├── Convert script into function │ ├── 1. Simple script.ps1 │ ├── 2. Script with parameters.ps1 │ ├── 3. Parameters and types.ps1 │ └── 4. Convert script into function.ps1 └── Parameters │ ├── 1Mandatory.ps1 │ ├── 2ParameterSetName.ps1 │ ├── 3Position.ps1 │ ├── 4ValueFromPipeline.ps1 │ ├── 5Validate.ps1 │ ├── 6Alias.ps1 │ └── data.psd1 ├── PowerShell Hashtable └── PowerShell Hashtable.ps1 ├── PowerShell Module ├── Building Module │ └── KpInfo │ │ ├── .gitignore │ │ ├── Install-Requirements.ps1 │ │ ├── README.md │ │ ├── Source │ │ ├── KpInfo.psd1 │ │ ├── Private │ │ │ └── Invoke-Request.ps1 │ │ └── Public │ │ │ ├── Get-CatFact.ps1 │ │ │ ├── Get-Quote.ps1 │ │ │ └── Get-Weather.ps1 │ │ └── Start-ModuleBuild.ps1 └── Module Manifest │ ├── cat.ps1 │ ├── mystuff.psd1 │ ├── mystuff.psm1 │ ├── quote.ps1 │ ├── weather.ps1 │ └── wrapper.ps1 ├── PowerShell PsCustomObject └── PowerShell PsCustomObject.ps1 ├── PowerShell Switch statement └── Powershell Switch statement.ps1 ├── PowerShell loops - For ├── PowerShell loops - For.ps1 └── for.drawio.png ├── Powershell If statement - controlling the flow of your code └── Powershell If statement.ps1 ├── README.md └── Shorts ├── Array ├── 1.ps1 ├── 2.ps1 ├── 3.ps1 └── 4.ps1 ├── For ├── 1.ps1 ├── 2.ps1 └── 3.ps1 ├── ForEach ├── 1.ps1 ├── 2.ps1 ├── 3.ps1 └── 4.ps1 ├── Generic-List ├── .vscode │ └── settings.json ├── 1.ps1 ├── 2.ps1 ├── 3.ps1 └── 4.ps1 ├── Help ├── 1.ps1 └── 2.ps1 ├── If ├── 1.ps1 ├── 2.ps1 └── 3.ps1 ├── Param ├── 1.ps1 ├── 2.ps1 ├── 3.ps1 └── 4.ps1 ├── Pipeline-User ├── 1.ps1 ├── 2.ps1 └── 3.ps1 └── Switch ├── 1.ps1 ├── 2.ps1 └── 3.ps1 /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/powershell.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/.github/workflows/powershell.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /PowerFul Modules/Pode/01-public-examples.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerFul Modules/Pode/01-public-examples.ps1 -------------------------------------------------------------------------------- /PowerFul Modules/Pode/02-PasswordTool.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerFul Modules/Pode/02-PasswordTool.ps1 -------------------------------------------------------------------------------- /PowerFul Modules/Pode/03-passwordtool-videoexample.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerFul Modules/Pode/03-passwordtool-videoexample.ps1 -------------------------------------------------------------------------------- /PowerFul Modules/Pode/scripts/password.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerFul Modules/Pode/scripts/password.ps1 -------------------------------------------------------------------------------- /PowerShell Array/PowerShell Array.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Array/PowerShell Array.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/1-What causes error.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/1-What causes error.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/2-Non terminating errors.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/2-Non terminating errors.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/3-Error Action preference.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/3-Error Action preference.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/4-Error Handling with Try Catch.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/4-Error Handling with Try Catch.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/5-Try Finally.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/5-Try Finally.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/6-Investigating errors.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/6-Investigating errors.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/7-typed exceptions.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/7-typed exceptions.ps1 -------------------------------------------------------------------------------- /PowerShell Error Handling/8-application errors.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Error Handling/8-application errors.ps1 -------------------------------------------------------------------------------- /PowerShell Files/Downloads/PowerShell File Downloading.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Files/Downloads/PowerShell File Downloading.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Convert script into function/1. Simple script.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Convert script into function/1. Simple script.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Convert script into function/2. Script with parameters.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Convert script into function/2. Script with parameters.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Convert script into function/3. Parameters and types.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Convert script into function/3. Parameters and types.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Convert script into function/4. Convert script into function.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Convert script into function/4. Convert script into function.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/1Mandatory.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/1Mandatory.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/2ParameterSetName.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/2ParameterSetName.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/3Position.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/3Position.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/4ValueFromPipeline.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/4ValueFromPipeline.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/5Validate.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/5Validate.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/6Alias.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/6Alias.ps1 -------------------------------------------------------------------------------- /PowerShell Function/Parameters/data.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Function/Parameters/data.psd1 -------------------------------------------------------------------------------- /PowerShell Hashtable/PowerShell Hashtable.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Hashtable/PowerShell Hashtable.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/.gitignore: -------------------------------------------------------------------------------- 1 | [Oo]utput/ -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Install-Requirements.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Install-Requirements.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/README.md -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Source/KpInfo.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Source/KpInfo.psd1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Source/Private/Invoke-Request.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Source/Private/Invoke-Request.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Source/Public/Get-CatFact.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Source/Public/Get-CatFact.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Source/Public/Get-Quote.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Source/Public/Get-Quote.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Source/Public/Get-Weather.ps1: -------------------------------------------------------------------------------- 1 | function Get-Weather { 2 | Invoke-Request -Uri https://wttr.in/ -ContentOnly 3 | } -------------------------------------------------------------------------------- /PowerShell Module/Building Module/KpInfo/Start-ModuleBuild.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Building Module/KpInfo/Start-ModuleBuild.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/cat.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Module Manifest/cat.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/mystuff.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Module Manifest/mystuff.psd1 -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/mystuff.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Module Manifest/mystuff.psm1 -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/quote.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Module Manifest/quote.ps1 -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/weather.ps1: -------------------------------------------------------------------------------- 1 | function Get-Weather { 2 | 3 | Invoke-RestMethod https://wttr.in/ 4 | 5 | } -------------------------------------------------------------------------------- /PowerShell Module/Module Manifest/wrapper.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Module/Module Manifest/wrapper.ps1 -------------------------------------------------------------------------------- /PowerShell PsCustomObject/PowerShell PsCustomObject.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell PsCustomObject/PowerShell PsCustomObject.ps1 -------------------------------------------------------------------------------- /PowerShell Switch statement/Powershell Switch statement.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell Switch statement/Powershell Switch statement.ps1 -------------------------------------------------------------------------------- /PowerShell loops - For/PowerShell loops - For.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell loops - For/PowerShell loops - For.ps1 -------------------------------------------------------------------------------- /PowerShell loops - For/for.drawio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/PowerShell loops - For/for.drawio.png -------------------------------------------------------------------------------- /Powershell If statement - controlling the flow of your code/Powershell If statement.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Powershell If statement - controlling the flow of your code/Powershell If statement.ps1 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/README.md -------------------------------------------------------------------------------- /Shorts/Array/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Array/1.ps1 -------------------------------------------------------------------------------- /Shorts/Array/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Array/2.ps1 -------------------------------------------------------------------------------- /Shorts/Array/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Array/3.ps1 -------------------------------------------------------------------------------- /Shorts/Array/4.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Array/4.ps1 -------------------------------------------------------------------------------- /Shorts/For/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/For/1.ps1 -------------------------------------------------------------------------------- /Shorts/For/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/For/2.ps1 -------------------------------------------------------------------------------- /Shorts/For/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/For/3.ps1 -------------------------------------------------------------------------------- /Shorts/ForEach/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/ForEach/1.ps1 -------------------------------------------------------------------------------- /Shorts/ForEach/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/ForEach/2.ps1 -------------------------------------------------------------------------------- /Shorts/ForEach/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/ForEach/3.ps1 -------------------------------------------------------------------------------- /Shorts/ForEach/4.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/ForEach/4.ps1 -------------------------------------------------------------------------------- /Shorts/Generic-List/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "powershell.codeFormatting.openBraceOnSameLine": false 3 | } -------------------------------------------------------------------------------- /Shorts/Generic-List/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Generic-List/1.ps1 -------------------------------------------------------------------------------- /Shorts/Generic-List/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Generic-List/2.ps1 -------------------------------------------------------------------------------- /Shorts/Generic-List/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Generic-List/3.ps1 -------------------------------------------------------------------------------- /Shorts/Generic-List/4.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Generic-List/4.ps1 -------------------------------------------------------------------------------- /Shorts/Help/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Help/1.ps1 -------------------------------------------------------------------------------- /Shorts/Help/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Help/2.ps1 -------------------------------------------------------------------------------- /Shorts/If/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/If/1.ps1 -------------------------------------------------------------------------------- /Shorts/If/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/If/2.ps1 -------------------------------------------------------------------------------- /Shorts/If/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/If/3.ps1 -------------------------------------------------------------------------------- /Shorts/Param/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Param/1.ps1 -------------------------------------------------------------------------------- /Shorts/Param/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Param/2.ps1 -------------------------------------------------------------------------------- /Shorts/Param/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Param/3.ps1 -------------------------------------------------------------------------------- /Shorts/Param/4.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Param/4.ps1 -------------------------------------------------------------------------------- /Shorts/Pipeline-User/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Pipeline-User/1.ps1 -------------------------------------------------------------------------------- /Shorts/Pipeline-User/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Pipeline-User/2.ps1 -------------------------------------------------------------------------------- /Shorts/Pipeline-User/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Pipeline-User/3.ps1 -------------------------------------------------------------------------------- /Shorts/Switch/1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Switch/1.ps1 -------------------------------------------------------------------------------- /Shorts/Switch/2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Switch/2.ps1 -------------------------------------------------------------------------------- /Shorts/Switch/3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekamilpro/About-PowerShell/HEAD/Shorts/Switch/3.ps1 --------------------------------------------------------------------------------