Skip to content

Commit 62a101d

Browse files
authored
Merge pull request #11694 from MicrosoftDocs/main
1/17/2025 PM Publish
2 parents da54d1b + 9be6a8c commit 62a101d

29 files changed

+279
-160
lines changed

.github/ISSUE_TEMPLATE/01-article.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ body:
3535
- "5.1"
3636
- "7.4"
3737
- "7.5"
38+
- "7.6"
3839
- type: textarea
3940
id: summary
4041
validations:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 01/03/2025
2+
ms.date: 01/17/2025
33
---
44
# PowerShell Documentation
55

@@ -30,6 +30,7 @@ The following list describes the main folders in this repository.
3030
- `5.1` - contains the cmdlet reference and about topics for PowerShell 5.1
3131
- `7.4` - contains the cmdlet reference and about topics for PowerShell 7.4
3232
- `7.5` - contains the cmdlet reference and about topics for PowerShell 7.5
33+
- `7.6` - contains the cmdlet reference and about topics for PowerShell 7.6
3334
- `bread` - contains the TOC used for breadcrumb navigation
3435
- `docs-conceptual` - contains the conceptual articles that are published to the Docs site. In
3536
general, the folder structure mirrors the Table of Contents (TOC).

reference/5.1/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ WindowsPowerShell/3.0" with slight variations for each operating system and plat
635635

636636
To test a website with the standard user agent string that is used by most Internet browsers, use
637637
the properties of the [PSUserAgent](/dotnet/api/microsoft.powershell.commands) class, such as
638-
Chrome, FireFox, Internet Explorer, Opera, and Safari.
638+
Chrome, Firefox, Internet Explorer, Opera, and Safari.
639639

640640
```yaml
641641
Type: System.String

reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ each operating system and platform.
671671

672672
To test a website with the standard user agent string that is used by most Internet browsers, use
673673
the properties of the [PSUserAgent](/dotnet/api/microsoft.powershell.commands.psuseragent) class,
674-
such as Chrome, FireFox, InternetExplorer, Opera, and Safari. For example, the following command
674+
such as Chrome, Firefox, InternetExplorer, Opera, and Safari. For example, the following command
675675
uses the user agent string for Internet Explorer:
676676
`Invoke-WebRequest -Uri https://website.com/ -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer)`
677677

reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ variations for each operating system and platform.
14191419

14201420
To test a website with the standard user agent string that is used by most internet browsers, use
14211421
the properties of the [PSUserAgent](/dotnet/api/microsoft.powershell.commands.psuseragent) class,
1422-
such as Chrome, FireFox, InternetExplorer, Opera, and Safari.
1422+
such as Chrome, Firefox, InternetExplorer, Opera, and Safari.
14231423

14241424
```yaml
14251425
Type: System.String

reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ variations for each operating system and platform.
13961396

13971397
To test a website with the standard user agent string that's used by most internet browsers, use the
13981398
properties of the [PSUserAgent](/dotnet/api/microsoft.powershell.commands.psuseragent) class, such
1399-
as Chrome, FireFox, InternetExplorer, Opera, and Safari.
1399+
as Chrome, Firefox, InternetExplorer, Opera, and Safari.
14001400

14011401
For example, the following command uses the user agent string for Internet Explorer:
14021402
`Invoke-WebRequest -Uri https://website.com/ -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer)`

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

0 commit comments

Comments
 (0)