Subscribe: Jeff's Scripting Blog and More
Preview: Jeff's Scripting Blog and More

The Lonely Administrator

Advice for the automating IT Pro

Last Build Date: Tue, 21 Nov 2017 19:15:09 +0000


Who is Running Your PowerShell Script?

Tue, 21 Nov 2017 19:12:03 +0000

I’ve often talked about the benefit of including Verbose output in your PowerShell scripts and functions from the very beginning. This is especially helpful when someone else is running your command but encounters a problem. You can have them start a transcript, run your command with –Verbose, close the transcript and send it to you. […](image)

A PowerShell Module for your Type Extensions

Mon, 13 Nov 2017 14:02:32 +0000

If you’ve been following this blog recently, you’ve read about my fun with PowerShell type extensions. This technique lets you make PowerShell give you the information you want without a lot of work on your part. Well, there is some work but you only have to do it once. To make it even easier, I […](image)

Extending PowerShell with Custom Property Sets

Wed, 08 Nov 2017 14:21:30 +0000

If you’ve been following along on the blog recently you’ve read about my use of PowerShell type extensions. This is a way of adding new properties to things I use all the time. The goal is to save typing and get what I need with minimal effort. You can also take this a step further […](image)

Extending Hyper-V with PowerShell

Tue, 07 Nov 2017 14:43:31 +0000

Lately I’ve been writing about my use of PowerShell type extensions as a way to get more done quickly. Or at least give me the information I want with minimal effort. I use Hyper-V a great deal and the Hyper-V cmdlets are invaluable. And while a command like Get-VM provides a lot of information, I […](image)

Sending Files to Your Browser with PowerShell

Mon, 06 Nov 2017 13:10:21 +0000

Over the course of the last year I’ve been using markdown files much more, especially as part of the Platyps module. Even though I have a markdown editor and I can also preview files in VS Code, sometimes I want to see the file in my browser which has a markdown viewer plugin. Or I […](image)

Managing the PSReadline History File

Thu, 02 Nov 2017 14:26:36 +0000

It has taken some discipline but I have finally gotten the hang of using the command history file maintained by PSReadline. Even though Set-PSReadlineOption has a few options on how to use this file, in my experience I have felt the need to handle a few things on my own. Here’s my take. I have […](image)

Adding Efficiency with PowerShell Type Extensions

Tue, 31 Oct 2017 14:14:03 +0000

The other day I posted an article about custom properties which wrapped up with a look at Update-TypeData. The goal is not so much to make your scripts or modules easier to use, but rather to increase efficiency at the command prompt. When running commands interactively I want to get the information I need as […](image)

Are You My Type?

Thu, 26 Oct 2017 14:33:13 +0000

I am always stressing that PowerShell is all about the objects. If you keep this in mind, PowerShell is pretty easy to use. Get a bunch of things, and select the details that you want to see or work with. Out of the box PowerShell gives you some very rich objects to work with from […](image)

PowerShell Reminders now in Beta

Fri, 06 Oct 2017 13:57:40 +0000

For awhile now I’ve been working on a PowerShell project that I use every day. I am always in a PowerShell prompt and because I always seem to have little things like phone calls or family events that I need to keep track of, I wrote a “tickler” system. The events are stored in a […](image)

PowerShell Pop Quiz

Wed, 13 Sep 2017 17:02:29 +0000

I’m always looking for ways to help teach PowerShell and the other day I thought why not have PowerShell teach you itself? I have created a PowerShell script that dynamically generates a quiz on cmdlets and functions installed on your computer. In short the quiz question shows you a command synopsis and then presents a […](image)