Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Remove Type Data with PowerShell

$
0
0

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.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>