Notices: This section not yet converted to new layout. Download stats are rolling back out.

Guidgen Console

2.0.0.6

Package test results are passing.

This package was approved as a trusted package on 10/5/2017.

Guidgen console is a command line application that generates X number of guids in the format you want - pasting them to the clipboard - if you wish.
But that's not all! It also allows pipe usage to find and replace GUIDs or just run in the background as a reformatter.
Supports zero guids, sequential guids, and plain vanilla guids.

usage: GuidGen.exe [/?]
[N|D|P|B|C|CP|GUID|OLECREATE|DEFINEGUID|H|HC#|HVB|HLDAP|ORACLE|ORACLEHEXTORAW|IP|VERSION|INT32|INT64|BASE64|BASE64C|MD5-[FORMAT]] [/G|/S|/Z] [/nocopy] [/copy] [/n (number)] [/u]
[/find [FORMAT] [/l]] [/replace [FORMAT] [/guid {value}] [/clipboard]] [/replacebyline [FORMAT]]

To install Guidgen Console, run the following command from the command line or from PowerShell:

C:\> choco install guidgen-console

To upgrade Guidgen Console, run the following command from the command line or from PowerShell:

C:\> choco upgrade guidgen-console

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $binRoot = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
    $name  = "guidgen-console"
    $version = "2.0.0.6"
    
    $md5_net2_0 = "18863317DBBA90ED6BAF4178352F4E26"
    $md5_net3_5 = "309828860B2DEDF3B393041FEDF3B2B5"
    $md5_net4_0 = "0A002F54338E3977CEE58B934F3DD579"
    $md5_net4_5 = "6F04E7B38575963BAAF08215467E71DF"
    $md5_net4_6 = "F99858F1A5FD651F3B3A44FDC79E6FAF"
    $md5_net4_7 = "87B2A8ED642EF8F5C0F4AF58787196EA"
    $md5_root = "6F04E7B38575963BAAF08215467E71DF"
    
    $local = $false
    
    if($local) {
    	$rooturl = "" #local
    	$rooturl = [System.Uri]$rooturl
    } else {
    	$rooturl = "https://cdn.rawgit.com/michaelmcdaniel/GuidgenConsole/master/Binaries/versions/$version"
    }
    $url = "$rooturl/GuidGen.exe" #default as latest
    $checksum = $md5_root
    
    Write-Host "Determining version to install..."
    $installVersion = ""
    $ndpDirectory = 'hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP\'
    
    if ($pathToLatest -eq $binRoot -and (Test-Path "$ndpDirectory\v2.0.50727")) { # .NET 2
    	Write-Debug ".NET version 2.0 is available"
        $url = "$rooturl/NET2_0/GuidGen.exe"
    	$checksum = $md5_net2_0
    	$installVersion = "guidgen.exe for .NET version 2.0"
    } 
    if (Test-Path "$ndpDirectory\v3.0") { # .NET 3
    	Write-Debug ".NET version 3.0 is available"
    }
    if ($pathToLatest -eq $binRoot -and (Test-Path "$ndpDirectory\v3.5")) { # .NET 3.5
    	Write-Debug ".NET version 3.5 is available"
        $url = "$rooturl/NET3_5/GuidGen.exe"
    	$checksum = $md5_net3_5
    	$installVersion = "guidgen.exe for .NET version 3.5"
    }
    if ($pathToLatest -eq $binRoot -and (Test-Path "$ndpDirectory\v4")) { # .NET 4
    	Write-Debug ".NET version 4.0 is available"
        $url = "$rooturl/NET4_0/GuidGen.exe"
    	$checksum = $md5_net4_0
    	$installVersion = "guidgen.exe for .NET version 4.0"
    }
    if (Test-Path "$ndpDirectory\v4\Full") { # .NET 4.5+  (we could serve up 4_5 version for all these.)
        $rv = (Get-ItemProperty "$ndpDirectory\v4\Full" -name Release).Release
        switch([String]$rv) {
            '378389' { Write-Debug ".NET version 4.5 is available";  $url = "$rooturl/NET4_5/GuidGen.exe"; $checksum = $md5_net4_5; $installVersion = "guidgen.exe for .NET version 4.5"; break; } #4.5
            '378758' { Write-Debug ".NET version 4.5.1 is available";  $url = "$rooturl/NET4_5/GuidGen.exe"; $checksum = $md5_net4_5; $installVersion = "guidgen.exe for .NET version 4.5.1"; break; } #4.5.1 (win81/ws12r2)
            '378675' { Write-Debug ".NET version 4.5.1 is available";  $url = "$rooturl/NET4_5/GuidGen.exe"; $checksum = $md5_net4_5; $installVersion = "guidgen.exe for .NET version 4.5.1"; break; } #4.5.1
            '379893' { Write-Debug ".NET version 4.5.2 is available";  $url = "$rooturl/NET4_5/GuidGen.exe"; $checksum = $md5_net4_5; $installVersion = "guidgen.exe for .NET version 4.5.2"; break; } #4.5.2
            '393295' { Write-Debug ".NET version 4.6 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6"; break; } #4.6 (win10)
            '393297' { Write-Debug ".NET version 4.6 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6"; break; } #4.6
            '394254' { Write-Debug ".NET version 4.6.1 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6.1"; break; } #4.6.1 (win10)
            '394271' { Write-Debug ".NET version 4.6.1 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6.1"; break; } #4.6.1
            '394802' { Write-Debug ".NET version 4.6.2 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6.2"; break; } #4.6.2 (win10)
            '394806' { Write-Debug ".NET version 4.6.2 is available"; $url = "$rooturl/NET4_6/GuidGen.exe"; $checksum = $md5_net4_6; $installVersion = "guidgen.exe for .NET version 4.6.2"; break; } #4.6.2
            '460798' { Write-Debug ".NET version 4.7 is available"; $url = "$rooturl/NET4_7/GuidGen.exe"; $checksum = $md5_net4_7; $installVersion = "guidgen.exe for .NET version 4.7"; break; } #4.7 (win10)
            '460805' { Write-Debug ".NET version 4.7 is available"; $url = "$rooturl/NET4_7/GuidGen.exe"; $checksum = $md5_net4_7; $installVersion = "guidgen.exe for .NET version 4.7"; break; } #4.7
        }
    }
    
    $filePath = ([System.IO.FileInfo](join-path $binRoot "..\GuidGen.exe")).FullName
    Write-Host "Downloading $installVersion"
    Write-Host "  from`: $url"
    write-host "  to`: $filePath"
    
    Get-ChocolateyWebFile -packageName $name -fileFullPath $filePath -url $url -checksum $checksum -checksumType "md5"
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Maintainer(s)

Software Author(s)

  • Michael McDaniel

Tags

Release Notes

Fixed replace with new guid when no replace format specified.

Version History

Version Downloads Last updated Status
Guidgen Console 2.0.0.5 70 Tuesday, July 25, 2017 approved
Guidgen Console 2.0.0.4 178 Friday, April 15, 2016 approved
Guidgen Console 2.0.0.3 103 Thursday, April 14, 2016 approved
Guidgen Console 2.0.0.2 69 Wednesday, April 6, 2016 approved
Guidgen Console 2.0.0.1 66 Wednesday, April 6, 2016 approved

Discussion for the Guidgen Console Package

Ground rules:

  • This discussion is only about Guidgen Console and the Guidgen Console package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Guidgen Console, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus