Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Updated PowerShell Tools

Posted on August 14, 2020

I've released a new version of my popular PSScriptTools module, which you can install from the PowerShell Gallery. The module is collection of commands and tools that I use in my scripting and day-to-day work at a PowerShell console. Many of the commands run in Windows PowerShell and PowerShell 7, even on non-Windows systems. I thought I'd share some highlights in this new release.

Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial

Exclusive offer on ADManager Plus for US and UK regions. Claim now!

PSScriptTools Manual

I've written a lot of documentation, including help files, on the tools in this module. But I felt I could make it even easier to access them. The module includes a PDF file generated from all of my markdown documentation. I'llĀ  blog in the future about my process for building the PDF.

psscripttools-manualTo open the file all you need to do is run Open-PSScriptToolsHelp. The PDF should open with whatever application you have associated with PDF files. For me, that is FoxIt Reader. For some of you it might be Microsoft Edge. The file has a table of contents, links and cross-references.

Get-PSScriptTools

On a related note, I made a minor cosmetic change to how one of my commands works. The module includes a command called Get-PSScriptTools which displays a custom object about every command in the module. The custom object uses a custom format ps1xml file, also included in the module. The default output is to display command information in a table grouped by verb . I made a slight change to use ANSI to color the verb name.

get-psscripttoolsIt is a small thing, but personally, I like how the verb jumps out.

Get-ParameterInfo

I have had a command in the module called Get-ParameterInfo that makes it easier to look at parameter details for a command based on the output from Get-Command. This command also writes a custom object to the pipeline and has a custom format file. I tweaked the formatting file to improve the default display.

get-parameterinfoI might play with this formatting file in the future. It might be nice to make True mandatory values stand out.

Get-MyAlias

The last new feature is something that I've needed for awhile. Since I spend a lot of time at an interactive PowerShell prompt, I use aliases all the time to speed up my work. That's the whole point of aliases. But I have so many it is sometimes difficult to remember them all. And using Get-Alias requires some effort to see my aliases. Thus was born Get-MyAlias.

By default, the command will display all aliases in your current session that are not part of the initial or default runspace configuration.

get-myalias

And because I define a number of aliases in my PowerShell profile scripts, I wanted an easy way to retrieve them.

get-myalias-2

If you are curious on these commands you are welcome to checkout the module's Github repository. I'd love to know what you think or if any of the commands in the module are useful to you.

Have a great weekend.

 


Behind the PowerShell Pipeline

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to print (Opens in new window) Print
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

3 thoughts on “Updated PowerShell Tools”

  1. Pingback: ICYMI: PowerShell Week of 14-August-2020 | PowerShell.org
  2. Pingback: ICYMI: PowerShell Week of 14-August-2020 – 247 TECH
  3. Pingback: PowerShell SnippetRace 33-2020 | | PowerShell Usergroup Austria

Comments are closed.

reports

Powered by Buttondown.

Join me on Mastodon

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2025 The Lonely Administrator | Powered by SuperbThemes!
%d