The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Desired State Configuration is a great deployment tool to meet your organization’s infrastructure-as-code goals. I recently came across a situation for a project that uses the Push Service (as opposed to the Pull Service). It required me to be able to apply a new partial configuration to a node, without any knowledge of what partial...
In an earlier post, I showed you how you could use the [parameter(mandatory)] attribute to force your parameters to behave a bit more like you'd expect from other languages. We also have a bunch of other useful attributes we can use on our parameters to enable cool features.
Pipelineing
The pipe might feel pretty magical to you in ...
Summary: Here’s how to use the ConvertTo-HTML cmdlet to build basic HTML content.
(image) Â Hey, Scripting Guy! Occasionally I need to build basic HTML documents. I heard there was a way to do that with Windows PowerShell.
(image) Â There most certainly is! Just use the ConvertTo-HTML cmdlet to save the day! For example...
Summary: You can use Windows PowerShell to authenticate to the Text-to-Speech REST API.
Q: Hey, Scripting Guy!
I was reading up on the REST API for the Text-to-Speech component of Cognitive Services. I'm just starting to learn how to use REST and PowerShell. Could you spend a little bit of time and show me how to authenticate to the service...
Welcome back everyone, I'm trying out GitHub Gist for my code blocks this week. It lets you click and download them, as well as making them easy to edit. The downside is that I can't use my usual dark themed syntax highlighting. Let me know in the comments if you like gist or the old method better :)
Switch statements in PowerShell are ...