PowerTip: Remove Type Data with PowerShell

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.

Comments (1)

  1. Great post. Thank you.

Skip to main content