Scripting Blog [archived]

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

Latest posts

Feb 5, 2016
Post comments count 0
Post likes count 0

PowerTip: Update a PowerShell module

Doctor Scripto

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

Feb 5, 2016
Post comments count 0
Post likes count 0

Playing with PowerShell ISE Preview

Doctor Scripto

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

Feb 4, 2016
Post comments count 0
Post likes count 0

PowerTip: Install module from PowerShell Gallery

Doctor Scripto

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.

Feb 4, 2016
Post comments count 0
Post likes count 0

A first look at Windows PowerShell ISE Preview

Doctor Scripto

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

Feb 3, 2016
Post comments count 0
Post likes count 0

PowerTip: Find published modules in the PowerShell Gallery

Doctor Scripto

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*

Feb 3, 2016
Post comments count 0
Post likes count 0

Install the PowerShell ISE Preview from the PowerShell Gallery

Doctor Scripto

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

Feb 2, 2016
Post comments count 0
Post likes count 0

PowerTip: Learn about PowerShell default parameter values

Doctor Scripto

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*

Feb 2, 2016
Post comments count 1
Post likes count 1

Convert a web page into objects for easy scraping with PowerShell

Doctor Scripto

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

Feb 1, 2016
Post comments count 0
Post likes count 0

PowerTip: Get password from PowerShell credential object

Doctor Scripto

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 *