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...
Comments are closed.0 0

Discover relationships by using Group-Object in PowerShell

Summary: Learn how to use one of the most basic Windows PowerShell cmdlets, the Group-Object cmdlet, to see relationships among different objects. There are some things in life that just seem to always go together: jasmine flowers and green tea, scones and English breakfast tea, or even peanut butter and apples. In the world of Windows ...

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