Skip to content

Instantly share code, notes, and snippets.

@ScriptingPro
Created November 9, 2018 00:45
Show Gist options
  • Save ScriptingPro/eed2e5fa8ad1e7ab73379cd90d316768 to your computer and use it in GitHub Desktop.
Save ScriptingPro/eed2e5fa8ad1e7ab73379cd90d316768 to your computer and use it in GitHub Desktop.
validate guid
$thisguid = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
$guidobj = New-Object System.Guid
[guid]::TryParse($thisguid,[ref]$guidobj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment