Skip to content

Commit 3436024

Browse files
committed
Minor edits to pre-77 content
1 parent 9fc54e7 commit 3436024

File tree

5 files changed

+55
-117
lines changed

5 files changed

+55
-117
lines changed

reference/7.4/Microsoft.PowerShell.Utility/ConvertTo-Json.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 12/12/2022
5+
ms.date: 04/08/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/convertto-json?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ConvertTo-Json
@@ -28,18 +28,19 @@ The `ConvertTo-Json` cmdlet converts any .NET object to a string in JavaScript O
2828
property values, and the methods are removed.
2929

3030
> [!NOTE]
31-
> As of PowerShell 7.2, Extended Type System properties of **DateTime** and
32-
> **String** objects are no longer serialized and only the simple object is
33-
> converted to JSON format
31+
> As of PowerShell 7.2, Extended Type System properties of **DateTime** and **String** objects are
32+
> no longer serialized and only the simple object is converted to JSON format
3433
35-
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON
36-
object, which is easily managed in PowerShell.
34+
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON object,
35+
which is easily managed in PowerShell.
3736

3837
Many web sites use JSON instead of XML to serialize data for communication between servers and
3938
web-based apps.
4039

41-
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds
42-
the depth specified for the command. This prevents unwanted data loss when converting objects.
40+
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds the
41+
depth specified for the command. This prevents unwanted data loss when converting objects.
42+
43+
As of PowerShell 7.5, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON numbers.
4344

4445
This cmdlet was introduced in Windows PowerShell 3.0.
4546

@@ -81,8 +82,8 @@ Get-Date | ConvertTo-Json; Get-Date | ConvertTo-Json -AsArray
8182
]
8283
```
8384

84-
This example shows the output from the `ConvertTo-Json` cmdlet with and without the **AsArray**
85-
`[switch]` parameter. You can see the second portion of the output is wrapped in array brackets.
85+
This example shows the output from `ConvertTo-Json` cmdlet with and without the **AsArray** switch
86+
parameter. You can see the second portion of the output is wrapped in array brackets.
8687

8788
### Example 3
8889

@@ -206,8 +207,8 @@ Accept wildcard characters: False
206207
### -Depth
207208
208209
Specifies how many levels of contained objects are included in the JSON representation. The value
209-
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a
210-
warning if the number of levels in an input object exceeds this number.
210+
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a warning if
211+
the number of levels in an input object exceeds this number.
211212

212213
```yaml
213214
Type: System.Int32
@@ -223,7 +224,8 @@ Accept wildcard characters: False
223224

224225
### -EnumsAsStrings
225226

226-
Provides an alternative serialization option that converts all enumerations to their string representation.
227+
Provides an alternative serialization option that converts all enumerations to their string
228+
representation.
227229

228230
```yaml
229231
Type: System.Management.Automation.SwitchParameter
@@ -244,9 +246,9 @@ characters (like newline) are escaped.
244246

245247
Acceptable values are:
246248

247-
- Default - Only control characters are escaped.
248-
- EscapeNonAscii - All non-ASCII and control characters are escaped.
249-
- EscapeHtml - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
249+
- `Default` - Only control characters are escaped.
250+
- `EscapeNonAscii` - All non-ASCII and control characters are escaped.
251+
- `EscapeHtml` - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
250252

251253
This parameter was introduced in PowerShell 6.2.
252254

@@ -289,7 +291,7 @@ Accept wildcard characters: False
289291
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
290292
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
291293
-WarningAction, and -WarningVariable. For more information, see
292-
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
294+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
293295

294296
## INPUTS
295297

reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 05/16/2024
5+
ms.date: 04/08/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/convertto-json?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ConvertTo-Json
@@ -31,17 +31,16 @@ property values, and the methods are removed.
3131
> As of PowerShell 7.2, Extended Type System properties of **DateTime** and **String** objects are
3232
> no longer serialized and only the simple object is converted to JSON format
3333
34-
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON
35-
object, which is easily managed in PowerShell.
34+
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON object,
35+
which is easily managed in PowerShell.
3636

3737
Many web sites use JSON instead of XML to serialize data for communication between servers and
3838
web-based apps.
3939

40-
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds
41-
the depth specified for the command. This prevents unwanted data loss when converting objects.
40+
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds the
41+
depth specified for the command. This prevents unwanted data loss when converting objects.
4242

43-
As of PowerShell 7.5-preview.3, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON
44-
numbers.
43+
As of PowerShell 7.5, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON numbers.
4544

4645
This cmdlet was introduced in Windows PowerShell 3.0.
4746

@@ -83,8 +82,8 @@ Get-Date | ConvertTo-Json; Get-Date | ConvertTo-Json -AsArray
8382
]
8483
```
8584

86-
This example shows the output from the `ConvertTo-Json` cmdlet with and without the **AsArray**
87-
`[switch]` parameter. You can see the second portion of the output is wrapped in array brackets.
85+
This example shows the output from `ConvertTo-Json` cmdlet with and without the **AsArray** switch
86+
parameter. You can see the second portion of the output is wrapped in array brackets.
8887

8988
### Example 3
9089

@@ -208,8 +207,8 @@ Accept wildcard characters: False
208207
### -Depth
209208
210209
Specifies how many levels of contained objects are included in the JSON representation. The value
211-
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a
212-
warning if the number of levels in an input object exceeds this number.
210+
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a warning if
211+
the number of levels in an input object exceeds this number.
213212

214213
```yaml
215214
Type: System.Int32
@@ -247,9 +246,9 @@ characters (like newline) are escaped.
247246

248247
Acceptable values are:
249248

250-
- Default - Only control characters are escaped.
251-
- EscapeNonAscii - All non-ASCII and control characters are escaped.
252-
- EscapeHtml - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
249+
- `Default` - Only control characters are escaped.
250+
- `EscapeNonAscii` - All non-ASCII and control characters are escaped.
251+
- `EscapeHtml` - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
253252

254253
This parameter was introduced in PowerShell 6.2.
255254

reference/7.6/Microsoft.PowerShell.Management/Join-Path.md

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/10/2025
5+
ms.date: 04/08/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/join-path?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Join-Path
@@ -16,7 +16,7 @@ Combines a path and a child path into a single path.
1616

1717
```
1818
Join-Path [-Path] <String[]> [-ChildPath] <String> [[-AdditionalChildPath] <String[]>] [-Resolve]
19-
[-Credential <PSCredential>] [-Extension <String>] [<CommonParameters>]
19+
[-Credential <PSCredential>] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -150,46 +150,6 @@ Join-Path -Path a -ChildPath b, c, d, e, f, g
150150
a\b\c\d\e\f\g
151151
```
152152

153-
### Example 9: Add extension to file without extension
154-
155-
```powershell
156-
Join-Path C:\Temp myfile -Extension txt
157-
```
158-
159-
```Output
160-
C:\Temp\myfile.txt
161-
```
162-
163-
### Example 10: Change existing extension
164-
165-
```powershell
166-
Join-Path C:\Temp myfile.txt -Extension .log
167-
```
168-
169-
```Output
170-
C:\Temp\myfile.log
171-
```
172-
173-
### Example 11: Extension without leading dot
174-
175-
```powershell
176-
Join-Path C:\Temp file.txt -Extension log
177-
```
178-
179-
```Output
180-
C:\Temp\file.log
181-
```
182-
183-
### Example 12: Remove extension with empty string
184-
185-
```powershell
186-
Join-Path C:\Temp file.txt -Extension ""
187-
```
188-
189-
```Output
190-
C:\Temp\file
191-
```
192-
193153
## PARAMETERS
194154

195155
### -AdditionalChildPath
@@ -251,28 +211,6 @@ Accept pipeline input: True (ByPropertyName)
251211
Accept wildcard characters: False
252212
```
253213

254-
### -Extension
255-
256-
Specifies the extension to use for the resulting path. If not specified, the original extension is
257-
preserved. The leading dot in the extension is optional. If omitted, the command adds it
258-
automatically.
259-
260-
- If the path has an existing extension, it's replaced with the specified extension.
261-
- If the path has no extension, the specified extension is added.
262-
- If you provide an empty string, the existing extension is removed.
263-
264-
```yaml
265-
Type: System.String
266-
Parameter Sets: (All)
267-
Aliases:
268-
269-
Required: True
270-
Position: 0
271-
Default value: None
272-
Accept pipeline input: True (ByPropertyName)
273-
Accept wildcard characters: True
274-
```
275-
276214
### -Path
277215

278216
Specifies the main path (or paths) to which the child-path is appended. The value of **Path**

reference/7.6/Microsoft.PowerShell.Utility/ConvertTo-Json.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 05/16/2024
5+
ms.date: 04/08/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/convertto-json?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ConvertTo-Json
@@ -28,21 +28,19 @@ The `ConvertTo-Json` cmdlet converts any .NET object to a string in JavaScript O
2828
property values, and the methods are removed.
2929

3030
> [!NOTE]
31-
> As of PowerShell 7.2, Extended Type System properties of **DateTime** and
32-
> **String** objects are no longer serialized and only the simple object is
33-
> converted to JSON format
31+
> As of PowerShell 7.2, Extended Type System properties of **DateTime** and **String** objects are
32+
> no longer serialized and only the simple object is converted to JSON format
3433
35-
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON
36-
object, which is easily managed in PowerShell.
34+
You can then use the `ConvertFrom-Json` cmdlet to convert a JSON-formatted string to a JSON object,
35+
which is easily managed in PowerShell.
3736

3837
Many web sites use JSON instead of XML to serialize data for communication between servers and
3938
web-based apps.
4039

41-
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds
42-
the depth specified for the command. This prevents unwanted data loss when converting objects.
40+
As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds the
41+
depth specified for the command. This prevents unwanted data loss when converting objects.
4342

44-
As of PowerShell 7.5-preview.3, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON
45-
numbers.
43+
As of PowerShell 7.5, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON numbers.
4644

4745
This cmdlet was introduced in Windows PowerShell 3.0.
4846

@@ -84,8 +82,8 @@ Get-Date | ConvertTo-Json; Get-Date | ConvertTo-Json -AsArray
8482
]
8583
```
8684

87-
This example shows the output from the `ConvertTo-Json` cmdlet with and without the **AsArray**
88-
`[switch]` parameter. You can see the second portion of the output is wrapped in array brackets.
85+
This example shows the output from `ConvertTo-Json` cmdlet with and without the **AsArray** switch
86+
parameter. You can see the second portion of the output is wrapped in array brackets.
8987

9088
### Example 3
9189

@@ -209,8 +207,8 @@ Accept wildcard characters: False
209207
### -Depth
210208
211209
Specifies how many levels of contained objects are included in the JSON representation. The value
212-
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a
213-
warning if the number of levels in an input object exceeds this number.
210+
can be any number from `0` to `100`. The default value is `2`. `ConvertTo-Json` emits a warning if
211+
the number of levels in an input object exceeds this number.
214212

215213
```yaml
216214
Type: System.Int32
@@ -226,7 +224,8 @@ Accept wildcard characters: False
226224

227225
### -EnumsAsStrings
228226

229-
Provides an alternative serialization option that converts all enumerations to their string representation.
227+
Provides an alternative serialization option that converts all enumerations to their string
228+
representation.
230229

231230
```yaml
232231
Type: System.Management.Automation.SwitchParameter
@@ -247,9 +246,9 @@ characters (like newline) are escaped.
247246

248247
Acceptable values are:
249248

250-
- Default - Only control characters are escaped.
251-
- EscapeNonAscii - All non-ASCII and control characters are escaped.
252-
- EscapeHtml - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
249+
- `Default` - Only control characters are escaped.
250+
- `EscapeNonAscii` - All non-ASCII and control characters are escaped.
251+
- `EscapeHtml` - HTML (`<`, `>`, `&`, `'`, `"`) and control characters are escaped.
253252

254253
This parameter was introduced in PowerShell 6.2.
255254

@@ -292,7 +291,7 @@ Accept wildcard characters: False
292291
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
293292
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
294293
-WarningAction, and -WarningVariable. For more information, see
295-
[about_CommonParameters](../Microsoft.PowerShell.Core/About/about_CommonParameters.md).
294+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
296295

297296
## INPUTS
298297

reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: What's New in PowerShell 7.6
33
description: New features and changes released in PowerShell 7.6
4-
ms.date: 03/26/2026
4+
ms.date: 04/07/2026
55
---
66

77
# What's New in PowerShell 7.6
@@ -11,6 +11,8 @@ PowerShell 7.6 includes the following features, updates, and breaking changes. P
1111

1212
For a complete list of changes, see the [CHANGELOG][log] in the GitHub repository.
1313

14+
[log]: https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/7.6.md
15+
1416
## Updated modules
1517

1618
PowerShell 7.6 includes the following updated modules:
@@ -206,8 +208,6 @@ This release includes the following experimental features:
206208
[05]: ../learn/experimental-features.md#psserializejsonlongenumasnumber
207209
[06]: ../learn/experimental-features.md#pssubsystempluginmodel
208210

209-
[log]: https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/preview.md
210-
211211
[14553]: https://github.com/PowerShell/PowerShell/pull/14553
212212
[17687]: https://github.com/PowerShell/PowerShell/pull/17687
213213
[17785]: https://github.com/PowerShell/PowerShell/pull/17785

0 commit comments

Comments
 (0)