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

New PowerShell Projects Published

Posted on December 18, 2017

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 also waiting to see if there were any issues reported by you that I might need to address. Nothing came up so I think we're good to go. Here's the new projects you can install from the PowerShell Gallery.

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!

PSTypeExtensionTools

This module contains a number of tools that make it easier to create and import type extensions. I first wrote about this project here.  With this command you can easily add an alias, scriptproperty, or scriptmethod, to an object type.

Add-PSTypeExtension -TypeName System.ServiceProcess.ServiceController -MemberType ScriptProperty -MemberName ProcessID -Value {
(Get-CimInstance -ClassName win32_service -filter "name='$($this.name)'").processID }

Now I can easily run a PowerShell command like this:

image

The big change to the module is that you can now export your custom type extensions to a ps1xml file. This way if your module needs some type extensions you can define them with the functions and then export to a ps1xml file. No need to for manual editing of XML.

Source code for the project is on GitHub at https://github.com/jdhitsolutions/PSTypeExtensionTools and you can install the latest version with Install-Module.

Install-Module PSTypeExtensionTools

PSScriptTools

The other PowerShell project that is now officially available is my PSScriptTools module.  This is a collection of commands designed to add functionality to your interactive PowerShell work and scripting. The module now includes some code from older scripts I had shared as gists on GitHub. Some of these are a PowerShell replacement for the More command called Out-More. A command to get details about the current PowerShell engine.

image

A command to parse out common locations which can come in handy when creating cross-platform scripts.

image

I also have incorporated my WPF input box function which now allows you to set a background color.

image

This too is now on the PowerShell Gallery.

image

Source code is on GitHub.

 

I hope you find these useful in your work and would love to know how they work out for you. If you encounter problems or have suggestions, please use the Issues section of the project's GitHub repository.


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

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