Thursday 24 July 2008

Get-EmptyGuid.ps1

# Get-Empty Guid.ps1
#
Get's an empty GUID
#
thomas lee - tfl@psp.co.uk

# create an empty GUID
$g = [system.guid]::empty

# Display the empty guid
"The Empty guid: {0}" -f $g



This script produces the following output:



PS C:\Users\tfl> 
E:\PowerShellScriptLib\System.Guid\Get-EmptyGuid.ps1
The Empty guid: 00000000-0000-0000-0000-000000000000


Technorati Tags: ,,

No comments: