Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Use Here-Strings with PowerShell

Summary: Learn the basic use of a here-string in Windows PowerShell. (image)  What is a here-string and how do I use it? (image) In PowerShell, you can use here-strings to declare blocks of text. They’re declared just like regular strings except they have an @ on each end. Instead of being limited to one line, you can ...

Sounds of the Holidays–Part 2

Summary: MVP, Thomas Rayner, continues to inspire holiday spirit by using PowerShell to trigger multimedia. Yesterday in Sounds of the Holidays–Part 1, I tried to inspire my coworker, Matthew, with some cool holiday messages. Unfortunately, Matthew is still being a Grinch and I need to step up my game. Instead of some spoken messages from...

Sounds of the Holidays–Part 1

Summary: MVP, Thomas Rayner, inspires holiday spirit by using Windows PowerShell to trigger some multimedia.Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for the Scripting Guy for a couple days. You can find me on Twitter (@MrThomasRayner), or posting biweekly on my blog, WorkingSysadmin: ...

PowerTip: Get Status of a DSC File in Azure

Summary: Use the Azure cmdlets to get the current status of a Desired State Configuration file on a virtual machine. (image)  How can I use Windows PowerShell to determine if a Desired State Configuration (DSC) file that I applied to an            Azure virtual machine is successful? (image)  Get the ...