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>]
説明
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 |
規定値: | None |
ワイルドカードのサポート: | False |
DontShow: | False |
パラメーター セット
(All)
配置: | 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 |
規定値: | None |
ワイルドカードのサポート: | True |
DontShow: | False |
パラメーター セット
(All)
配置: | 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.