@@ -144,7 +144,7 @@ the key property `@{ "Handle"=0 }` and stores it in a variable named `$x`. The v
144144a CIM instance to the ` Get-CimInstance ` cmdlet to get a particular instance.
145145
146146``` powershell
147- $x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{ "Handle"=0 } -Key Handle -ClientOnly
147+ $x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{"Handle"=0} -Key Handle -ClientOnly
148148Get-CimInstance -CimInstance $x
149149```
150150
@@ -156,7 +156,7 @@ the variables `$x` and `$y`. The variable `$x` is then formatted in a table cont
156156
157157``` powershell
158158$x,$y = Get-CimInstance -ClassName Win32_Process
159- $x | Format-Table -Property Name,KernelModeTime -AutoSize
159+ $x | Format-Table -Property Name, KernelModeTime -AutoSize
160160```
161161
162162``` Output
@@ -171,7 +171,7 @@ This example retrieves the CIM instances of a class named **Win32_ComputerSystem
171171computers named ** Server01** and ** Server02** .
172172
173173``` powershell
174- Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01,Server02
174+ Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01, Server02
175175```
176176
177177### Example 8: Getting only the key properties, instead of all properties
@@ -190,8 +190,8 @@ This example retrieves only a subset of properties, which reduces the size of th
190190traffic.
191191
192192``` powershell
193- Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime
194- $x = Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime
193+ Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime
194+ $x = Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime
195195$x | Invoke-CimMethod -MethodName GetOwner
196196```
197197
@@ -206,7 +206,7 @@ the variable are then passed to `Get-CimInstance` by using the **CimSession** pa
206206CIM instances of the class named ** Win32_ComputerSystem** .
207207
208208``` powershell
209- $s = New-CimSession -ComputerName Server01,Server02
209+ $s = New-CimSession -ComputerName Server01, Server02
210210Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s
211211```
212212
@@ -216,7 +216,8 @@ Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s
216216
217217Specifies the CIM session to use for this cmdlet. Enter a variable that contains the CIM session or
218218a command that creates or gets the CIM session, such as the ` New-CimSession ` or ` Get-CimSession `
219- cmdlets. For more information, see [ about_CimSession] ( ../Microsoft.PowerShell.Core/About/about_CimSession.md ) .
219+ cmdlets. For more information, see
220+ [ about_CimSession] ( ../Microsoft.PowerShell.Core/About/about_CimSession.md ) .
220221
221222``` yaml
222223Type : Microsoft.Management.Infrastructure.CimSession[]
@@ -322,8 +323,8 @@ Accept wildcard characters: False
322323Indicates that only objects with key properties populated are returned. Specifying the **KeyOnly**
323324parameter reduces the amount of data transferred over the network.
324325
325- Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for other
326- operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets.
326+ Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for
327+ other operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets.
327328
328329` ` ` yaml
329330Type: System.Management.Automation.SwitchParameter
@@ -497,7 +498,8 @@ Accept wildcard characters: False
497498
498499This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable,
499500-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
500- -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
501+ -WarningAction, and -WarningVariable. For more information, see
502+ [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
501503
502504# # INPUTS
503505
@@ -523,18 +525,18 @@ This cmdlet is only available on Windows platforms.
523525
524526# # RELATED LINKS
525527
526- [Format-Table](../microsoft.powershell.utility/format-table .md)
528+ [Format-Table](../Microsoft.Powershell.Utility/Format-Table .md)
527529
528530[Get-CimAssociatedInstance](Get-CimAssociatedInstance.md)
529531
530532[Get-CimClass](Get-CimClass.md)
531533
532- [Invoke-CimMethod](invoke-cimmethod .md)
534+ [Invoke-CimMethod](Invoke-CimMethod .md)
533535
534536[New-CimInstance](New-CimInstance.md)
535537
536538[Register-CimIndicationEvent](Register-CimIndicationEvent.md)
537539
538- [Remove-CimInstance](remove-ciminstance .md)
540+ [Remove-CimInstance](Remove-CimInstance .md)
539541
540542[Set-CimInstance](Set-CimInstance.md)
0 commit comments