Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » Update-FormatData

Update-FormatData - Powershell 4.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 »

Update-FormatData

Short description
Updates the formatting data in the current session.

Syntax


Description
The Update-FormatData cmdlet reloads the formatting data from formatting files into the current session. This cmdlet 
lets 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 
parameters 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 
files 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 
installation directory ($pshome) into the session. You can use Update-FormatData to reload the formatting data into 
the current session without restarting Windows PowerShell. This is useful when you have added or changed a formatting 
file, but do not want to interrupt the session.


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