Friday, 25 July 2008

New-Guid.ps1

<#
.SYNOPSIS
    Gets a new guid
.DESCRIPTION
    This script used sytem.guid to create a new guiod
.NOTES
    File Name  : New-Guid
    Author     : Thomas Lee - tfl@psp.co.uk
    Requires   : PowerShell 
.LINK
    http://www.pshscripts.blogspot.com
.EXAMPLE
    PSH [C:\foo]: .\New-Guid.ps1
    Guid
----
8aadd649-9e6b-4f8c-882d-351636ab5ed4
#> ## # Start of Script ## # Create a new GUID $g = [system.guid]::newguid() # Display the new guid $g # End of script

No comments: