November 2018
Intermediate to advanced
566 pages
17h 15m
English
Custom types and formats are mostly used while creating custom modules. Rarely do administrators need to modify the types or formats for stock PowerShell modules. When you do need to modify custom types or formats, create a new PS1XML; do not modify the stock files, since they are digitally signed, and modifying them would break your setup.
Think of this PS1XML file as a regular XML file. Here is a simpler way of showing the structure. Remember that each type and each of the members within must have a name:
Types-- Type---- Members------ [The custom properties and methods you define]
In essence, using the XML for type extension is not very different from how we performed type extension in the previous recipe, except this uses ...
Read now
Unlock full access