'PowerShell(x86) not returning Get-TpmEndorsementKeyInfo

On my machine I start PowerShell(x86) on win10 64-windows (version 1607) and try to execute Get-TpmEndorsementKeyInfo. This prompts me with dialog to open application. After I execute the command Get-Tpm, the Get-TpmEndorsementKeyInfo command works as expected.

This is a development machine on which Tpm-related code was developed and worked before. How can I find out what is going (wr)on(g)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source