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.
Scripting Blog [archived]
Formerly known as the "Hey, Scripting Guy!" blog
Latest posts
PowerTip: Update a PowerShell module
Summary: Learn how to update an installed Windows PowerShell module. I used Install-Module to install a Windows PowerShell module, but how can I update it? Use the Update-Module cmdlet, for example: Here are a couple of other examples: find-module *ise-preview | Update-Module Update-Module *ise-preview
Playing with PowerShell ISE Preview
Summary: This blog post explores the features and functionality of the newly released Windows PowerShell ISE Preview edition that runs on Windows PowerShell 5.0. After you install the Windows PowerShell ISE preview from the PowerShell Gallery and take a look at the modules and functions it provides, it is time to fire up the new ISE and play a bit. I click the new shortcut in my All Apps section on my laptop running Windows 10. (To make it a bit more accessible, I drag the shortcut to my tool bar. I mean, I rarely go searching through the All Apps section.) I add a blank page to the ISE, and it looks pretty muc...
PowerTip: Install module from PowerShell Gallery
Summary: Learn how to install a module from the PowerShell Gallery. How can I easily install a module from the PowerShell Gallery? Use the Install-Module cmdlet in Windows PowerShell 5.0, and specify the name of the module.
A first look at Windows PowerShell ISE Preview
Summary: Take a first look at the newly released Windows PowerShell ISE Preview. Good morning everyone. Ed Wilson here. I can tell you that the list of speakers for PowerShell Saturday on in Tampa March 19, 2016 looks really impressive. There are going to be seven MVPs and six Microsoftees there! When it comes to Microsoft Automation, this is going to be the place to be in March. Registration is still open, but it is starting to fill up quickly. Yesterday in Install the PowerShell ISE Preview from the PowerShell Gallery, I looked at downloading and installing Windows PowerShell ISE Preview. Because this installs...
PowerTip: Find published modules in the PowerShell Gallery
Summary: Learn how to find Published Windows PowerShell modules in the PowerShell Gallery. How can I use Windows PowerShell to find modules that are published in the Windows PowerShell Gallery? Use the Find-Module cmdlet in Windows PowerShell 5.0. This example finds modules related to the ISE: Find-Module *ISE*
Install the PowerShell ISE Preview from the PowerShell Gallery
Summary: Learn how to install the Windows PowerShell ISE Preview edition from the PowerShell Gallery to Windows PowerShell 5.0 by using a one-line command. One of the way cool things is that the Windows PowerShell ISE is released to the PowerShell Gallery. “PowerShell Gallery?” you might ask. Yeah, the PowerShell Gallery. Although this version of the PowerShell ISE is currently still under limited preview, this does not mean that you can’t use it. In fact, you should be using it. I go to the PowerShell Gallery page, and type ISE in the Search box, and what comes back is a bunch of stuff related ...
PowerTip: Learn about PowerShell default parameter values
Summary: Learn about the default parameter values in Windows PowerShell. How can I find more about default parameter values in Windows PowerShell? Use the Get-Help cmdlet and search for *defaultParameter*. The following command returns a list of Help topics that provide this information: help *DefaultParameter*
Convert a web page into objects for easy scraping with PowerShell
Summary: Learn how to use Windows PowerShell 5.0 to scrape a web page so that you can easily return parsable objects. Good morning. Ed Wilson here, and today I have a guest blog post by Doug Finke... When surfing the PowerShell Gallery, you'll find that each module has a web page with a version history, for example: Wouldn't it be great if you could get this information at the command line? Click here for a 20 second video that shows the code to do it. How to do web scrapping This approach will only work in Windows PowerShell 5.0, because it uses the new ConvertFrom-String function to convert the...
PowerTip: Get password from PowerShell credential object
Summary: Learn how to retrieve the password from a Windows PowerShell credential object. I am having a problem connecting to an application via Windows PowerShell. How can I verify the user name and password that was supplied to the credential object? Assuming you have permissions to the object, you can use the GetNetworkCredential method, for example: $a = Get-Credential $a.GetNetworkCredential() | fl *