PowerTip: Use PowerShell to Create New GUID

Doctor Scripto

Summary: Use Windows PowerShell to create a new GUID.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily generate a new GUID for a project.?

Hey, Scripting Guy! Answer Use the New-Guid cmdlet.

  If you need to create more than one, you can use code such as the following (% is an alias for Foreach-Object):

1..4 | % {new-guid}


Discussion is closed.

Feedback usabilla icon