< Back

Export-BinaryMiLog

Tue Jan 29, 2019 10:14 pm

NAME Export-BinaryMiLog



SYNOPSIS

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





SYNTAX

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





DESCRIPTION

The Export-BinaryMILog cmdlet creates a 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.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Path <String>

Specifies the path of the file in which to store the binary representation of the object.



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



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, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









Example 1: Create a binary representation of CimInstances



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



This command 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.







RELATED LINKS

Online Version:

Get-CimInstance

Import-BinaryMiLog