PowerTip: Remove Type Data with PowerShell

Doctor Scripto

Summary: Learn how to remove type data by using Windows PowerShell.

Hey, Scripting Guy! Question How can I remove a custom type data that is producing an error message when I try to update it
           in my Windows PowerShell session?

Hey, Scripting Guy! Answer Use the Get-TypeData cmdlet to retrieve an instance of the type data, and pipe it to the 
           Remove-TypeData cmdlet, for example:

"Microsoft.Management.Infrastructure.CimInstance#root/cimv2/Win32_Volume" |
Get-TypeData | Remove-TypeData

Note  This is a long single-line command that is broken at the pipeline character for readability.


Discussion is closed.

Feedback usabilla icon