Showing results for March 2018 - Scripting Blog [archived]

Mar 30, 2018
0
0

Introducing the DscLcm utility for PowerShell

Doctor Scripto
Doctor Scripto

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 ...

Scripting Guy!Windows PowerShellguest blogger
Mar 27, 2018
0
1

Doing More With Functions: Taking Parameters on the Pipe

Kory Thacher
Kory Thacher

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 PowerShell, ...

korytKory Thacher
Mar 15, 2018
0
0

PowerTip: Build simple HTML with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Here’s how to use the ConvertTo-HTML cmdlet to build basic HTML content.   Hey, Scripting Guy! Occasionally I need to build basic HTML documents. I heard there was a way to do that with Windows PowerShell.   There most certainly is! Just use the ConvertTo-HTML cmdlet to save the day! For example...

Windows PowerShellPowerTipguest blogger
Mar 15, 2018
0
0

Windows PowerShell and the Text-to-Speech REST API (Part 2)

Doctor Scripto
Doctor Scripto

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? —...

Scripting Guy!Windows PowerShellSean Kearney
Mar 14, 2018
0
1

PowerShell for Programmers: The Magic Switch!

Kory Thacher
Kory Thacher

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 very ...

korytKory Thacher