Skip to content

Commit

Permalink
(GH-10822) Clarify UUID version for New-Guid (#10825)
Browse files Browse the repository at this point in the history
Prior to this change, the documentation for the `New-Guid` cmdlet
did not specify which GUID version the cmdlet creates. This change:

- Adds a note clarifying the cmdlet creates v4 UUIDs.
- Resolves #10822
- Fixes AB#203150
  • Loading branch information
michaeltlombardi authored Jan 24, 2024
1 parent bcc9dd1 commit cbc1c9f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
5 changes: 4 additions & 1 deletion reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Utility-help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 10/04/2021
ms.date: 01/24/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/new-guid?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: New-Guid
Expand Down Expand Up @@ -53,4 +53,7 @@ This cmdlet returns a GUID.

## NOTES

The cmdlet creates a Version 4 Universally Unique Identifier (UUID). For more information, see
[System.Guid.NewGuid](xref:System.Guid.NewGuid).

## RELATED LINKS
5 changes: 4 additions & 1 deletion reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 10/04/2021
ms.date: 01/24/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/new-guid?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: New-Guid
Expand Down Expand Up @@ -52,4 +52,7 @@ This cmdlet returns a GUID.

## NOTES

The cmdlet creates a Version 4 Universally Unique Identifier (UUID). For more information, see
[System.Guid.NewGuid](xref:System.Guid.NewGuid).

## RELATED LINKS
5 changes: 4 additions & 1 deletion reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 10/04/2021
ms.date: 01/24/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/new-guid?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: New-Guid
Expand Down Expand Up @@ -52,4 +52,7 @@ This cmdlet returns a GUID.

## NOTES

The cmdlet creates a Version 4 Universally Unique Identifier (UUID). For more information, see
[System.Guid.NewGuid](xref:System.Guid.NewGuid).

## RELATED LINKS
5 changes: 4 additions & 1 deletion reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 08/28/2023
ms.date: 01/24/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/new-guid?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: New-Guid
Expand Down Expand Up @@ -54,4 +54,7 @@ This cmdlet returns a GUID.

## NOTES

The cmdlet creates a Version 4 Universally Unique Identifier (UUID). For more information, see
[System.Guid.NewGuid](xref:System.Guid.NewGuid).

## RELATED LINKS
6 changes: 5 additions & 1 deletion reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2024
ms.date: 01/24/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/new-guid?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: New-Guid
Expand Down Expand Up @@ -147,4 +147,8 @@ The cmdlet passes string input to the constructor of the **System.Guid** class.
support strings in several formats. For more information, see
[System.Guid(String)](/dotnet/api/system.guid.-ctor#system-guid-ctor(system-string)).
When used without string input or the **Empty** parameter, the cmdlet creates a Version 4
Universally Unique Identifier (UUID). For more information, see
[System.Guid.NewGuid](xref:System.Guid.NewGuid).
## RELATED LINKS

0 comments on commit cbc1c9f

Please sign in to comment.