Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Update-TypeData

Update-TypeData - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Updates the extended type data in the session.

Update-TypeData [[-AppendPath] <String[]>] [-PrependPath <String[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
Update-TypeData [-DefaultDisplayProperty <String>] [-DefaultDisplayPropertySet <String[]>] [-DefaultKeyPropertySet <Str
ing[]>] [-Force] [-InheritPropertySerializationSet <Boolean>] [-MemberName <String>] [-MemberType <PSMemberTypes>] [-Pr
opertySerializationSet <String[]>] [-SecondValue <Object>] [-SerializationDepth <Int32>] [-SerializationMethod <String>
] [-StringSerializationSource <String>] [-TargetTypeForDeserialization <Type>] [-TypeAdapter <Type>] [-TypeConverter <T
ype>] [-Value <Object>] -TypeName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Update-TypeData [-TypeData] <TypeData[]> [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

The Update-TypeData cmdlet updates the extended type data in the session by reloading the Types.ps1xml files into memor
y and adding new extended type data.

By default, Windows PowerShell loads extended type data as it is needed. Without parameters, Update-TypeData reloads al
l of the Types.ps1xml files that it has loaded in the session, including any type files that you added. You can use the
 parameters of Update-TypeData to add new type files and add and replace extended type data.

The Update-TypeData cmdlet can be used to preload all type data. This feature is particularly useful when you are devel
oping types and want to load those new types for testing purposes.

Beginning in Windows PowerShell 3.0, you can use Update-TypeData to add and replace extended type data in the session w
ithout using a Types.ps1xml file. Type data that is added dynamically, that is, without a file, is added only to the cu
rrent session. To add the type data to all sessions, add an Update-TypeData command to your Windows PowerShell profile.
 For more information, see about_Profiles (

Also, beginning in Windows PowerShell 3.0, you can use the Get-TypeData cmdlet to get the extended types in the current
 session and the Remove-TypeData cmdlet to delete extended types from the current session.

For more information about the *types.ps1xml files in Windows PowerShell, see about_Types.ps1xml (