From 44347149ccbf32345a036b6d9831014e0c78294e Mon Sep 17 00:00:00 2001 From: Michael Lombardi Date: Wed, 24 Jan 2024 14:12:05 -0600 Subject: [PATCH] (GH-10822) Clarify UUID version for `New-Guid` 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 --- reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md | 5 ++++- reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md | 5 ++++- reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md | 5 ++++- reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md | 5 ++++- reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md | 6 +++++- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md b/reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md index 86d09f3b5271..6d79c2bfbf9a 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/New-Guid.md @@ -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 @@ -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 diff --git a/reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md b/reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md index 34381dbb460a..aff6ddba2a69 100644 --- a/reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md +++ b/reference/7.2/Microsoft.PowerShell.Utility/New-Guid.md @@ -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 @@ -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 diff --git a/reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md b/reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md index 44e440b8e919..54ef0461b723 100644 --- a/reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md +++ b/reference/7.3/Microsoft.PowerShell.Utility/New-Guid.md @@ -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 @@ -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 diff --git a/reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md b/reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md index 759d4d0b9eba..8be0d6882f8f 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/New-Guid.md @@ -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 @@ -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 diff --git a/reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md b/reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md index 341f216499aa..1be91daa27ee 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/New-Guid.md @@ -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 @@ -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