Skip to content

Commit 6da297a

Browse files
committed
Markdown and PS Styles
1 parent 3fbd79d commit 6da297a

11 files changed

+67
-58
lines changed

reference/7.5/CimCmdlets/Get-CimAssociatedInstance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,6 @@ This cmdlet is only available on Windows platforms.
332332

333333
## RELATED LINKS
334334

335-
[Get-CimClass](get-cimclass.md)
335+
[Get-CimClass](Get-CimClass.md)
336336

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

reference/7.5/CimCmdlets/Get-CimInstance.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ the key property `@{ "Handle"=0 }` and stores it in a variable named `$x`. The v
144144
a 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
148148
Get-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
171171
computers 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
190190
traffic.
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
206206
CIM instances of the class named **Win32_ComputerSystem**.
207207

208208
```powershell
209-
$s = New-CimSession -ComputerName Server01,Server02
209+
$s = New-CimSession -ComputerName Server01, Server02
210210
Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s
211211
```
212212

@@ -216,7 +216,8 @@ Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s
216216

217217
Specifies the CIM session to use for this cmdlet. Enter a variable that contains the CIM session or
218218
a 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
222223
Type: Microsoft.Management.Infrastructure.CimSession[]
@@ -322,8 +323,8 @@ Accept wildcard characters: False
322323
Indicates that only objects with key properties populated are returned. Specifying the **KeyOnly**
323324
parameter 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
329330
Type: System.Management.Automation.SwitchParameter
@@ -497,7 +498,8 @@ Accept wildcard characters: False
497498

498499
This 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)

reference/7.5/CimCmdlets/Get-CimSession.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ can use the parameters of `Get-CimSession` to get the sessions that are for part
4848
you can identify sessions by their names or other identifiers. `Get-CimSession` does not get CIM
4949
sessions that were created in other PowerShell sessions or that were created on other computers.
5050

51-
For more information about CIM sessions, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
51+
For more information about CIM sessions, see
52+
[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md).
5253

5354
## EXAMPLES
5455

@@ -58,7 +59,7 @@ This example creates CIM sessions using [New-CimSession](New-CimSession.md), and
5859
sessions using `Get-CimSession`.
5960

6061
```powershell
61-
New-CimSession -ComputerName Server01,Server02
62+
New-CimSession -ComputerName Server01, Server02
6263
Get-CimSession
6364
```
6465

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

100101
```powershell
101-
Get-CimSession | Format-Table -Property ComputerName,InstanceId
102+
Get-CimSession | Format-Table -Property ComputerName, InstanceId
102103
```
103104

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

174-
For more information about the range operator, see [about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md).
175+
For more information about the range operator, see
176+
[about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md).
175177

176178
```yaml
177179
Type: System.UInt32[]
@@ -254,10 +256,10 @@ This cmdlet is only available on Windows platforms.
254256

255257
## RELATED LINKS
256258

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

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

261-
[Remove-CimSession](remove-cimsession.md)
263+
[Remove-CimSession](Remove-CimSession.md)
262264

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

reference/7.5/CimCmdlets/Invoke-CimMethod.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ to `Invoke-CimMethod`.
155155

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

161161
## PARAMETERS
@@ -476,9 +476,9 @@ This cmdlet is only available on Windows platforms.
476476

477477
## RELATED LINKS
478478

479-
[Get-CimClass](get-cimclass.md)
479+
[Get-CimClass](Get-CimClass.md)
480480

481-
[Get-CimInstance](get-ciminstance.md)
481+
[Get-CimInstance](Get-CimInstance.md)
482482

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

reference/7.5/CimCmdlets/New-CimInstance.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ Accept wildcard characters: False
277277

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

285285
```yaml
286286
Type: System.UInt32
@@ -412,10 +412,10 @@ This cmdlet is only available on Windows platforms.
412412

413413
## RELATED LINKS
414414

415-
[Get-CimClass](get-cimclass.md)
415+
[Get-CimClass](Get-CimClass.md)
416416

417-
[Get-CimInstance](get-ciminstance.md)
417+
[Get-CimInstance](Get-CimInstance.md)
418418

419-
[Remove-CimInstance](remove-ciminstance.md)
419+
[Remove-CimInstance](Remove-CimInstance.md)
420420

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

reference/7.5/CimCmdlets/New-CimSession.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ title: New-CimSession
1010
# New-CimSession
1111

1212
## SYNOPSIS
13-
1413
Creates a CIM session.
1514

1615
## SYNTAX
@@ -68,7 +67,7 @@ This example creates a CIM session to each of the computers specified by **Compu
6867
comma separated list.
6968

7069
```powershell
71-
New-CimSession -ComputerName Server01,Server02,Server03
70+
New-CimSession -ComputerName Server01, Server02, Server03
7271
```
7372

7473
### Example 4: Create a CIM session with a friendly name
@@ -130,9 +129,9 @@ parameter are:
130129
- NtlmDomain
131130
- CredSsp
132131

133-
You cannot use the **NtlmDomain** authentication type for connection to the local computer. **CredSSP**
134-
authentication is available only in Windows Vista, Windows Server 2008, and later versions of
135-
Windows.
132+
You cannot use the **NtlmDomain** authentication type for connection to the local computer.
133+
**CredSSP** authentication is available only in Windows Vista, Windows Server 2008, and later
134+
versions of Windows.
136135

137136
> [!CAUTION]
138137
> Credential Security Service Provider (CredSSP) authentication is designed for commands that
@@ -166,7 +165,8 @@ To get a certificate thumbprint, use the
166165
[`Get-ChildItem`](../Microsoft.Powershell.Management/Get-ChildItem.md) cmdlets in the PowerShell
167166
Certificate Provider.
168167

169-
For more information, see [about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md).
168+
For more information, see
169+
[about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md).
170170

171171
```yaml
172172
Type: System.String
@@ -217,7 +217,8 @@ Specify the value for **Credential** using one of the following formats:
217217
- A user name: "User01"
218218
- A domain name and a user name: "Domain01\User01"
219219
- A user principal name: "[email protected]"
220-
- A PSCredential object, such as one returned by the [`Get-Credential`](../Microsoft.PowerShell.Security/Get-Credential.md) cmdlet.
220+
- A PSCredential object, such as one returned by the
221+
[`Get-Credential`](../Microsoft.PowerShell.Security/Get-Credential.md) cmdlet.
221222

222223
When you type a user name, you are prompted for a password.
223224

@@ -237,8 +238,9 @@ Accept wildcard characters: False
237238

238239
Specifies a friendly name for the CIM session.
239240

240-
You can use the name to refer to the CIM session when using other cmdlets, such as the [Get-CimSession](Get-CimSession.md) cmdlet.
241-
The name is not required to be unique to the computer or the current session.
241+
You can use the name to refer to the CIM session when using other cmdlets, such as the
242+
[Get-CimSession](Get-CimSession.md) cmdlet. The name is not required to be unique to the computer
243+
or the current session.
242244

243245
```yaml
244246
Type: System.String

reference/7.5/CimCmdlets/New-CimSessionOption.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ parameter using one of the following formats:
9595

9696
- A culture name in `<languagecode2>-<country/regioncode2>` format such as "EN-US".
9797
- A variable that contains a **CultureInfo** object.
98-
- A command that gets a **CultureInfo** object, such as [Get-Culture](../Microsoft.PowerShell.Utility/Get-Culture.md)
98+
- A command that gets a **CultureInfo** object, such as
99+
[Get-Culture](../Microsoft.PowerShell.Utility/Get-Culture.md)
99100

100101
```yaml
101102
Type: System.Globalization.CultureInfo
@@ -488,12 +489,12 @@ This cmdlet is only available on Windows platforms.
488489

489490
## RELATED LINKS
490491

491-
[Get-ChildItem](../microsoft.powershell.management/get-childitem.md)
492+
[Get-ChildItem](../Microsoft.Powershell.Management/Get-ChildItem.md)
492493

493-
[Get-Credential](../microsoft.powershell.security/get-credential.md)
494+
[Get-Credential](../Microsoft.Powershell.Security/Get-Credential.md)
494495

495-
[Get-Culture](../microsoft.powershell.utility/get-culture.md)
496+
[Get-Culture](../Microsoft.Powershell.Utility/Get-Culture.md)
496497

497-
[Get-Item](../microsoft.powershell.management/get-item.md)
498+
[Get-Item](../Microsoft.Powershell.Management/Get-Item.md)
498499

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

reference/7.5/CimCmdlets/Register-CimIndicationEvent.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ script block for **Action**, which uses the `$event` variable to access the even
9898
$action = {
9999
$name = $event.SourceEventArgs.NewEvent.ProcessName
100100
$id = $event.SourceEventArgs.NewEvent.ProcessId
101-
Write-Host -Object "New Process Started : Name = $name
102-
ID = $id"
101+
Write-Host -Object "New Process Started : Name = $name ID = $id"
103102
}
104103
Register-CimIndicationEvent -ClassName 'Win32_ProcessStartTrace' -SourceIdentifier "ProcessStarted" -Action $action
105104
```
106105

107-
For more information, see [Win32_ProcessStartTrace](/previous-versions/windows/desktop/krnlprov/win32-processstarttrace).
106+
For more information, see
107+
[Win32_ProcessStartTrace](/previous-versions/windows/desktop/krnlprov/win32-processstarttrace).
108108

109109
### Example 4: Register the events on a remote computer
110110

@@ -399,13 +399,13 @@ This cmdlet is only available on Windows platforms.
399399

400400
## RELATED LINKS
401401

402-
[Get-Event](../microsoft.powershell.utility/get-event.md)
402+
[Get-Event](../Microsoft.Powershell.Utility/Get-Event.md)
403403

404-
[Remove-Event](../microsoft.powershell.utility/remove-event.md)
404+
[Remove-Event](../Microsoft.Powershell.Utility/Remove-Event.md)
405405

406-
[Unregister-Event](../microsoft.powershell.utility/unregister-event.md)
406+
[Unregister-Event](../Microsoft.Powershell.Utility/Unregister-Event.md)
407407

408-
[Write-Host](../microsoft.powershell.utility/write-host.md)
408+
[Write-Host](../Microsoft.Powershell.Utility/Write-Host.md)
409409

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

reference/7.5/CimCmdlets/Remove-CimInstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,6 @@ This cmdlet is only available on Windows platforms.
329329

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

332-
[Get-CimInstance](get-ciminstance.md)
332+
[Get-CimInstance](Get-CimInstance.md)
333333

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

reference/7.5/CimCmdlets/Remove-CimSession.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ Specifies the ID of the CIM session to remove. Specify one or more IDs separated
126126
the range operator (`..`) to specify a range of IDs. An **Id** is an integer that uniquely
127127
identifies the CIM session in the current PowerShell session.
128128

129-
For more information about the range operator, see [about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md).
129+
For more information about the range operator, see
130+
[about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md).
130131

131132
```yaml
132133
Type: System.UInt32[]
@@ -146,7 +147,8 @@ Specifies the instance ID of the CIM session to remove. **InstanceId** is a Glob
146147
Identifier (GUID) that uniquely identifies a CIM session. The **InstanceId** is unique, even when
147148
you have multiple sessions running in PowerShell.
148149

149-
The **InstanceId** is stored in the **InstanceId** property of the object that represents a CIM session.
150+
The **InstanceId** is stored in the **InstanceId** property of the object that represents a CIM
151+
session.
150152

151153
```yaml
152154
Type: System.Guid[]

0 commit comments

Comments
 (0)