PowerShell New-Guid

Create GUID using PowerShell

PowerShell version 5 brings a lot of new cmdlets which make our lives easier and our code cleaner. One of them is the New-GUID cmdlet, which allows you to easily create a new GUID using PowerShell. Before we had this cmdlet we had to use the .NET command to create a new GUID:

Now with PowerShell 5 we can use simply the new cmdlet: