AI for simple variables to add spice to your scripts

I use duck.ai quite a bit for random AI questions that aren't tracked or tied to any kind of username. I've found it very useful for getting long lists of adjectives or adverbs for various handy PowerShell automations.

Simply ask (or use this "prompt" as they say in MSFT-land):

"show me a powershell variable on one line with line breaks for baseball adjectives"

$baseballAdjectives = @("aggressive", "athletic", "balanced", "brilliant", "calm", "capable", "clutch", "confident", "consistent", "creative", `

"defensive", "determined", "dynamic", "efficient", "explosive", "fast", "fearless", "flexible", "focused", "fundamental", `

"generous", "gritty", "hardworking", "high-energy", "intense", "intelligent", "inventive", "jumpy", "keen", "lateral", `

"leadership", "lengthy", "lightning", "lively", "loyal", "mobile", "motivated", "nimble", "offensive", "opportunistic", `

"passionate", "patient", "powerful", "precise", "quick", "reliable", "resilient", "resourceful", "responsive", "savvy", `

"scrappy", "selfless", "sharp", "shifty", "skilled", "smart", "smooth", "solid", "speedy", "spirited", `

"strategic", "strong", "supportive", "tactical", "tenacious", "tough", "unselfish", "versatile", "vibrant", "vigilant", `

"vital", "youthful", "zealous", "competitive", "disciplined", "impactful", "inspired", "inspiring", "motivational", "reliable")


PSReadline Module

PSReadline is a great module that really comes in handy on a daily basis for me. Here are a couple of sites with options and a quick video tutorial.

https://github.com/johnthebrit/RandomStuff/blob/master/PowerShellStuff/psreadlinedemo.ps1

https://www.youtube.com/watch?v=Q11sSltuTE0

Automated Text Summarization

I have to admit, as much as I dislike "AI" and all that it's supposed to be, this seems like a good use-case.

https://devblogs.microsoft.com/powershell-community/automate-text-summarization-with-openai-powershell/

Requires

 #Requires -Modules @{ ModuleName="MicrosoftTeams"; ModuleVersion="4.7.0" }

Snippets

if (!(Get-Module).Name -contains "ExchangeOnlineManagement"){
    Write-Output "Connecting to Exchange Online..."
    Connect-ExchangeOnline
}

VS Code Updates for January

Visual Studio Code has PowerShell extension updates for January.

Here's the changelog link...

https://github.com/PowerShell/vscode-powershell/blob/main/CHANGELOG.md

Advent of Code 2022

Advent of Code is a yearly event that promotes coding via an online Advent calendar game with code challenges and vast prizes and recognition for the winners (okay, I'm not sure about prizes). I plan on participating in some way, but nothing too enthusiastic.