General Generate a Globally Unique Identifier (GUID) in Windows 11


  • Staff
GUID_banner.png

This tutorial will show you how to quickly generate a new Globally Unique Identifier (GUID) in Windows 10 and Windows 11.

A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated.

GUIDs identify objects such as interfaces, manager entry-point vectors (EPVs), and class objects. A GUID is a 128-bit value consisting of one group of 8 hexadecimal digits, followed by three groups of 4 hexadecimal digits each, followed by one group of 12 hexadecimal digits. The following example GUID shows the groupings of hexadecimal digits in a GUID: 6B29FC40-CA47-1067-B31D-00DD010662DA

References:


Contents

  • Option One: Generate a Globally Unique Identifier (GUID) in PowerShell
  • Option Two: Generate a Globally Unique Identifier (GUID) in Command Prompt




Option One

Generate a Globally Unique Identifier (GUID) in PowerShell


1 Open Windows Terminal, and select Windows PowerShell.

2 Copy and paste the command below you want to use into Windows Terminal, and press Enter. (see screenshots below)

(Generate GUID without brackets)
[guid]::NewGuid()

OR​

(Generate GUID within brackets)
'{'+[guid]::NewGuid().ToString()+'}'

GUID_PowerShell-1.png

GUID_PowerShell-2.png





Option Two

Generate a Globally Unique Identifier (GUID) in Command Prompt


1 Open Windows Terminal, and select Command Prompt.

2 Copy and paste the command below you want to use into Windows Terminal, and press Enter. (see screenshots below)

(Generate GUID without brackets)
powershell [guid]::NewGuid()

OR​

(Generate GUID within brackets)
powershell '{'+[guid]::NewGuid().ToString()+'}'

GUID_command_prompt-1.png

GUID_command_prompt-2.png



That's it,
Shawn Brink


 

Attachments

  • GUID.png
    GUID.png
    7.3 KB · Views: 13
GUIDs are remarkable. As Wikipedia says, "For example, consider the observable universe, which contains about 5 x 10^1022 stars; every star could then have 6.8 x10^1015 universally unique GUIDs."

The number of grains of sand on Earth is estimated at 7.5 x 10^18.
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 OS build 22631.3374
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    13Mbps
    Browser
    Brave, Edge or Firefox
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
Back
Top Bottom