November 2018
Intermediate to advanced
566 pages
17h 15m
English
In the previous recipe, Understanding the extension of type data, we used the Update-TypeData cmdlet to add members. However, we said that the update was valid as long as the session was. Now, there are two ways by which we could make the type data stick across sessions:
The PowerShell profile is straightforward. However, usually, the type data extension and formatting rules are packaged as part of PowerShell modules, and adding code to the profile is not particularly helpful in that case. In this recipe, we will write a simple XML (.ps1xml) file that we will load so that we can extend the type data.
Read now
Unlock full access