Powershell: Generate a GUID

Hi,

to create a GUID in powershell for the use in your own scripts call the static function NewGuid() from the system.Guid class.

PS D:\> [system.Guid]::NewGuid()
f3f8591a-c1d6-4d82-bec2-d3dac2c1fee5

Michael

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.