Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Update-FormatData

Update-FormatData - 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 formatting data in the current session.

Update-FormatData [[-AppendPath] <String[]>] [-PrependPath <String[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

The Update-FormatData cmdlet reloads the formatting data from formatting files into the current session. This cmdlet le
ts you update the formatting data without restarting Windows PowerShell.

Without parameters, Update-FormatData reloads the formatting files that it loaded previously. You can use the parameter
s of Update-FormatData to add new formatting files to the session.

Formatting files are text files in XML format with the format.ps1xml file name extension. The formatting data in the fi
les defines the display of Microsoft .NET Framework objects in the session.

When Windows PowerShell starts, it loads the format data from the formatting files in the Windows PowerShell installati
on directory ($pshome) into the session. You can use Update-FormatData to reload the formatting data into the current s
ession without restarting Windows PowerShell. This is useful when you have added or changed a formatting file, but do n
ot want to interrupt the session.

For more information about formatting files in Windows PowerShell, see about_Format.ps1xml.