The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
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...
Summary: Learn how to properly answer a technical question in a presentation in this step-by-step post by PowerShell MVP June Blender.
Today we have another blog post by PowerShell MVP June Blender. June is an Honorary Scripting Guy and a technical evangelist for the SAPIEN Technologies, Inc. She has been working with PowerShell for a long ...
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...
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 ...
Summary: Use Windows PowerShell to display a percentage as a two place number.
(image) How can I use Windows PowerShell to display a number as a percentage that has two decimal places?
(image) Use the -f format specifier, and specify a pattern as “{0:p2}”. On the other side of the -f format specifier, perform your percentage ...