Command line change pst properties

Feb 23, 2012 at 8:07 PM

I need the ability to change the archive pst file property via command line.

Command line would allow the process to be automated and save our help desk having to run mfcmapi manually on 100s of desktops.

My C skills are rusty and MFC skills non existent.  Unless someone knows how to achieve this via .NET?

 

 

Thanks!

Coordinator
Feb 27, 2012 at 2:50 PM
Edited Feb 27, 2012 at 2:50 PM

Supposing you were to use MFCMAPI to do what you want, what would you actually be doing in MFCMAPI? Which properties would you be changing?

Feb 27, 2012 at 3:15 PM
Edited Feb 27, 2012 at 3:16 PM
sgriffin wrote:

Supposing you were to use MFCMAPI to do what you want, what would you actually be doing in MFCMAPI? Which properties would you be changing?


The archive file property.  Looks like 0x8020001F is the property name.

Coordinator
Feb 27, 2012 at 3:19 PM

"archive file property" is not the name of a MAPI property. MAPI properties are typically referred to by names (such as PR_DISPLAY_NAME) or numbers (0x3001001E). Have you changed this property via MFCMAPI? What name did MFCMAPI use for this property?

Feb 27, 2012 at 3:21 PM

You replied before I got my edit in.  0x8020001F is the property name.

Coordinator
Feb 27, 2012 at 3:32 PM

Hrmm. That's greater than 0x80000000, meaning it's a named property. With named properties, the property tag doesn't tell us what the property is - we need to look at the named property name and guid. What does MFCMAPI say for those columns?

Feb 27, 2012 at 3:42 PM

Tag: 0x8020001F
Type: PT_UNICODE
DASL: http://schemas.microsoft.com/mapi/id/{8F93C891-20C3-11D2-954D-0060979392B4}/0000001F
Named Prop Name: id: 0x0000=0
Named Prop Guid: {8F93C891-20C3-11D2-954D-0060979392B4} = Unknown GUID

Coordinator
Feb 27, 2012 at 4:04 PM

I see. So - changing properties is something I could potentially add to MrMAPI, but I have been loathe to do so so far given the potential for data corruption. I'll note this as a vote in favor of adding this feature.