Hey /r/PowerShell,
I have been trying to get into creating classes for my scripts lately and it occurred to me that some of you may be well ahead of me on this and may want to share some of your custom classes.
In the spirit of sharing i am going to provide two class examples. One that i have put a pretty large amount of work in and one that i just started.
https://github.com/hematic/Powershell-Custom-Classes
The [VM] Class has the capability to perform most of the tasks i do on VM’s in our environment. The class PS1 file also has examples on how to use each of the methods since Powershell currently does not support help inside classes.
The [ADUser] class is new and i just started on it yesterday.
I would love to see some other examples of classes people have been working on in there own environments.
-Hematic
submitted by /u/hematic
[link] [comments]
The post Custom Class Sharing Thread appeared first on How to Code .NET.