Generate a GUID in Windows 10 (Globally Unique Identifier)

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. In Windows, GUIDs are used to identify objects such as interfaces, manager entry-point vectors (EPVs), ActiveX objects, and virtual (shell) folders.

Advertisement

There are lots of shell locations in Windows 10, that you can access via shell:::{GUID} commands from the "Run" dialog. They are also known as "Shell Folders". Shell folders are ActiveX objects that implement a special virtual folder or a virtual applet. In some cases, they provide access to physical folders on your hard drive or even to special OS functionality like "Minimize all Windows" or the Alt+Tab switcher.

You can use them in various scenarios, but in the general case you can use them to create a shortcut to a specific Control Panel applet or a Windows feature. For example, the following command will open the "Network Connections" folder:

shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

windows-10-network-locations-folder

So, GUIDs are the Microsoft implementation of the distributed computing environment (DCE) universally unique identifier (UUID). The RPC run-time libraries use UUIDs to check for compatibility between clients and servers and to select among multiple implementations of an interface. The Windows access-control functions use GUIDs to identify the type of object that an object-specific ACE in an access-control list (ACL) protects.

If you need to generate a new GUID in Windows, there are at least two methods you can use.

To Generate a GUID in Windows 10 with PowerShell,

    1. Open PowerShell. Tip: You can add "Open PowerShell As Administrator" context menu.
    2. Type or copy-paste the following command: [guid]::NewGuid().This will produce a new GUID in the output.
    3. Alternatively, you can run the command '{'+[guid]::NewGuid().ToString()+'}' to get a new GUID in the traditional Registry format.Windows 10 Generate New Guid

The [guid] object is available in PowerShell thanks to its tight integration with the .NET Framework.

If you cannot use PowerShell on your Windows 10 device, here's an alternative solution. You can use Download Microsoft's free GUID Generator tool.

Generate a new GUID with the GUID Generator tool

  1. Download the GUID Generator tool from this page.
  2. Download the EXE file and run it. It is a self-extracting, compressed EXE. Extract it to any path such as a folder on the Desktop and click OK to continue.GUIDGen EXE
  3. Open the folder where you extracted it and run GUIDGEN.exe.GUIDGen2
  4. Select a format you need, for example 'Registry Format'.
  5. Click on Copy to copy the GUID to the clipboard.

That's it.

Also, see CLSID (GUID) shell location list in Windows 10.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

Advertisment

1 thought on “Generate a GUID in Windows 10 (Globally Unique Identifier)

  1. Pete

    Or from the command prompt:
    powershell -command “[guid]::NewGuid()”

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *