Scripting Blog [archived]

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

Retrieve Azure Resource Manager virtual machine properties by using PowerShell – Part 3

Summary: Identify properties for the operating system of a virtual machine. This blog post is part of a series about how to retrieve Azure Resource Manager virtual machine properties by using PowerShell. To get the most out of this series, read the posts in order. If you’re new to PowerShell, you might want to first read the preceding five...

PowerTip: Specify that a script requires admin privileges to run

Summary: Learn how to require admin privileges to run a Windows PowerShell script. (image)  How can I make sure that my Windows PowerShell script has administrator privileges to run? (image)  Use the #Requires directive and specify RunAsAdministrator. Here is an example: (image...

Additional resources for text analysis by using PowerShell

Summary: This is a summary of some of the additional resources for working with text and Windows PowerShell. Good day. Microsoft Scripting Guy, Ed Wilson, is here. So, here's the deal. We are going along and decide to write a simple Windows PowerShell script. Before we know it, the thing has morphed into dozens of lines. And, also before we ...