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