Quantcast
Channel: PowerShell Archives • The Lonely Administrator
Browsing all 261 articles
Browse latest View live

Enhancing PSVersionTable

Not too long ago I posted a PowerShell function that could provide detail abut the PowerShell engine driving your current PowerShell session. I like having a function that writes an object to the...

View Article


Get Git with PowerShell

If you are creating PowerShell scripts, tools or modules today, you are most likely using Git. What? You’re not? Is it because you haven’t gotten around to installing it? I have some “quick and dirty”...

View Article


PowerShell Pop Quiz

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

View Article

PowerShell Reminders now in Beta

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

View Article

Are You My Type?

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

View Article


Adding Efficiency with PowerShell Type Extensions

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

View Article

Managing the PSReadline History File

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

View Article

Sending Files to Your Browser with PowerShell

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

View Article


Extending Hyper-V with PowerShell

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

View Article


Extending PowerShell with Custom Property Sets

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

View Article

A PowerShell Module for your Type Extensions

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

View Article

Who is Running Your PowerShell Script?

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

View Article

Friday Fun: A Long Time Ago in a PowerShell Universe Far, Far Away

With the upcoming release of the next Star Wars movie, I thought I would revisit my PowerShell script that generates your Star Wars universe name. Sure, it is contrived and completely impractical, but...

View Article


A PowerShell Countdown Timer

The other day, during one of the monthly #PSTweetChat sessions, I exchanged some tweets with Joshua King. We got on the topic of countdown timers and he shared some code he uses for his YouTube...

View Article

A PowerShell Input Tool

In PowerShell, the primary means to get interactive input from a user is with the Read-Host cmdlet. There’s nothing wrong with it but sometimes if you are using it in a graphical tool like the...

View Article


New PowerShell Projects Published

Last week I published a few of the recent PowerShell modules I’ve been working on to the PowerShell Gallery. These projects had been in a beta phase while I worked out some last minute features. I was...

View Article

Extending PowerShell DateTime Objects

I’ve been experimenting more with my PSTypeExtensionTools module, finding more objects to enhance.  You can check out the project on Github and install the module from the PowerShell Gallery. My...

View Article


A PowerShell DNS Suffix Tool

The other day my good friend Greg Shields asked for a little assistance with a PowerShell problem. He was trying to use PowerShell to set the primary DNS suffix for a computer. This  is different than...

View Article

Email Reminders for PowerShell Tasks

I’ve published a new version of the myTasks module to the PowerShell Gallery and its GitHub repository. The big change is that the current version has a feature to send you a daily email with tasks...

View Article

Extending VSCode with PowerShell

Last year I made a conscious decision to jump into VS Code as my primary PowerShell development tool. I had spent years tweaking and customizing the PowerShell ISE so I was a little concerned about the...

View Article
Browsing all 261 articles
Browse latest View live