Skip to content

Commit 341c187

Browse files
authored
Merge pull request #11948 from MicrosoftDocs/main
3/24/2025 PM Publish
2 parents 2ae4886 + 9821baa commit 341c187

File tree

1,506 files changed

+10134
-9979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,506 files changed

+10134
-9979
lines changed

reference/5.1/CimCmdlets/Get-CimAssociatedInstance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $disk = Get-CimInstance -ClassName Win32_LogicalDisk -KeyOnly
5757
Get-CimAssociatedInstance -InputObject $disk[1]
5858
```
5959

60-
This set of commands retrieves the instances of the class named Win32_LogicalDisk and stores the
60+
This set of commands retrieves the instances of the class named **Win32_LogicalDisk** and stores the
6161
information in a variable named `$disk` using the `Get-CimInstance` cmdlet. The first logical disk
6262
instance in the variable is then used as the input object for the `Get-CimAssociatedInstance` cmdlet
6363
to get all the associated CIM instances of the specified CIM instance.
@@ -200,7 +200,7 @@ Accept wildcard characters: False
200200

201201
### -Namespace
202202

203-
Specifies the namespace for the CIM operation. The default namespace is root/cimv2.
203+
Specifies the namespace for the CIM operation. The default namespace is **root/CIMV2**.
204204

205205
> [!NOTE]
206206
> You can use tab completion to browse the list of namespaces, because PowerShell gets a list of
@@ -254,11 +254,11 @@ A URI consists of a prefix and a path to a resource. For example:
254254
By default, if you don't specify this parameter, the DMTF standard resource URI
255255
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
256256

257-
**ResourceURI** can only be used with CIM sessions created using the WSMan protocol, or when
257+
**ResourceUri** can only be used with CIM sessions created using the WSMan protocol, or when
258258
specifying the **ComputerName** parameter, which creates a CIM session using WSMan. If you specify
259259
this parameter without specifying the **ComputerName** parameter, or if you specify a CIM session
260260
created using DCOM protocol, you get an error, because the DCOM protocol doesn't support the
261-
**ResourceURI** parameter.
261+
**ResourceUri** parameter.
262262

263263
If both the **ResourceUri** parameter and the **Filter** parameter are specified, the **Filter**
264264
parameter is ignored.
@@ -284,7 +284,7 @@ name.
284284
By default, the value of this parameter is null, and all associated CIM instances are returned.
285285

286286
You can filter the association results to match a specific class name. Filtering happens on the
287-
server. If this parameter isn't specified, `Get-CIMAssociatedInstance` returns all existing
287+
server. If this parameter isn't specified, `Get-CimAssociatedInstance` returns all existing
288288
associations. For example, if class A is associated with classes B, C and D, then this parameter can
289289
be used to restrict the output to a specific type (B, C or D).
290290

reference/5.1/CimCmdlets/Get-CimClass.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ instance, CIM classes do not contain the CIM session or computer name from which
4141

4242
### Example 1: Get all the class definitions
4343

44-
This example gets all the class definitions under the namespace **root/cimv2**.
44+
This example gets all the class definitions under the namespace **root/CIMV2**.
4545

4646
```powershell
4747
Get-CimClass
4848
```
4949

5050
### Example 2: Get the classes with a specific name
5151

52-
This example gets the classes that contain the word **disk** in their names.
52+
This example gets the classes that contain the word **Disk** in their names.
5353

5454
```powershell
55-
Get-CimClass -ClassName *disk*
55+
Get-CimClass -ClassName *Disk*
5656
```
5757

5858
### Example 3: Get the classes with a specific method name
@@ -85,26 +85,26 @@ Get-CimClass -ClassName Win32*Disk* -QualifierName Association
8585
### Example 6: Get the class definitions from a specific namespace
8686

8787
This example gets the class definitions that contain the word **Net** in their names from the
88-
specified namespace **root/standardCimv2**.
88+
specified namespace **root/StandardCimv2**.
8989

9090
```powershell
91-
Get-CimClass -Namespace root/standardCimv2 -ClassName *Net*
91+
Get-CimClass -Namespace root/StandardCimv2 -ClassName *Net*
9292
```
9393

9494
### Example 7: Get the class definitions from a remote server
9595

96-
This example gets the class definitions that contain the word **disk** in their names from the
96+
This example gets the class definitions that contain the word **Disk** in their names from the
9797
specified remote servers **Server01** and **Server02**.
9898

9999
```powershell
100-
Get-CimClass -ClassName *disk* -ComputerName Server01, Server02
100+
Get-CimClass -ClassName *Disk* -ComputerName Server01, Server02
101101
```
102102

103103
### Example 8: Get the classes by using a CIM session
104104

105105
```powershell
106106
$s = New-CimSession -ComputerName Server01, Server02
107-
Get-CimClass -ClassName *disk* -CimSession $s
107+
Get-CimClass -ClassName *Disk* -CimSession $s
108108
```
109109

110110
This set of commands creates a session with multiple computers and stores it into a variable `$s`
@@ -193,7 +193,7 @@ Accept wildcard characters: True
193193
194194
### -Namespace
195195
196-
Specifies the namespace for CIM operation. The default namespace is **root/cimv2**. You can use tab
196+
Specifies the namespace for CIM operation. The default namespace is **root/CIMV2**. You can use tab
197197
completion to browse the list of namespaces, because PowerShell gets a list of namespaces from the
198198
local WMI server to provide the list of namespaces.
199199

reference/5.1/CimCmdlets/Get-CimInstance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Get-CimInstance -ClassName Win32_Process
111111

112112
### Example 2: Get a list of namespaces from a WMI server
113113

114-
This example retrieves a list of namespaces under the **Root** namespace on a WMI server.
114+
This example retrieves a list of namespaces under the **root** namespace on a WMI server.
115115

116116
```powershell
117117
Get-CimInstance -Namespace root -ClassName __Namespace
@@ -144,7 +144,7 @@ a CIM instance to the `Get-CimInstance` cmdlet to get a particular instance.
144144
```powershell
145145
$instance = @{
146146
ClassName = 'Win32_Process'
147-
Namespace = 'root\cimv2'
147+
Namespace = 'root/CIMV2'
148148
Properties = @{
149149
Handle = 0
150150
}
@@ -349,7 +349,7 @@ Accept wildcard characters: False
349349

350350
Specifies the namespace of CIM class.
351351

352-
The default namespace is **root/cimv2**. You can use tab completion to browse the list of
352+
The default namespace is **root/CIMV2**. You can use tab completion to browse the list of
353353
namespaces, because PowerShell gets a list of namespaces from the local WMI server to provide the
354354
list of namespaces.
355355

@@ -463,11 +463,11 @@ A URI consists of a prefix and a path to a resource. For example:
463463
By default, if you do not specify this parameter, the DMTF standard resource URI
464464
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
465465

466-
**ResourceURI** can only be used with CIM sessions created using the WSMan protocol, or when
466+
**ResourceUri** can only be used with CIM sessions created using the WSMan protocol, or when
467467
specifying the **ComputerName** parameter, which creates a CIM session using WSMan. If you specify
468468
this parameter without specifying the **ComputerName** parameter, or if you specify a CIM session
469469
created using DCOM protocol, you will get an error, because the DCOM protocol does not support the
470-
**ResourceURI** parameter.
470+
**ResourceUri** parameter.
471471

472472
If both the **ResourceUri** parameter and the **Filter** parameter are specified, the **Filter**
473473
parameter is ignored.

reference/5.1/CimCmdlets/Get-CimSession.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Protocol : WSMAN
9494
### Example 3: Get a list of CIM sessions and then format the list
9595

9696
This example gets all CIM sessions in the current PowerShell session and displays a table containing
97-
only the **ComputerName** and **InstanceID** properties.
97+
only the **ComputerName** and **InstanceId** properties.
9898

9999
```powershell
100100
Get-CimSession | Format-Table -Property ComputerName, InstanceId
@@ -109,7 +109,7 @@ Server02 c0095981-52c5-4e7f-a5bb-c4c680541710
109109

110110
### Example 4: Get all the CIM sessions that have specific names
111111

112-
This example gets all CIM sessions that have names that begin with **serv**.
112+
This example gets all CIM sessions that have names that begin with **Serv**.
113113

114114
```powershell
115115
Get-CimSession -ComputerName Serv*

reference/5.1/CimCmdlets/Invoke-CimMethod.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ Invoke-CimMethod -ClassName Win32_Process -MethodName "Create" -Arguments @{
154154

155155
### Example 4: Client-side validation
156156

157-
This example performs client-side validation for the **xyz** method by passing a **CimClass** object
157+
This example performs client-side validation for the **Foo** method by passing a **CimClass** object
158158
to `Invoke-CimMethod`.
159159

160160
```powershell
161161
$c = Get-CimClass -ClassName Win32_Process
162-
Invoke-CimMethod -CimClass $c -MethodName "xyz" -Arguments @{CommandLine='notepad.exe'}
162+
Invoke-CimMethod -CimClass $c -MethodName "Foo" -Arguments @{CommandLine='notepad.exe'}
163163
```
164164

165165
## PARAMETERS
@@ -300,7 +300,7 @@ Accept wildcard characters: False
300300

301301
### -Namespace
302302

303-
Specifies the namespace for the CIM operation. The default namespace is **root/cimv2**. You can use
303+
Specifies the namespace for the CIM operation. The default namespace is **root/CIMV2**. You can use
304304
tab completion to browse the list of namespaces, because PowerShell gets a list of namespaces from
305305
the local WMI server to provide the list of namespaces.
306306

@@ -392,12 +392,12 @@ A URI consists of a prefix and a path to a resource. For example:
392392
By default, if you do not specify this parameter, the DMTF standard resource URI
393393
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
394394

395-
**ResourceURI** can only be used with CIM sessions created using the WSMan protocol, or when
395+
**ResourceUri** can only be used with CIM sessions created using the WSMan protocol, or when
396396
specifying the **ComputerName** parameter, which creates a CIM session using WSMan.
397397

398398
When you specify this parameter without specifying the **ComputerName** parameter, or when you
399399
specify a CIM session created using DCOM protocol, you get an error. The DCOM protocol does not
400-
support the **ResourceURI** parameter.
400+
support the **ResourceUri** parameter.
401401

402402
If both the **ResourceUri** parameter and the **Filter** parameter are specified, the **Filter**
403403
parameter is ignored.

reference/5.1/CimCmdlets/New-CimInstance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ instance on the local computer.
7373

7474
### Example 1: Create an instance of a CIM class
7575

76-
This example creates an instance of a CIM Class named win32_environment in the root/cimv2 namespace
77-
on the computer.
76+
This example creates an instance of a CIM Class named **Win32_Environment** in the **root/CIMV2**
77+
namespace on the computer.
7878

7979
```powershell
8080
$prop = @{
@@ -276,7 +276,7 @@ Accept wildcard characters: False
276276

277277
### -Namespace
278278

279-
Specifies the namespace of the class for the new instance. The default namespace is **root/cimv2**.
279+
Specifies the namespace of the class for the new instance. The default namespace is **root/CIMV2**.
280280
You can use tab completion to browse the list of namespaces, because PowerShell gets a list of
281281
namespaces from the local WMI server to provide the list of namespaces.
282282

@@ -348,11 +348,11 @@ A URI consists of a prefix and a path to a resource. For example:
348348
By default, if you do not specify this parameter, the DMTF standard resource URI
349349
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
350350

351-
**ResourceURI** can only be used with CIM sessions created using the WSMan protocol, or when
351+
**ResourceUri** can only be used with CIM sessions created using the WSMan protocol, or when
352352
specifying the **ComputerName** parameter, which creates a CIM session using WSMan. If you specify
353353
this parameter without specifying the **ComputerName** parameter, or if you specify a CIM session
354354
created using DCOM protocol, you will get an error, because the DCOM protocol does not support the
355-
**ResourceURI** parameter.
355+
**ResourceUri** parameter.
356356

357357
If both the **ResourceUri** parameter and the **Filter** parameter are specified, the **Filter**
358358
parameter is ignored.

reference/5.1/CimCmdlets/New-CimSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ New-CimSession -ComputerName Server01 -Port 1234
109109
This example creates a CIM session using the Distributed COM (DCOM) protocol instead of WSMan.
110110

111111
```powershell
112-
$SessionOption = New-CimSessionOption -Protocol DCOM
112+
$SessionOption = New-CimSessionOption -Protocol Dcom
113113
New-CimSession -ComputerName Server1 -SessionOption $SessionOption
114114
```
115115

reference/5.1/CimCmdlets/New-CimSessionOption.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ named `$so`. The contents of the variable are then passed to the `New-CimSession
6060
options defined in the variable.
6161

6262
```powershell
63-
$so = New-CimSessionOption -Protocol DCOM
63+
$so = New-CimSessionOption -Protocol Dcom
6464
New-CimSession -ComputerName Server01 -SessionOption $so
6565
```
6666

@@ -85,7 +85,7 @@ New-CimSessionOption @option
8585
### Example 3: Create a CIM session options object with the culture specified
8686

8787
```powershell
88-
New-CimSessionOption -Culture Fr-Fr -Protocol Wsman
88+
New-CimSessionOption -Culture fr-FR -Protocol Wsman
8989
```
9090

9191
This example specifies the culture that is used for the CIM session. By default, the culture of the
@@ -99,7 +99,7 @@ client is used when performing operations. However, the default culture can be o
9999
Specifies the user interface culture to use for the CIM session. Specify the value for this
100100
parameter using one of the following formats:
101101

102-
- A culture name in `<languagecode2>-<country/regioncode2>` format such as "EN-US".
102+
- A culture name in `<languagecode2>-<country/regioncode2>` format such as "en-US".
103103
- A variable that contains a **CultureInfo** object.
104104
- A command that gets a **CultureInfo** object, such as
105105
[Get-Culture](../Microsoft.PowerShell.Utility/Get-Culture.md)
@@ -266,7 +266,7 @@ Accept wildcard characters: False
266266

267267
### -Protocol
268268

269-
Specifies the protocol to use. The acceptable values for this parameter are: **DCOM**, **Default**,
269+
Specifies the protocol to use. The acceptable values for this parameter are: **Dcom**, **Default**,
270270
or **Wsman**.
271271

272272
```yaml
@@ -425,7 +425,7 @@ Accept wildcard characters: False
425425
Specifies the user interface culture to use for the CIM session. Specify the value for this
426426
parameter using one of the following formats:
427427

428-
- A culture name in `<languagecode2>-<country/regioncode2>` format such as "EN-US".
428+
- A culture name in `<languagecode2>-<country/regioncode2>` format such as "en-US".
429429
- A variable that contains a CultureInfo object.
430430
- A command that gets a CultureInfo object, such as `Get-Culture`.
431431

reference/5.1/CimCmdlets/Register-CimIndicationEvent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Accept wildcard characters: False
269269

270270
### -Namespace
271271

272-
Specifies the namespace for the CIM operation. The default namespace is **root/cimv2**. You can use
272+
Specifies the namespace for the CIM operation. The default namespace is **root/CIMV2**. You can use
273273
tab completion to browse the list of namespaces, because PowerShell gets a list of namespaces from
274274
the local WMI server to provide the list of namespaces.
275275

reference/5.1/CimCmdlets/Remove-CimInstance.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Accept wildcard characters: False
153153
154154
### -Namespace
155155
156-
Specifies the namespace for the CIM operation. The default namespace is `root/cimv2`. You can use
156+
Specifies the namespace for the CIM operation. The default namespace is **root/CIMV2**. You can use
157157
tab completion to browse the list of namespaces, because PowerShell gets a list of namespaces from
158158
the local WMI server to provide the list of namespaces.
159159
@@ -244,11 +244,11 @@ A URI consists of a prefix and a path to a resource. For example:
244244
By default, if you do not specify this parameter, the DMTF standard resource URI
245245
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
246246

247-
ResourceURI can only be used with CIM sessions created using the WSMan protocol, or when specifying
248-
the ComputerName parameter, which creates a CIM session using WSMan. If you specify this parameter
249-
without specifying the ComputerName parameter, or if you specify a CIM session created using DCOM
250-
protocol, you get an error, because the DCOM protocol does not support the **ResourceURI**
251-
parameter.
247+
**ResourceUri** can only be used with CIM sessions created using the WSMan protocol, or when
248+
specifying the **ComputerName** parameter, which creates a CIM session using WSMan. If you specify
249+
this parameter without specifying the **ComputerName** parameter, or if you specify a CIM session
250+
created using DCOM protocol, you get an error, because the DCOM protocol does not support the
251+
**ResourceUri** parameter.
252252

253253
If both the **ResourceUri** parameter and the **Filter** parameter are specified, the **Filter**
254254
parameter is ignored.

0 commit comments

Comments
 (0)