Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ An expression was expected after '('.
The following examples work:

```
PS> 2uL.GetType().Name
PS> 2L.GetType().Name
Int64
PS> 1.234.GetType().Name
Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ An expression was expected after '('.
The following examples work:

```
PS> 2uL.GetType().Name
PS> 2L.GetType().Name
Int64
PS> 1.234.GetType().Name
Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ An expression was expected after '('.
The following examples work:

```
PS> 2uL.GetType().Name
PS> 2L.GetType().Name
Int64
PS> 1.234.GetType().Name
Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ An expression was expected after '('.
The following examples work:

```
PS> 2uL.GetType().Name
PS> 2L.GetType().Name
Int64
PS> 1.234.GetType().Name
Double
Expand Down
60 changes: 60 additions & 0 deletions reference/7/CimCmdlets/CimCmdlets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
ms.date: 02/20/2019
schema: 2.0.0
locale: en-US
keywords: powershell,cmdlet
Help Version: 6.1.0.1
Download Help Link: https://go.microsoft.com/fwlink/?linkid=855946
Module Guid: fb6cc51d-c096-4b38-b78d-0fed6277096a
Module Name: CimCmdlets
---
# CimCmdlets Module

## Description

Contains cmdlets that interact with Common Information Model (CIM) Servers like the Windows
Management Instrumentation (WMI) service.

## CimCmdlets Cmdlets

### [Export-BinaryMiLog](Export-BinaryMiLog.md)
Creates a binary encoded representation of an object or objects and stores it in a file.

### [Get-CimAssociatedInstance](Get-CimAssociatedInstance.md)
Retrieves the CIM instances that are connected to a specific CIM instance by an association.

### [Get-CimClass](Get-CimClass.md)
Gets a list of CIM classes in a specific namespace.

### [Get-CimInstance](Get-CimInstance.md)
Gets the CIM instances of a class from a CIM server.

### [Get-CimSession](Get-CimSession.md)
Gets the CIM session objects from the current session.

### [Import-BinaryMiLog](Import-BinaryMiLog.md)
Used to re-create the saved objects based on the contents of an export file.

### [Invoke-CimMethod](Invoke-CimMethod.md)
Invokes a method of a CIM class.

### [New-CimInstance](New-CimInstance.md)
Creates a CIM instance.

### [New-CimSession](New-CimSession.md)
Creates a CIM session.

### [New-CimSessionOption](New-CimSessionOption.md)
Specifies advanced options for the `New-CimSession` cmdlet.

### [Register-CimIndicationEvent](Register-CimIndicationEvent.md)
Subscribes to indications using a filter expression or a query expression.

### [Remove-CimInstance](Remove-CimInstance.md)
Removes a CIM instance from a computer.

### [Remove-CimSession](Remove-CimSession.md)
Removes one or more CIM sessions.

### [Set-CimInstance](Set-CimInstance.md)
Modifies a CIM instance on a CIM server by calling the **ModifyInstance** method of the CIM class.
94 changes: 94 additions & 0 deletions reference/7/CimCmdlets/Export-BinaryMiLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
ms.date: 02/20/2019
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
online version: http://go.microsoft.com/fwlink/?LinkId=301310
external help file: Microsoft.Management.Infrastructure.CimCmdlets.dll-Help.xml
---

# Export-BinaryMiLog

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

## SYNTAX

```powershell
Export-BinaryMiLog [-InputObject <CimInstance>] [-Path] <String>
```

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

## EXAMPLES

### Example 1 - Create a binary representation of CimInstances

```powershell
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.

## PARAMETERS

### -InputObject

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

```yaml
Type: CimInstance
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -Path

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.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```

## INPUTS

### Microsoft.Management.Infrastructure.CimInstance

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Get-CimInstance](get-ciminstance.md)

[Import-BinaryMiLog](import-binarymilog.md)

[Import-Clixml](../microsoft.powershell.utility/import-clixml.md)
Loading