GnuPG 2.2.8 -- Trouble Decrypting using PowerShell script

Andre Heinecke aheinecke at
Wed Oct 24 11:02:14 CEST 2018


just as a bit of advertising. There is professional support available under 
gpg4win-professional at

I'm answering your problem inline below:

On Monday, October 22, 2018 6:03:46 PM CEST Vijay. Akunuri wrote:
> In command prompt we are using  "& gpg -d --batch --passphrase comment C:
\Succession_Talent_Pool_Tableau_Report.csv.pgp "
> We are passing the passphrase but when we run the script the a window pops 
up to enter the passphrase manually like this below.

Your command is missing "--pinentry-mode loopback"

"gpg --pinentry-mode loopback -d --batch --passphrase comment C:\projects
\Succession_Talent_Pool_Tableau_Report.csv.pgp "

> On local if enter the passphase in above prompted window then it is able to 
> decrypt the file. But on servers we can do that manually and that is the
> reason we are passing it to command prompt.

As a scheduled job on a server you might also want to set an explicit homedir 
in your command. See:

> Kindly help us in resolving this issue. Let me know if you need more
> information.

I'm working professionally for Gpg4win. So please consider a volunatry payment 
to Gpg4win or donation to GnuPG if this helped to solve your problem. :-)

Best Regards,
Andre Heinecke

Andre Heinecke |  ++49-541-335083-262  |
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Gnupg-users mailing list