Table of contents
ISE
TOC
Collapse the table of content
Expand the table of content

New-Guid

JuanPablo Jofre|Last Updated: 12/17/2016
|
3 Contributors

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

PS C:\> New-Guid
Guid
----
0352cf0f-2e7a-4aee-801d-7f27f8344c77

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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

System.Guid

This cmdlet returns a GUID.

NOTES

Windows PowerShelll Utility Module

© 2017 Microsoft