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.


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:



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:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!


Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

3 thoughts on “Generate a GUID in Windows 10 (Globally Unique Identifier)”

  1. Even easier way in PowerShell is to use the built-in “New-Guid” cmdlet that’s been available since Windows PowerShell 5.0, the version available in the first version of Windows 10 (version 1507). Just open PowerShell and type or copy-paste the following command: New-Guid

    From the command prompt: PowerShell -Command “& {New-Guid}”

    For this cmdlet, the following will also work, but the above is the supported way to run it from a command prompt: PowerShell -Command “New-Guid”

Leave a Reply

Your email address will not be published.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.