Export-BinaryMiLog
Export-BinaryMiLog
Creates a binary encoded representation of an object or objects and stores it in a file.
Sintaxis
Parameter Set: Default
Export-BinaryMiLog [-Path] <String> [-InputObject <CimInstance> ] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-InputObject<CimInstance>
Especifica la entrada para este cmdlet. Puede usar este parámetro o puede canalizar la entrada a este cmdlet.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
-------------------------- 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
Temas relacionados
Import-BinaryMILog