Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions reference/7.5/CimCmdlets/Get-CimAssociatedInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Accept wildcard characters: False

Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
a command that creates or gets the CIM session, such as `New-CimSession` or `Get-CimSession`. For
more information, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
more information, see [about_CimSession][01].

```yaml
Type: Microsoft.Management.Infrastructure.CimSession[]
Expand Down Expand Up @@ -306,8 +306,7 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][02].

## INPUTS

Expand All @@ -332,6 +331,10 @@ This cmdlet is only available on Windows platforms.

## RELATED LINKS

[Get-CimClass](get-cimclass.md)
[Get-CimClass](Get-CimClass.md)

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

<!-- link references -->
[01]: ../Microsoft.PowerShell.Core/About/about_CimSession.md
[02]: https://go.microsoft.com/fwlink/?LinkID=113216
6 changes: 4 additions & 2 deletions reference/7.5/CimCmdlets/Get-CimClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ Accept wildcard characters: True

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][01].

## INPUTS

Expand All @@ -319,3 +318,6 @@ This cmdlet is only available on Windows platforms.
## RELATED LINKS

[New-CimSession](New-CimSession.md)

<!-- link references -->
[01]: https://go.microsoft.com/fwlink/?LinkID=113216
30 changes: 17 additions & 13 deletions reference/7.5/CimCmdlets/Get-CimInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ the key property `@{ "Handle"=0 }` and stores it in a variable named `$x`. The v
a CIM instance to the `Get-CimInstance` cmdlet to get a particular instance.

```powershell
$x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{ "Handle"=0 } -Key Handle -ClientOnly
$x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{"Handle"=0} -Key Handle -ClientOnly
Get-CimInstance -CimInstance $x
```

Expand All @@ -156,7 +156,7 @@ the variables `$x` and `$y`. The variable `$x` is then formatted in a table cont

```powershell
$x,$y = Get-CimInstance -ClassName Win32_Process
$x | Format-Table -Property Name,KernelModeTime -AutoSize
$x | Format-Table -Property Name, KernelModeTime -AutoSize
```

```Output
Expand All @@ -171,7 +171,7 @@ This example retrieves the CIM instances of a class named **Win32_ComputerSystem
computers named **Server01** and **Server02**.

```powershell
Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01,Server02
Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01, Server02
```

### Example 8: Getting only the key properties, instead of all properties
Expand All @@ -190,8 +190,8 @@ This example retrieves only a subset of properties, which reduces the size of th
traffic.

```powershell
Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime
$x = Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime
Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime
$x = Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime
$x | Invoke-CimMethod -MethodName GetOwner
```

Expand All @@ -206,7 +206,7 @@ the variable are then passed to `Get-CimInstance` by using the **CimSession** pa
CIM instances of the class named **Win32_ComputerSystem**.

```powershell
$s = New-CimSession -ComputerName Server01,Server02
$s = New-CimSession -ComputerName Server01, Server02
Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s
```

Expand All @@ -216,7 +216,7 @@ Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s

Specifies the CIM session to use for this cmdlet. Enter a variable that contains the CIM session or
a command that creates or gets the CIM session, such as the `New-CimSession` or `Get-CimSession`
cmdlets. For more information, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
cmdlets. For more information, see [about_CimSession][01].

```yaml
Type: Microsoft.Management.Infrastructure.CimSession[]
Expand Down Expand Up @@ -322,8 +322,8 @@ Accept wildcard characters: False
Indicates that only objects with key properties populated are returned. Specifying the **KeyOnly**
parameter reduces the amount of data transferred over the network.

Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for other
operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets.
Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for
other operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -497,7 +497,7 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][02].

## INPUTS

Expand All @@ -523,18 +523,22 @@ This cmdlet is only available on Windows platforms.

## RELATED LINKS

[Format-Table](../microsoft.powershell.utility/format-table.md)
[Format-Table](../Microsoft.Powershell.Utility/Format-Table.md)

[Get-CimAssociatedInstance](Get-CimAssociatedInstance.md)

[Get-CimClass](Get-CimClass.md)

[Invoke-CimMethod](invoke-cimmethod.md)
[Invoke-CimMethod](Invoke-CimMethod.md)

[New-CimInstance](New-CimInstance.md)

[Register-CimIndicationEvent](Register-CimIndicationEvent.md)

[Remove-CimInstance](remove-ciminstance.md)
[Remove-CimInstance](Remove-CimInstance.md)

[Set-CimInstance](Set-CimInstance.md)

<!-- link references -->
[01]: ../Microsoft.PowerShell.Core/About/about_CimSession.md
[02]: https://go.microsoft.com/fwlink/?LinkID=113216
29 changes: 18 additions & 11 deletions reference/7.5/CimCmdlets/Get-CimSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ can use the parameters of `Get-CimSession` to get the sessions that are for part
you can identify sessions by their names or other identifiers. `Get-CimSession` does not get CIM
sessions that were created in other PowerShell sessions or that were created on other computers.

For more information about CIM sessions, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
For more information about CIM sessions, see [about_CimSession][01].

## EXAMPLES

### Example 1: Get CIM sessions from the current PowerShell session

This example creates CIM sessions using [New-CimSession](New-CimSession.md), and then gets the CIM
This example creates CIM sessions using [New-CimSession][02], and then gets the CIM
sessions using `Get-CimSession`.

```powershell
New-CimSession -ComputerName Server01,Server02
New-CimSession -ComputerName Server01, Server02
Get-CimSession
```

Expand Down Expand Up @@ -98,7 +98,7 @@ This example gets all CIM sessions in the current PowerShell session and display
only the **ComputerName** and **InstanceID** properties.

```powershell
Get-CimSession | Format-Table -Property ComputerName,InstanceId
Get-CimSession | Format-Table -Property ComputerName, InstanceId
```

```Output
Expand Down Expand Up @@ -171,7 +171,7 @@ Specifies the identifier of the CIM session to get. For multiple IDs, use commas
or use the range operator (`..`) to specify a range of IDs. An **Id** is an integer that uniquely
identifies the CIM session within the current PowerShell session.

For more information about the range operator, see [about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md).
For more information about the range operator, see [about_Operators][03].

```yaml
Type: System.UInt32[]
Expand Down Expand Up @@ -228,8 +228,7 @@ Accept wildcard characters: True

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][04].

## INPUTS

Expand All @@ -254,10 +253,18 @@ This cmdlet is only available on Windows platforms.

## RELATED LINKS

[Format-Table](../microsoft.powershell.utility/format-table.md)
[Format-Table][05]

[New-CimSession](New-CimSession.md)
[New-CimSession][02]

[Remove-CimSession](remove-cimsession.md)
[Remove-CimSession][06]

[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md)
[about_CimSession][01]

<!-- link references -->
[01]: ../Microsoft.PowerShell.Core/About/about_CimSession.md
[02]: New-CimSession.md
[03]: ../Microsoft.PowerShell.Core/About/about_Operators.md
[04]: https://go.microsoft.com/fwlink/?LinkID=113216
[05]: ../Microsoft.Powershell.Utility/Format-Table.md
[06]: Remove-CimSession.md
16 changes: 9 additions & 7 deletions reference/7.5/CimCmdlets/Invoke-CimMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ to `Invoke-CimMethod`.

```powershell
$c = Get-CimClass -ClassName Win32_Process
Invoke-CimMethod -CimClass $c -MethodName "xyz" -Arguments @{ CommandLine = 'notepad.exe' }
Invoke-CimMethod -CimClass $c -MethodName "xyz" -Arguments @{CommandLine = 'notepad.exe'}
```

## PARAMETERS
Expand Down Expand Up @@ -202,8 +202,7 @@ Accept wildcard characters: False

Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
a command that creates or gets the CIM session, such as the `New-CimSession` or `Get-CimSession`
cmdlets. For more information, see
[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
cmdlets. For more information, see [about_CimSession][01].

```yaml
Type: Microsoft.Management.Infrastructure.CimSession[]
Expand Down Expand Up @@ -446,8 +445,7 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][02].

## INPUTS

Expand Down Expand Up @@ -476,10 +474,14 @@ This cmdlet is only available on Windows platforms.

## RELATED LINKS

[Get-CimClass](get-cimclass.md)
[Get-CimClass](Get-CimClass.md)

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

[Get-CimSession](Get-CimSession.md)

[New-CimSession](New-CimSession.md)

<!-- link references -->
[01]: ../Microsoft.PowerShell.Core/About/about_CimSession.md
[02]: ../Microsoft.PowerShell.Core/About/about_CommonParameters.md
24 changes: 13 additions & 11 deletions reference/7.5/CimCmdlets/New-CimInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ Accept wildcard characters: False

Runs the command using the specified CIM session. Enter a variable that contains the CIM session, or
a command that creates or gets the CIM session, such as the `New-CimSession` or `Get-CimSession`
cmdlets. For more information, see
[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
cmdlets. For more information, see [about_CimSession][01].

```yaml
Type: Microsoft.Management.Infrastructure.CimSession[]
Expand Down Expand Up @@ -277,10 +276,10 @@ Accept wildcard characters: False

Specifies the amount of time that the cmdlet waits for a response from the CIM server. By default,
the value of this parameter is 0, which means that the cmdlet uses the default timeout value for the
server. If the **OperationTimeoutSec** parameter is set to a value less than the robust connection retry
timeout of 3 minutes, network failures that last more than the value of the **OperationTimeoutSec**
parameter are not recoverable, because the operation on the server times out before the client can
reconnect.
server. If the **OperationTimeoutSec** parameter is set to a value less than the robust connection
retry timeout of 3 minutes, network failures that last more than the value of the
**OperationTimeoutSec** parameter are not recoverable, because the operation on the server times
out before the client can reconnect.

```yaml
Type: System.UInt32
Expand Down Expand Up @@ -386,8 +385,7 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters][02].

## INPUTS

Expand All @@ -412,10 +410,14 @@ This cmdlet is only available on Windows platforms.

## RELATED LINKS

[Get-CimClass](get-cimclass.md)
[Get-CimClass](Get-CimClass.md)

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

[Remove-CimInstance](remove-ciminstance.md)
[Remove-CimInstance](Remove-CimInstance.md)

[Set-CimInstance](Set-CimInstance.md)

<!-- link references -->
[01]: ../Microsoft.PowerShell.Core/About/about_CimSession.md
[02]: ../Microsoft.PowerShell.Core/About/about_CommonParameters.md
Loading