Generate a New GUID

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

GUIDs are "Globally Unique Identifiers," which are so random that you can safely assume they are unique worldwide. GUIDs are used whenever you want to make sure you get a truly unique ID. Use them to identify components or generate unique file names. Here is how you generate new GUIDs:

[System.Guid]::NewGuid().toString()

Posted Jan 22 2009, 08:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.