How to create a GUID using Powershell

I was required to generate a GUID to include in a unique filename output using Windows Powershell, this is a rather simple process using the ‘Guid.NewGuid’ method by invoking the below:

$Guid = [guid]::NewGuid()
$Guid

Leave a comment