Hi Ckwp,
Have a look into this thread if can be of any help becuase you are running command as a part of the script and in fact you extracted only a part of the logs
https://www-secure.symantec.com/connect/forums/cant-decrypt-second-server-pgp-command-line
--snip-
If I had a "\" to the end of the --home-dir option, I get:
<1009:unable to open preferences file>
-----------
I would try to extract command first and run on it's own to see if you can get this error from pgp command line bypassig any script:
A quick test for example:
C:\Program Files\PGP Corporation\PGP Command Line>pgp --encrypt --sign C:\Users
\user3\Documents\PGP\pgp123.txt --recipient "0xD5483454" --signer "0xFF392B60" -
-passphrase "XXXXXX" --output C:\Users\user3\Documents\PGP\pgp123.txt.pgp --o
verwrite remove -v
pgp:encrypt (3157:current local time 2014-07-16T12:33:29+02:00)
C:\Users\user3\Documents\PGP\pubring.pkr:open keyrings (1006:public keyring)
C:\Users\user3\Documents\PGP\secring.skr:open keyrings (1007:private keyring)
0xD5483454:encrypt (1030:key added to recipient list)
0xFF392B60:encrypt (1030:key added to recipient list)
0xFF392B60:encrypt (1050:key added as signer)
C:\Users\user3\Documents\PGP\pgp123.txt:encrypt (3048:data encrypted with cipher
AES-256)
Encoding C:\Users\user3\Documents\PGP\pgp123.txt... 100% (⸥昱猥)
C:\Users\user3\Documents\PGP\pgp123.txt.pgp:encrypt (0:file removed successfully)
C:\Users\user3\Documents\PGP\pgp123.txt:encrypt (0:output file C:\Users\user3\Do
cuments\PGP\pgp123.txt.pgp)
C:\Program Files\PGP Corporation\PGP Command Line>
If the error still exist I would also concentrate to give the the full permissions to all folders which taking a part in encryption/decrytion process including scripts.
HTH