Creating a custom PowerShell v5 DSC Resource
As we have progressed through this chapter, we have made some observations about PowerShell v4 DSC Resources. We have seen that DSC Resource MOF schema files are verbose and obtuse. CIM schemas requires many lines to express a simple parameter statement, and the wording used is confusingly different from the wording used inside the PowerShell scripts. Managing both MOF schema files and PowerShell scripts files with essentially the same information is ripe for human error and mistakes.
Microsoft listened to this feedback and came back with PowerShell v5 DSC class-based DSC Resources.
PowerShell v5 introduced a new feature called a PowerShell class. If you are familiar with programming ...