PowerShell Class — A Use Case For The Printers

Shawn Song
4 min readFeb 9, 2023

PowerShell Class is a not-very-well-known hidden gem among the admins. It’s not perfect, but the benefits are obvious when you find a place to adapt it.

Intro

Yes, PowerShell has been capable of defining classes since version 5.1, which was released on August 2nd, 2016, seven years ago!

Although classes are a fundamental aspect of all object-oriented programming languages, PowerShell is a “late adopter” in this regard, so many people may not be familiar with this feature or have even heard of it.

--

--