create pst file with vba

  • Thread starter Thread starter Juergen Weinmann
  • Start date Start date
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
 
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
 
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
 
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
 
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.
 
Back
Top