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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s