Get thumbprint from powershell

I’m trying to get the thumbprint using powershell.

The following works

& 'C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe' show-thumbprint --nologo
The thumbprint of this Tentacle is: xxxxxxxx7B5CB0E471DE986FA7B59249xxxxxxxx

I want to just get the numbers, and strip off the text ‘The thumbprint of this Tentacle is:’

Are there any other options like --nologo that would give me just the numbers of the tentacle so I don’t have to strip off the leading text with powershell?

$foo = & 'C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe' show-thumbprint --nologo
$foo -replace 'The thumbprint of this Tentacle is: ',''

Hi,

Thanks for getting in touch! Unfortunately we don’t have a current option for that, the only flag is to output to a file (which is the thumbprint only, but isn’t useful in your case). However this seems like a good idea, so I’ve created an issue in our system, you can track its progress here. At the moment it looks like it should go out in our next release.

Hope that helps!

Mark