Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Export-BinaryMiLog

Export-BinaryMiLog

microsoft.management.infrastructure.cimcmdlets.dll

Synopsis

Creates a binary encoded representation of an object or objects and stores it in a file.

Syntax

Export-BinaryMiLog [-Path] [-InputObject] [<CommonParameters>]

Detailed Description

The Export-BinaryMILog cmdlet creates an binary-based representation of an object or objects and stores it in a file. You can then use the Import-BinaryMILog cmdlet to re-create the saved object based on the contents of that file.

This cmdlet is similar to Import-CliXML, except that Export-BinaryMILog stores the resulting object in a binary encoded file.

Parameters

-InputObject <CimInstance>

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-Path <String>

Specifies the path to the file where the binary representation of the object will be stored.

The Path parameter supports wild cards and relative paths. The cmdlet generates an error if the path resolves to more than one file.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

This example exports CimInstances to a binary MI log file specified by the -Path parameter. See the example for Import-BinaryMILog to see how to recreate the CimInstances by importing this file.

PS C:\> Get-CimInstance Win32_Process | Export-BinaryMiLog -Path Processes.bmil

Online Version
Import-BinaryMILog