Mastering PowerShell Pester Should Command and Operators
Should is a command that performs our tests or assertions in our script. It is used for comparing objects and throwing failures when the test is expected to fail. We…
Should is a command that performs our tests or assertions in our script. It is used for comparing objects and throwing failures when the test is expected to fail. We…
Pester is a framework designed for validating and testing your PowerShell commands, whether they are in functions, cmdlets, modules, or scripts. You write your tests to make sure your PowerShell…
Last week, I covered Getting Started with Microsoft Teams and Graph API that highlights Graph API basics and creating an Azure Application Registration. In this post, you’ll learn how to…
In a previous article, you learned how to create a prompt inside of PowerShell by recreating the action prompt for the Remove-Item cmdlet. PowerShell can also create a graphical or…
In this post, I’m going to demonstrate two ways to create prompts in PowerShell and how to take action on the response. I’m going to attempt to replicate the prompt…
If you’ve written a module or script that you feel others could benefit from using, definitely consider publishing it to the broader community. This post is about how to publish…
With the announcement of PowerShell 7 Preview 5 being released yesterday, I decided I needed to download this preview version and check it out. At the same time, I recently…
You have had it happen before. You run a PowerShell script, and suddenly the console is full of errors. Did you know you can handle these errors in a much…
A quick and easy way to automate something is to schedule a PowerShell script using Windows Task Scheduler. However, sometimes you need to connect to remote resources using a username…
I’m not a developer, but I do enjoy programming and writing scripts. In an effort to be “more official”, I’ve decided I needed to work more with Git and source…