How to Generate a New GUID or UUID in Windows
Information
GUID (or UUID) is an acronym for 'Globally Unique Identifier' (or 'Universally Unique Identifier'). The term GUID is generally used by developers working with Microsoft technologies, while UUID is used everywhere else.
A GUID is represented as a 32-character hexadecimal string, such as {dcab32b8-e5ec-4f09-af89-44634bc7a04d}, and is usually stored in the form of a 128bit integer. It's nearly impossible for the numbers generated for the GUID to have two numbers repeated making them unique.
For more information about GUID, see:
This tutorial will show you how to quickly generate a new GUID (UUID) in XP, Vista, Windows 7, and Windows 8.
A GUID is represented as a 32-character hexadecimal string, such as {dcab32b8-e5ec-4f09-af89-44634bc7a04d}, and is usually stored in the form of a 128bit integer. It's nearly impossible for the numbers generated for the GUID to have two numbers repeated making them unique.
For more information about GUID, see:
This tutorial will show you how to quickly generate a new GUID (UUID) in XP, Vista, Windows 7, and Windows 8.
Note
Windows 7 and Windows 8 comes with the PowerShell feature included.
In XP and Vista, you will need to download and install PowerShell.
In XP and Vista, you will need to download and install PowerShell.
OPTION ONE
To Generate a New GUID in PowerShell
1. Open PowerShell, copy and paste either command below, and press Enter.
[guid]::NewGuid()
OR
[guid]::NewGuid().ToString()
2. The generated 32-character number will be the new GUID.
OPTION TWO
To Generate a New GUID in Command Prompt
Note
This option uses a PowerShell command in a command prompt, so you will still need to have PowerShell installed (XP and Vista).
If you like, you can also use the command below in a .bat or .cmd file.
If you like, you can also use the command below in a .bat or .cmd file.
1. Open a command prompt, copy and paste either command below, and press Enter.
powershell -Command "[guid]::NewGuid()"
OR
powershell -Command "[guid]::NewGuid().ToString()"
2. The generated 32-character number will be the new GUID.
That's it,
Shawn
Attachments
Last edited: