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()

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment