Solved

Running a process directly within Exchange server.

Posted on 2011-03-14
5
318 Views
Last Modified: 2012-05-11
Hi,

I've got a VBS script (See Running VBS script unattended with no Outlook open.), which I would like to somehow incorporate into exchange server, rather than having to run this as a workstation.

Does Exchange have any sort of scripting support? Assume that I have permission to do so, just not the ability. Yet.

There are various tasks I'd like to be able to do without having to have Outlook running on a workstation within an administrator context (or at least a context high enough to be able to access all mailboxes).

The script would be running against mailboxes, specifically extracting all attachments and storing those of specific types (PDF, DOC, XLS and images) within our document management system.

Sure we can buy something, but what's the fun in that!

If there is native scripting support, is there COM for Exchange? I already use COM via PHP for Excel, Word and Crystal Reports - but these are user tools, not server apps.

This may be a non-starter and if so, that's fine.

VBS/VBA (learning so probably a LOT of questions) or COM (via PHP - fewer questions on the COM specifics for Exchange).

Thank you.

Richard Quadling.
0
Comment
Question by:RQuadling
  • 2
5 Comments
 
LVL 74

Assisted Solution

by:Glen Knight
Glen Knight earned 250 total points
ID: 35127361
Hey Richard,

Firstly and most importantly, which version of Exchange Server?

Exchange 2007/2010 has PowerShell support, and you can use Exchange scripts to extract data from mailboxes.

There is a certain amount of scripting you can do with Exchange 2003.
0
 
LVL 40

Author Comment

by:RQuadling
ID: 35128896
Exchange 2007.

And learning PowerShell is certainly one thing I need to do if I want to knock C-D off his perch.

0
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 250 total points
ID: 35145159
various scripting methods works against EX07.  But powershell and the EWS API are the two that translate to EX10 and beyond.

for " specifically extracting all attachments and storing those of specific types (PDF, DOC, XLS and images) within our document management system." I suspect that the EWS API is the most likely to be successful as it is an extension to Dot.Net.
Lots of examples in c# particularly.  I have a C# app running on the server that processes a public folder tree, saving all attachments above 75k to the file system and deleting them from messages.  
0
 
LVL 40

Author Comment

by:RQuadling
ID: 35496744
Sorry for not replying. Work moves way to quickly sometimes.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This video discusses moving either the default database or any database to a new volume.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now