How can I generate a UUID from the command line in Windows XP? Something like "uuid" or "uuidgen" in Linux.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Drop the following code into a new file name uuid.vbs
Then you can run it from the command line like so:
This will work on pretty much any computer that has the Windows Scripting Host installed - which certainly includes anything later than Windows 2000, and probably includes 95/98/ME as well... though I don't have an instance handy to check. If you need to remove the braces, replace the last line with this
|
|||||
|
|
If powershell is installed this is a simple commandline to get a guid
|
|||
|
|
|
You can also use this command in a command prompt: |
||||
|
|
|
From MSDN Library: Generating Interface UUIDs. |
|||||||||||||
|