Scripting Blog

A place to learn about PowerShell and share stories of automation

Use Inheritance in PowerShell 5 Classes

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using inheritance with Windows PowerShell 5.0 classes in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to talk about class inheritance with Windows PowerShell 5.0 in Windows 10. In Introduction to PowerShell 5 Classes, I talked about class design and I mentioned ...

PowerShell 5 Classes: Constructor Overloading

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using the new Windows PowerShell 5.0 class feature in Windows 10 and doing constructor overloading. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to talk about overloaded constructors. I know, I know, I know… It sounds like some sort of engineering failure. But that is ...

Adding Methods to PowerShell 5 Classes—The Video

Summary: Microsoft Scripting Guy, Ed Wilson, presents a video about adding methods to Windows PowerShell 5 classes in Windows 10.Microsoft Scripting Guy, Ed Wilson, is here. Today I am presenting a video where I talk about adding methods to Windows PowerShell 5.0 classes in Windows 10. To be honest, a class with no methods does not do too...

Create PowerShell 5 Classes with Enums—The Video

Summary: Microsoft Scripting Guy, Ed Wilson, presents a video about creating Windows PowerShell 5.0 classes by using enums in Windows 10.Microsoft Scripting Guy, Ed Wilson, is here. Today, I continue my video series about creating classes. I create a couple of enums and use them as types for my properties of the Car class.Note  For more ...

Weekend Scripter: Create a Simple PowerShell 5 Class—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video about adding members to Windows PowerShell 5.0 classes in Windows 10.Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video I made that illustrates how to create a simple Windows PowerShell 5.0 class. In the video, I cover using the Class and Static ...