다음을 통해 공유


Export-BinaryMiLog

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

구문

Default (기본값)

Export-BinaryMiLog
    [-InputObject <CimInstance>]
    [-Path] <String>
    [<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.

예제

Example 1 - Create a binary representation of CimInstances

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.

매개 변수

-InputObject

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

매개 변수 속성

형식:CimInstance
Default value:None
와일드카드 지원:False
DontShow:False

매개 변수 집합

(All)
Position:Named
필수:False
파이프라인의 값:True
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

-Path

Specifies the path of the file in which to store the binary representation of the object. The Path parameter supports wildcards and relative paths. This cmdlet generates an error if the path resolves to more than one file.

매개 변수 속성

형식:String
Default value:None
와일드카드 지원:True
DontShow:False

매개 변수 집합

(All)
Position:0
필수:True
파이프라인의 값:False
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

입력

CimInstance

출력

Object