Get-FormatData

Save formatting data from the current session to a file.

Syntax
      Get-FormatData [[-TypeName] string[]] [CommonParameters] 

Key:
   -TypeName string[]
       Get only the formatting data with the specified type names.
       Enter the type names. Wildcards are permitted.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Examples

Get all the formatting data in the session:

PS C:> get-formatdata

Get the formatting data items whose names begin with "Microsoft.Wsman":

PS C:> get-formatdata -typename Microsoft.Wsman*

Get a formatting data object and examine its properties:

PS C:> $f = get-formatdata -typename helpinfoshort
PS C:> $f

“What we imagine is order is merely the prevailing form of chaos” ~ Kerry Thornley

Related:

Export-FormatData - Save formatting data from the current session


© Copyright SS64.com 1999-2014
Some rights reserved