Example on how you can create a Powershell loop in scripts using do/while and try/catch.
Install ReportUnit from Nuget.
Example on how you can verify that code in a Powershell script is valid Powershell code using Pester
Continue reading “Validate Powershell Code with Pester”
Short script to copy group membership from one account to another.
Continue reading “Copy group membership”
How to use break and continue in a foreach loop in Powershell
Continue reading “Break/continue in a foreach loop Powershell”
Usage example for while and until in Powershell
Continue reading “While/Until Powershell”
Looping until a value is reach
Continue reading “For Loop Powershell”
Some short examples on how you can use string operators -like and -match
Examples on how you can format string in Powershell
Continue reading “String formating Powershell”