I'm testing text-to-speech with this script: Add-Type -AssemblyName System.Speech $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer $synth.SelectVoice("Gabi") $synth.Speak("Text goes here") The downloaded voice named "Gabi" works when I run the script…
I need to update several hundred Active Directory users by adding a secondary email alias. Legacy addresses use the first initial plus surname format, such as [email protected], while…
I had no programming experience three months ago, so PowerShell initially looked like complete gibberish. After practicing consistently, concepts such as conditionals, filtering, Where-Object, Select-Object, loops, splatting, CmdletBinding,…
Our legacy email format is the first initial plus surname at the old domain—for example, Bob Morton would use [email protected]. New accounts follow a firstname.lastname format at a…
I need to add a new email address format as an alias for several hundred Active Directory users. Legacy addresses use the first initial followed by the surname,…
Junior admin rant incoming. My senior is clearly experienced and has seen far more environments than I have, but he often uses very old-school methods without explaining the…
I'm using PowerShell to process every PDF in `E:DIY`. For each PDF, I want to create a Markdown file with the same base name, and have the Markdown…
I'm writing a PowerShell script that scans `E:DIY` for PDF files and creates a Markdown file with the same base name for each one. The Markdown content should…
An onboarding script that worked normally last week now gets stuck repeatedly showing the Get-Credential prompt when it tries to create a New-PSSession. The command works when run…
When checking whether a command returned something and then choosing an exit code, is there any meaningful difference between testing for a truthy value and testing for its…
About three months ago, I started learning PowerShell through the Microsoft Graph module because I wanted to automate Microsoft 365 administration. I already knew how to perform tasks…
When checking whether a command returned something and using exit codes, is there any meaningful difference between these two forms? $thing = Get-Thing if ($thing) { Exit 1…
I've been a Level 1 Help Desk technician at a corporate company for a little over three years, and I'm trying to move toward systems administration. Our new…
Is it practical to create or run text-based games in PowerShell or a command prompt? I'm especially interested in examples, existing code, or libraries that could help with…
Is it possible to create or run text-based games in PowerShell or a command prompt? I'm especially interested in examples, existing code, or libraries that could help someone…
I'm interested in learning PowerShell, but I don't have a programming background. What's a practical way to get started, and how can I use it for normal day-to-day…
I work for a very small managed IT services company with only four employees. My boss has extensive experience in internal IT and consulting, but he is extremely…
I work at a very small managed services provider with only four employees. My boss has extensive experience in internal IT and consulting, but he is extremely cautious…
I'm new to programming and currently know the basics of Java and SQL. I'm interested in automation, but I'm not sure how broad the term is or what…
I need to regularly migrate shortcuts using PowerShell. An API export produces CSV rows containing a user ID, folder name, parent ID, target ID, and shortcut name. Rows…