Recent posts

PowerShell Validate Distinguished Name

1 minute read

In this post we will explore how to use PowerShell and some regex magic to check if a string is a valid distinguishedName (DN)

PowerShell export registry key

2 minute read

In this post we will explore how we can use PowerShell to check existence of a specific registry key and how to export them either in CSV or XML format

PowerShell Switch Statement

6 minute read

In this post we will see uses of Switch statement in PowerShell, advantages it offers over if/else construct and how to use a switch with multiple conditions