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
A Favorite PowerShell ISE Feature: Remote Text File Editing
Summary: Sean Kearney shows you how to edit files remotely in the Windows PowerShell ISE. Honorary Scripting Guy, Sean Kearney, is here today to show you the last of the little nuggets I love to use in the Windows PowerShell ISE—that is editing files remotely. Note This is a five-part series that includes the following posts about features in the Windows PowerShell ISE: In Windows PowerShell 5.0, there is a unique cmdlet called PSEdit. This cmdlet is also unique to the PowerShell ISE. The goal of PSEdit is to bring file editing for any PowerShel...
PowerTip: List All Files Open in PowerShell ISE
Summary: Get a list of all files that are currently open in the Windows PowerShell ISE. How can I pull a list of anything that I am currently editing in the Windows PowerShell ISE? Use this command to get the entire list of files (including the full file path) that are currently open in the PowerShell ISE: $psISE.PowerShellTabs.files.FullPath
A Favorite PowerShell ISE Feature: Snippets
Summary: Sean Kearney shows you how to get sample code in the Windows PowerShell ISE. Honorary Scripting Guy, Sean Kearney, is here today to show you a really cool feature that has been in Windows PowerShell ISE for a while, but you might have overlooked it! It’s called Snippets. Note This is a five-part series that includes the following posts about features in the Windows PowerShell ISE: I love using the Snippets feature on a regular basis, because although I can work in PowerShell, I don’t memorize code. I’m an IT pro, not a dev. Even my good developer friends don’t memorize...
PowerTip: Determine Which Files in ISE Are Saved
Summary: Easily identify which files have been saved in the PowerShell ISE. How can I see which of my open files in the Windows PowerShell ISE been saved? To show a list of files that have been saved, run the following code in the ISE. $psISE.PowerShellTabs.files | where { $_.IsSaved } | Select-Object DisplayName
A Favorite PowerShell ISE Feature: Module Browser
Summary: Sean Kearney shows you how to access modules in the PowerShell Gallery. Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a feature you may not have heard of called the Module Browser for the PowerShell ISE. Note This is a five-part series that includes the following posts about features in the Windows PowerShell ISE: One of the newest things coming out of Microsoft is a central website called the PowerShell Gallery. This is a central repository of scripts that the community can use programmatically. A perfect example of this in action is Desired...
PowerTip: Set Zoom Level in PowerShell ISE
Summary: Automatically set the zoom level in the Windows PowerShell ISE. How can I programmatically adjust the zoom for my font size in the Windows PowerShell ISE? Set the Zoom property—for example, to adjust the font to 150%, run: $pSISE.Options.Zoom=150
A Favorite PowerShell ISE Feature: Script Browser
Summary: Sean Kearney shows you how to browse the TechNet Script Repository from the PowerShell ISE. Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a pretty cool feature that is available in the Windows PowerShell ISE. It’s an add-on called the Script Browser. Note This is a five-part series that includes the following posts about features in the Windows PowerShell ISE: The Script Browser came with my installation yesterday when I dropped in the Script Analyzer. I referenced its existence, but I didn’t show it to you. After the installation...
PowerTip: Edit Profile for PowerShell ISE
Summary: Identify and edit the autostart features for the Windows PowerShell ISE. Is there something similar to the $Profile feature in the Windows PowerShell console that I can use to customize my Windows PowerShell ISE environment? The variable name is the same in the PowerShell ISE, but the file name it references is different, for example: Notepad $Profile If you are using the Windows PowerShell 5.0 ISE, you can use: PSEdit $Profile
A Favorite PowerShell ISE Feature: Script Analyzer
Summary: Sean Kearney introduces a free tool for examining your script. Honorary Scripting Guy, Sean Kearney, is here. This week I’m going to introduce you to my favorite Windows PowerShell ISE features. Note This is a five-part series that includes the following posts about features in the Windows PowerShell ISE: Today, I’m talking about a free add-on called the Script Analyzer. In the past, I’ve written some scripts that literally “just worked,” but I still wondered if there was something I missed. More recently I wrote a couple of modules for t...