Scripting Blog [archived]

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

Latest posts

Jan 8, 2016
Post comments count 0
Post likes count 0

A Favorite PowerShell ISE Feature: Remote Text File Editing

Doctor Scripto

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

Jan 7, 2016
Post comments count 1
Post likes count 0

PowerTip: List All Files Open in PowerShell ISE

Doctor Scripto

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

Jan 7, 2016
Post comments count 1
Post likes count 0

A Favorite PowerShell ISE Feature: Snippets

Doctor Scripto

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

Jan 6, 2016
Post comments count 0
Post likes count 0

PowerTip: Determine Which Files in ISE Are Saved

Doctor Scripto

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  

Jan 6, 2016
Post comments count 0
Post likes count 0

A Favorite PowerShell ISE Feature: Module Browser

Doctor Scripto

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

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

PowerTip: Set Zoom Level in PowerShell ISE

Doctor Scripto

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

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

A Favorite PowerShell ISE Feature: Script Browser

Doctor Scripto

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

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

PowerTip: Edit Profile for PowerShell ISE

Doctor Scripto

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

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

A Favorite PowerShell ISE Feature: Script Analyzer

Doctor Scripto

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