Thursday, January 27, 2011

Need a GUID? Use PowerShell!

Need to generate a new GUID but don’t have any developer tools installed?

This is easy with PowerShell.  Just enter the following command:

[System.Guid]::NewGuid()

You will get an output similar to:

Guid
----
3ca14ab2-21c9-4c16-956a-55f303f2fbb7

Of course if need be you can assign the new GUID to a variable and use it from there in your scripts.

Enjoy.

0 comments: