Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Export-BinaryMiLog

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Export-BinaryMiLog

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

Syntax

Parameter Set: Default
Export-BinaryMiLog [-Path] <String> [-InputObject <CimInstance> ] [ <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

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

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

Related topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.