Scripting Blog [archived]

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

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

Use a script block to create custom groupings in PowerShell

Summary: Learn how to use a script block with the Group-Object cmdlet in Windows PowerShell to create custom groupings in this article by Microsoft Scripting Guy Ed Wilson. Good morning. Ed Wilson the Microsoft Scripting Guy is here. This week, I have been hanging out with a group of writers. It has been both fun and educational. It is always...