PowerTip: Create a New GUID by Using PowerShell


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

Comments (3)

  1. PWUSER says:

    Thanks for the tips.

  2. Mohan says:

    Thanks for the tip !

  3. David John says:

    I wonder if my problem is slightly different than yours, but like everyone else, turning of EN CWYW is not an option. However, I am pretty sure that this only happens when you leave your cursor in a comment bubble.
    Chat Friend
    http://amicachat.net/

Skip to main content