New-Guid
Creates a GUID.
Syntax
New-Guid []
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 new 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.
Outputs
This cmdlet returns a GUID.
Notes
The cmdlet creates a Version 4 Universally Unique Identifier (UUID). For more information, see System.Guid.NewGuid.
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.
PowerShell