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. 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: