create pst file with vba

J

Juergen Weinmann

Hello vba experts,

is it possible to set the encryption to "no encryption" when creating a new
PST file with VBA?

Thanks in advance.

Juergen
 
D

Dmitry Streblechenko

When calling Namespace.AddStore, the newly created PST file will default to
"no encryption".

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
J

Juergen Weinmann

Thanks, Dmitry,

Unfortunately not. It's always set to "Compressible Encryption". It
doesn't matter if I use AddStoreEx or just AddStore.

I'm using vbScript and OL2003.

Did you use the same environment?

Thanks again.

Juergen

When calling Namespace.AddStore, the newly created PST file will
default to "no encryption".

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
D

Dmitry Streblechenko

Ah!, sorry, you are right, I was thinking about "High Encryption" (which is
off).
You can either use Extended MAPI (C++/Delphi only) to
programmatically add a new PST file and specify (among other properties)
PR_PST_ENCRYPTION.
<plug> You can also use Redemption (url below) - call
RDOSession.Stores.AddPstStoreWithPassword and specify psteNoEncryption as
the last parameter: http://www.dimastr.com/redemption/rdo/rdostores.htm
</plug>

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Juergen Weinmann said:
Thanks, Dmitry,

Unfortunately not. It's always set to "Compressible Encryption". It
doesn't matter if I use AddStoreEx or just AddStore.

I'm using vbScript and OL2003.

Did you use the same environment?

Thanks again.

Juergen
 
Joined
Mar 24, 2022
Messages
1
Reaction score
0
Thanks, Dmitry,

Unfortunately not. It's always set to "Compressible Encryption". It
doesn't matter if I use AddStoreEx or just AddStore.

I'm using vbScript and OL2003.

Did you use the same environment?

Thanks again.

Juergen


I am getting an error code 287 when I try to get a reference to a PropertyAccessor on the store object I had just created. I want to be able to set the DisplayName of the store right after I create it at a specific file location.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top