Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Export-FormatData

Export-FormatData - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Saves formatting data from the current session in a formatting file.

Export-FormatData [-Force] [-IncludeScriptBlock] [-InputObject <ExtendedTypeDefinition[]>] [-NoClobber] [-Path <str
    ing>] [<CommonParameters>]

The Export-FormatData cmdlet creates Windows PowerShell formatting files (format.ps1xml) from the formatting object
    s in the current session. It takes the ExtendedTypeDefinition objects that Get-FormatData returns and saves them in
     a file in XML format.   
    Windows PowerShell uses the data in formatting files (format.ps1xml) to generate the default display of Microsoft .
    NET Framework objects in the session. You can view and edit the formatting files and use the Update-FormatData cmdl
    et to add the formatting data to a session.
    For more information about formatting files in Windows PowerShell, see about_Format.ps1xml.