Skip to content

Commit 3d67d8c

Browse files
authored
Markdown and PS Styles (#11707)
1 parent 307c929 commit 3d67d8c

12 files changed

+83
-59
lines changed

reference/7.4/CimCmdlets/CimCmdlets.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,57 @@ This module is only available on the Windows platform.
2020
## CimCmdlets Cmdlets
2121

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

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

2830
### [Get-CimClass](Get-CimClass.md)
31+
2932
Gets a list of CIM classes in a specific namespace.
3033

3134
### [Get-CimInstance](Get-CimInstance.md)
35+
3236
Gets the CIM instances of a class from a CIM server.
3337

3438
### [Get-CimSession](Get-CimSession.md)
39+
3540
Gets the CIM session objects from the current session.
3641

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

4046
### [Invoke-CimMethod](Invoke-CimMethod.md)
47+
4148
Invokes a method of a CIM class.
4249

4350
### [New-CimInstance](New-CimInstance.md)
51+
4452
Creates a CIM instance.
4553

4654
### [New-CimSession](New-CimSession.md)
55+
4756
Creates a CIM session.
4857

4958
### [New-CimSessionOption](New-CimSessionOption.md)
59+
5060
Specifies advanced options for the `New-CimSession` cmdlet.
5161

5262
### [Register-CimIndicationEvent](Register-CimIndicationEvent.md)
63+
5364
Subscribes to indications using a filter expression or a query expression.
5465

5566
### [Remove-CimInstance](Remove-CimInstance.md)
67+
5668
Removes a CIM instance from a computer.
5769

5870
### [Remove-CimSession](Remove-CimSession.md)
71+
5972
Removes one or more CIM sessions.
6073

6174
### [Set-CimInstance](Set-CimInstance.md)
75+
6276
Modifies a CIM instance on a CIM server by calling the **ModifyInstance** method of the CIM class.

reference/7.4/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.4/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.4/CimCmdlets/Get-CimSession.md

Lines changed: 9 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[]
@@ -225,6 +227,7 @@ Accept wildcard characters: True
225227
```
226228

227229
### CommonParameters
230+
228231
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
229232
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
230233
-WarningAction, and -WarningVariable. For more information, see
@@ -253,10 +256,10 @@ This cmdlet is only available on Windows platforms.
253256

254257
## RELATED LINKS
255258

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

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

260-
[Remove-CimSession](remove-cimsession.md)
263+
[Remove-CimSession](Remove-CimSession.md)
261264

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

reference/7.4/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.4/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.4/CimCmdlets/New-CimSession.md

Lines changed: 12 additions & 10 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
@@ -77,7 +76,7 @@ This example creates a remote CIM session to each of the computers specified by
7776
the comma separated list, and assigns a friendly name to the new sessions, by specifying **Name**.
7877

7978
```powershell
80-
New-CimSession -ComputerName Server01,Server02 -Name FileServers
79+
New-CimSession -ComputerName Server01, Server02 -Name FileServers
8180
Get-CimSession -Name File*
8281
```
8382

@@ -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: "User@Domain.com"
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.4/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)

0 commit comments

Comments
 (0)