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()

Leave a Reply

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

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

Facebook photo

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

Connecting to %s