PowerShell

Use PowerShell to integrate OpenAI GPT with context menu

Do you know that it’s possible to use PowerShell to integrate OpenAI GPT with context menu in Windows? It’s even really simple and with help of this article everyone can make it. In this example, I’ll add a new item to context menu (when you right click on a file). It appears only for PowerShell […]

Use PowerShell to integrate OpenAI GPT with context menu Read More »

Let OpenAI improve and correct your PowerShell code

In this article, I will describe a simple way to let OpenAI improve and correct your PowerShell code. It will contain 2 main functions: Get-CodeImprovementSuggestion and Get-CodeFixSuggestion. Both accept a ScriptBlock parameter. As names indicate, the first one checks in OpenAI if there are some possible improvements. The second one checks for errors. Both are

Let OpenAI improve and correct your PowerShell code Read More »

Increase maturity of PowerShell script with Mermaid diagram

Intro Recently I had a need to re-write one of my old scripts. It was a simple case: once a month send an email with the number of received and sent messages from the previous month for a shared mailbox. The original one used Exchange on-prem. The new one connects to Exchange Online. What seemed

Increase maturity of PowerShell script with Mermaid diagram Read More »

Cannot login to Microsoft Whiteboard? Read how to fix error CAA20002

I’ve encountered an issue where Microsoft Whiteboard showed me the error code CAA20002. I did the usual troubleshooting, I tried to repair, reset, and to re-install the app but it didn’t help, every time I got the same error when I tried to log in. I tried to open the Whiteboard app on a different

Cannot login to Microsoft Whiteboard? Read how to fix error CAA20002 Read More »

PowerShell Interactive Menu – fun with System.Console class

UI in Powershell In the previous post, I finished short series about custom protocol handlers. Today I will focus on a different topic. I’ll describe how to use one of the most basic .net classes: System.Console to create a console-based, PowerShell Interactive Menu. It’s a fun, old-school experience – but it still might be useful

PowerShell Interactive Menu – fun with System.Console class Read More »

Scroll to Top