PowerTip: Create a New GUID by Using PowerShell

Doctor Scripto

Dr Scripto

Summary: Easily use Windows PowerShell to create a new GUID.

Hey, Scripting Guy! Question  How can I use Windows PowerShell to easily create a new GUID?

Hey, Scripting Guy! Answer  Use the [guid] type accelerator, and call the NewGuid static method:

[guid]::NewGuid()

1 comment

Leave a comment