Automation/DevOps

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 »

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 »

Custom Protocol Handler and PowerShell (Part 1)

When trying to search for the “Custom Protocol Handler” phrase in Google, we will most probably find some articles on how to allow running a local application from a website. It’s quite interesting. Normally a website doesn’t have access to execute commands or applications on a local (client) computer. But there is an ability to

Custom Protocol Handler and PowerShell (Part 1) Read More »

Scroll to Top