Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
external help file Locale Module Name ms.date online version schema title
Microsoft.PowerShell.Commands.Utility.dll-Help.xml
en-US
Microsoft.PowerShell.Utility
10/04/2021
2.0.0
New-Guid

New-Guid

SYNOPSIS

Creates a GUID.

SYNTAX

New-Guid [<CommonParameters>]

DESCRIPTION

The New-Guid cmdlet creates a random globally unique identifier (GUID). If you need a unique ID in a script, you can create a GUID, as needed.

EXAMPLES

Example 1: Create a GUID

New-Guid

This command creates a random GUID. Alternatively, you could store the output of this cmdlet in a variable to use elsewhere in a script.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Guid

This cmdlet returns a GUID.

NOTES

RELATED LINKS