Export-BinaryMiLog

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>]

Detaillierte Beschreibung

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.

Parameter

-InputObject<CimInstance>

Gibt die Eingabe für dieses Cmdlet an. Sie können diesen Parameter verwenden oder die Eingabe über die Pipeline an dieses Cmdlet übergeben.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByValue)

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

true

Position?

1

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

-------------------------- 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

Verwandte Themen

Import-BinaryMILog